Re: packet created by local raw socket

Andi Kleen (ak@muc.de)
04 Feb 2002 02:34:10 +0100


landley@trommello.org (Rob Landley) writes:

> If you asked for a raw socket, the system won't append an IP header to it for
> you. You asked it not to.

I guess you mean prepend instead of append.

In fact the raw sockets add an IP header, unless you specify
IPPROTO_RAW or IP_HDRINCL. Both are discouraged.

-Andi

-
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/