[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-net
Subject:    skbuff structure query
From:       Amit Kucheria <amitk () ittc ! ku ! edu>
Date:       2001-06-21 19:38:15
[Download RAW message or body]

  Hi,

  Resending this mail coz i dont think it reached the list the last time.

  I wanted to know what is the significance of skb->mac.raw, skb->nh.raw ?
  Heres a code fragment from net/core/dev.c that i am trying to understand:

  942 /*
  943  *      Bump the pointer to the next structure.
  944  *
  945  *      On entry to the protocol layer. skb->data and
  946  *      skb->nh.raw point to the MAC and encapsulated data
  947  */
  948
  949 /* XXX until we figure out every place to modify.. */
  950    skb->h.raw = skb->nh.raw = skb->data;
  951
  952    if (skb->mac.raw < skb->head || skb->mac.raw > skb->data) {
  953        printk(KERN_CRIT "%s: wrong mac.raw ptr, proto=%04x\n", skb->dev->name, skb->protocol);
  954        kfree_skb(skb);
  955        continue;
  956    }

  The kernel is 2.2.18.

  Regards,
  Amit


-- 
^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^
                  Amit Kucheria
          EECS Grad. Research Assistant
           Team Niehaus || Room # 245E
         University of Kansas @ Lawrence
   (R)+1-(785)-830 8521 ||| (O)+1-(785)-864 7774
____________________________________________________


-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic