skbuff structure query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  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
____________________________________________________


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


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux