Don't use IP packets with payload < 8 octets

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

 



Hi,

as far as I remember the IP RFC, the smallest IP fragment has a length
of 21 octets. Unfortunately the IP code of Linux (2.4.17) drops all
packets which have a payload
of less than 8 octets (see the code fragment below).

Yesterday we were running some tests with very small packets and it took
some time until we had figured out why our receive handler did not see
any packet.

Any comments?

Morten


the code which discards our packets (File ip_input.c; function int
ip_local_deliver_finish(struct sk_buff *skb) 

   227          /* Pull out additionl 8 bytes to save some space in
protocols. */
   228          if (!pskb_may_pull(skb, ihl+8))
   229                  goto out;
   230          __skb_pull(skb, ihl);            

-- 
------------------------------------------------------------------------
Morten Schläger                              Tel.: ++49 (030) 314-23834
Technical University Berlin                   Fax.: ++49 (030) 314-23818
Telecommunication Networks Group (TKN)            morten@ee.TU-Berlin.DE
Sekr. FT 5-2/Einsteinufer 25    
10587 Berlin, Germany
-
: 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