Re: Linux sk_buff issues.

From: Alexey Kuznetsov (kuznet@ms2.inr.ac.ru)
Date: Wed Aug 01 2001 - 17:43:34 EST


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/



This archive was generated by hypermail 2b29 : Tue Aug 07 2001 - 21:00:11 EST