Re: socket() returns "Invalid argument". Why? (UNPv1)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 11, 2002 at 06:30:45AM -0300, Fernando Gont wrote:
> My question is: if I don't get a EPFNOSUPPORT error for this example, when 
> would I get it?

When you pass an invalid/not fitting address family in sa_family/sin_family 
to any function that reads a struct sockaddr.

Single Unix says EAFNOSUPPORT should be returned by socket(2) too, so it
could be changed.

-Andi
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux