Re: why skb->nh.iph->id does not work in sch_generic.c ?????

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

 



The compiler does not know anything abt "struct iphdr"
Try #including <linux/ip.h>

tomar

On Fri, 20 Jun 2003, Adam Flizikowski wrote:

> Hi
> 
> please tell me what is the problem in calling skb->nh.iph->id from
> inside
> qdisc_restart() in sch_generic.c??????
> I want to identify packet that is dequeued.
> 
> 
> from here:
> 
> 77 int qdisc_restart(struct net_device *dev)
> 78 {
> 79         struct Qdisc *q = dev->qdisc;
> 80         struct sk_buff *skb;
> 81
> 82         /* Dequeue packet */
> 83         if ((skb = q->dequeue(q)) != NULL) {
> 84                 if (spin_trylock(&dev->xmit_lock)) {
> 85                         /* Remember that the driver is grabbed by us.
> */
> 86                         dev->xmit_lock_owner = smp_processor_id();
> >>>>>>>>>>>>>>>>>>         printk("packet id: %d", skb->nh.iph->id);
> <<<<<<<<<<<<<<<<<<<<
> 
> During compilation i get: "dereferencing pointer to incomplete type"
> 
> 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
> 

-
: 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