From: Ben Greear <[EMAIL PROTECTED]>
Date: Tue, 04 Sep 2007 15:45:14 -0700

> According to the comment in the net/core/sock.c code (in 2.6.20), I should be 
> able to pass a zero
> optlen to the setsockopt method for SO_BINDTODEVICE:
 ...
> 
> However, earlier in that method it returns -EINVAL if optlen is < sizeof(int).
> 
> The man page has comments similar to that in the code above.

Yes, the comment definitely does not match the code and
should be fixed one way or the other.

I'll do some code history research to try and figure out
if this optlen==0 case ever worked properly.

Thanks.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to