Hi,
Does anyone know how to adjust the skb->h.raw, skb->nh.raw?
I'm going to add a shim header between layer2 header and layer3 header
+--------+============+----------+--------
| L2 | Shim | L3 | L4
+--------+============+----------+--------
The code to insert the shim:
skb_push(skb, 4); /*say the size of shim is 4 bytes. */
memmove(skb->data, &shim, 4);
Do I need to adjust the skb->h.raw and skb->nh.raw? How to?
Thanks in advance,
Rex
_______________________________________________________________
http://www.SINA.com - #1 Destination Site for Chinese Worldwide
-
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 : Mon May 07 2001 - 21:00:16 EST