PDA

View Full Version : Problem in Recving BIG packets on a RAW socket!


mareline sheldon
12-09-2002, 04:53 AM
Hello,
There seems to be a problem in Hard Hat Linux raw sockets. I am unable to accept packets of size > 1500 bytes on a raw socket. The same piece of code works fine on Red Hat Linux though!!

Is it a problem in the IP stack? I assume that if i send a BIG packet and even if my MTU is 1500 then a big packet will be by default fragmented by IP and re-assembled at the other end and given to my socket. Do i need to tell explicitly in Hard Har Linux when i open a raw socket that fragmentation should be enabled.

Any clues why my socket isnt receiving BIG packets? I cant use a snoop, ethereal or tcp dump utility as i am running this Hard Hat Linux on an embedded device!!

Any clues will be most helpful!!!

Thanks in Advance,
Mareline Sheldon

x33
04-10-2003, 06:38 AM
Well... I got the same problem on my FreeBSD box, but I found out that the router between my RAW IP server and clients (the router of my local network) was configured to drop down all the packets with size>1500, but not retransmit packets fragmented (1500 is default MTU on almost all *nix boxes i worked with). The solution is clear and easy: reconfigure your routers...