Re: Doubt in RAW socket implementation

Andi Kleen (ak@muc.de)
25 Oct 1999 16:35:59 +0200


shankarv@future.futsoft.com (shankarv) writes:

> hi all,
>
> What ever i tell below is with reference to RAW SOCKET implementation in
>
>
> Linux.
>
> can any one tell me what happens to the sk->opt copied by ip_get_options.
>
> I guess the sk->opt should be copied into every IP packet thats going to
>
>
> be send out via this socket sk. (correct ?)

Yes (except when you enable IP_HDRINCL)

>
> i couldnt find Where it is copied into the outgoing packets.

In ip_output.c:ip_build_xmit_slow() via ip_options_build.

-Andi

-- 
This is like TV. I don't like TV.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/