dev.c - how can i get IPheader's ID without skb->nh.iph->id which fails here

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

 



Hi,

i am trying to get packet id from ip header. problem is that from dev.c
level:

int netif_rx(struct sk_buff *skb)) {

/* original code */


printk("My id: %d and address %d\n", skb->nh.iph->id,skb->nh.iph->saddr);

/* original code */

}


...it is impossible. I get oops saying that NULL pointer reference was found
instead?

So how can i get this "id" field aletrnatively (without calling
skb-?nh.iph->id) ????


regards


adam

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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