tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: struct sockaddr_storage issues
> P.S. The sa_len member (and its ilk, sin_len, sin6_len, sun_len,
> &c.) are nonstandard, and are ignored by the kernel in system calls.
Most calls. I did find one place where NetBSD 5.2 and 9.2 appear to
require that sin_len be correct. (I'm not certain, but I think it is
the sysctl used for IDENT lookups.) There also is code in 9.2's
SIOCSIFADDR that appears to treat a zero sin_len differently from
nonzero (look for the string "sin_len == 0" in in_control0()). And if
I could find two with fifteen seconds of grepping and a few minutes of
code reading, there are probably others.
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse%rodents-montreal.org@localhost
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Home |
Main Index |
Thread Index |
Old Index