Hi,
   For some per-flow queue management work I need to access TCP port
numbers of an skb inside a qdisc (i.e. in qdisc enqueue and dequeue
functions). Can I assume that skb->data always points to the head of
the IP header of the packet? If that is the case will the following
statements do the trick?

if(skb->nh.iph->protocol == IPPROTO_TCP) {
   skb->h.raw = skb->data + (skb->nh.iph->ihl*4);
   /* read the tcp port numbers in
    * skb->h.th->source and skb->h.th->dest
    */
}

Thanks a lot for your help!

Ritesh
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to