Thread (2 messages) flat view 2 messages, 2 authors, 2011-07-05

Re: [PATCH] net: bind() fix error return on wrong address family

From: David Miller <davem@davemloft.net>
Date: 2011-07-05 04:42:01
Also in: lkml

From: Marcus Meissner <redacted>
Date: Mon,  4 Jul 2011 13:30:29 +0200
Reinhard Max also pointed out that the error should EAFNOSUPPORT according
to POSIX.

The Linux manpages have it as EINVAL, some other OSes (Minix, HPUX, perhaps BSD) use
EAFNOSUPPORT. Windows uses WSAEFAULT according to MSDN.

Other protocols error values in their af bind() methods in current mainline git as far
as a brief look shows:
	EAFNOSUPPORT: atm, appletalk, l2tp, llc, phonet, rxrpc
	EINVAL: ax25, bluetooth, decnet, econet, ieee802154, iucv, netlink, netrom, packet, rds, rose, unix, x25, 
	No check?: can/raw, ipv6/raw, irda, l2tp/l2tp_ip

Signed-off-by: Marcus Meissner <redacted>
Cc: Reinhard Max <redacted>
Applied to net-2.6, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help