Marin D wrote:
> Would someone happen to know what is the purpose of the IP_HDRINCL IP
> level option of the setsockopt() call.
It sets the ip_hdrincl flag in the corresponding `struct sock'.
If this flag is set, then ip_build_xmit assumes that the data which it
is passed includes the IP headers. Otherwise, it builds the header
itself.
Note that this flag can only be set for sockets of type SOCK_RAW;
anything else will result in an ENOPROTOOPT error. Also, if the socket
type is SOCK_RAW and the protocol is IPPROTO_RAW, then the ip_hdrincl
flag is set automatically.
`fgrep -n ip_hdrincl /usr/src/linux/net/ipv4/*.c' should show all of
the places where it is used.
--
Glynn Clements <[EMAIL PROTECTED]>