finding which type of packets are coming to NIC
From: linux.lover (linux.lover2004_at_gmail.com)
Date: 01/23/05
- Previous message: Mr usobe: "WUSB54G device Driver"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 22 Jan 2005 20:10:16 -0800
Hello all,
I have added some debug statements in linux kernel 2.4.24
in /usr/src/linux/net/core/dev.c
printk(KERN_DEBUG "in netif_receive_skb after skb->len = %d and
address = %p\n",skb->len,skb->data);
printk(KERN_DEBUG "In netif_receive_skb skb->nh.iph->ihl = %d &&
skb->nh.iph->version = %d\n",skb->nh.iph->ihl,skb->nh.iph->version);
printk(KERN_DEBUG "packet type is =%d\n",type);
where all these 3 statemets are placed in netif_receive_skb function
of dev.c and type is defined as
unsigned short type = skb->protocol;
Then i rebiuld kernel and check it on network and found following
results.
in netif_receive_skb after skb->len = 186 and address = c75ec620
In netif_receive_skb skb->nh.iph->ihl = 0 && skb->nh.iph->version = 14
packet type is =1024
in netif_receive_skb after skb->len = 46 and address = c74633a0
In netif_receive_skb skb->nh.iph->ihl = 0 && skb->nh.iph->version = 0
packet type is =1544
in netif_receive_skb after skb->len = 84 and address = c7463aa0
In netif_receive_skb skb->nh.iph->ihl = 0 && skb->nh.iph->version = 14
packet type is =1024
in netif_receive_skb after skb->len = 100 and address = c74639a0
In netif_receive_skb skb->nh.iph->ihl = 0 && skb->nh.iph->version = 14
packet type is =1024
in netif_receive_skb after skb->len = 78 and address = c7463aa0
In netif_receive_skb skb->nh.iph->ihl = 5 && skb->nh.iph->version = 4
packet type is =8
I want to know which are these packet types?
I know only values 8 for IP and 2054 for ARP packets then which are
these packets 1024,1544.
regards,
linux_lover.
- Previous message: Mr usobe: "WUSB54G device Driver"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|