Re: Linux sk_buff issues.

Alexey Kuznetsov (kuznet@ms2.inr.ac.ru)
Wed, 1 Aug 2001 02:43:34 -2000 (MSD)


Hello!

> I am assuming using
> skb->nh.raw is the corrent version to use at this point.

Yes, nh is almost always set to right value, unlike h.

"Almost" is because, it is possible to see it shifted
when packet is sent via raw packet socket with an complicaed MAC header.
Shortly, corresponding pointer is reliable when packet originated
by corresponding part of code. h is reliable, when packet is sourced
by tcp/udp, nh - when it is srourced by a protocol.

The only 100% right way is to parse from skb->data and skip mac header
at el.

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