From: Mark Wooding Date: Thu, 28 Sep 2017 00:52:03 +0000 (+0100) Subject: pkstream/pkstream.c: Be more careful about handling address families. X-Git-Tag: 1.5.0~41^2~46 X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/commitdiff_plain/d66e33f00fd3c8f4ca06fe089234b93e601b1356?hp=d66e33f00fd3c8f4ca06fe089234b93e601b1356 pkstream/pkstream.c: Be more careful about handling address families. * Introduce a concept of `known' address families. Currently, only `AF_INET' is known. * Filter `struct addrinfo' chains for known address families. If we come up short, complain. * Tweak `aihints' to arrange that addresses which are supposed to match up actually will do: so server peer and bind addresses should match; client bind and connect addresses should match; and UDP local and remote addresses should match. * Initialize address structures using the `ai_family' slot from the appropriate `struct addrinfo' structure. ---