Hi,

Here's the patch mostly from NetBSD to make socket(2) return EAFNOSUPPORT
rather than EPROTONOSUPPORT if the family cannot be found.

http://people.freebsd.org/~kevlo/patch-socket

The man page documents the behavior specified in POSIX.1-2008:

http://pubs.opengroup.org/onlinepubs/9699919799/functions/socket.html

For reference, Linux, NetBSD, and OS X return EAFNOSUPPORT for this.

    Kevin

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[email protected]"

Reply via email to