How many packet types can travel on Ethernet network?

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

 



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 rebuild 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 ETH_P values 8 for IP and 2054 for ARP
packets then which are these packets 1024,1544.
regards,
linux_lover


		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
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