Re: Pointers to both ip header & tcp header of skbuff ???

Alan Cox (alan@cymru.net)
Thu, 19 Sep 1996 14:11:57 +0100 (BST)


> skbuff? And also the best way to point to the start of the tcp header of
> an skbuff? Both must be available at the same time.
> Let's just say initially, either skb->head or skb->data is
> initially pointing to the the start of the ip header of the packet. And I
> want to have a pointer to the start of the ip header, and also a pointer to
> the start of the tcp header of the packet.

It depends where and why. Most of the network stack passes points around
directly for these fields (when useful - obviously only IP/ARP have any
meaning here)