Penguin
Blame: EAFNOSUPPORT
EditPageHistoryDiffInfoLikePages
Annotated edit history of EAFNOSUPPORT version 4, including all changes. View license author blame.
Rev Author # Line
1 PerryLorier 1 !!!Address family not supported by protocol
2
3 JohnMcPherson 3 This is an error you get when you try to connect(2) or bind(2) a socket to an address where that address doesn't make sense. For example trying to bind a socket created with PF_INET (Protocol Family Internet) to a AF_UNIX (Address Family Unix Domain Socket) address, it just doesn't make sense. Alternatively you forgot to fill in the sin_family or uin_family field in your address structure. Either way the programmer screwed up.
2 JohnMcPherson 4
5 This can also occur if the OperatingSystem does not support a particular protocol. For example:
4 PerryLorier 6 <verbatim>
2 JohnMcPherson 7 $ ping6 ::1
8 ping6: socket: Address family not supported by protocol
9
10 $ strace ping6 ::1
11 ...
12 socket(PF_INET6, SOCK_RAW, 58) = -1 EAFNOSUPPORT (Address family not
13 supported by protocol)
14 ...
4 PerryLorier 15 </verbatim>
2 JohnMcPherson 16
17 In this case, the machine does not have [IPv6] support, but a program tried to use it.