Certainly IP_PKTINFO can be used with sendmsg. The doesn't change the
fact that the documentation clearly says that the information is
information about an incoming packet.
Also, th only documentation I can find does not specify that a value
of 0 means "no specific interface is selected". So while I can see
from the code that what you suggest would work in practice, it would
be nice if this were clearly documented somewhere.
NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/