finding which type of packets are coming to NIC

From: linux.lover (linux.lover2004_at_gmail.com)
Date: 01/23/05

  • Next message: hondya: "2.6.10 boot problem"
    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.


  • Next message: hondya: "2.6.10 boot problem"

    Relevant Pages

    • Re: NDISUIO ReadFile Problems
      ... assuming the byte order (MSB, then LSB?), you may not get what the other ... as network byte order is the reverse of CE's layout. ... = htons(packet type). ...
      (microsoft.public.windowsce.embedded)
    • how many packet types can travel on Ethernet network?
      ... I have added some debug statements in linux kernel 2.4.24 in ... printk(KERN_DEBUG "packet type is =%d\n",type); ... I know only values 8 for IP and 2054 for ARP packets then which are ...
      (comp.os.linux.networking)