[lkml]   [2001]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectnetworking in v2.2 vs v2.4 kernels.

Linux pepsi 2.4.6-pre1-packet #1 SMP Tue Jun 12 02:12:32 EDT 2001 i686
Linux eax 2.2.20pre6 #1 Wed Jun 27 10:39:14 EST 2001 i586

I have a program which does :

flags = MSG_WAITALL;
rawsock = socket(PF_INET,SOCK_RAW,IPPROTO_TCP);
bytesread = recvfrom(rawsock,&buf,buflen,flags,
(struct sockaddr*)(&from),&fromlen

on my 2.4.x box it works pretty much as expected (excpet that for some
reason the from.sin_port is always set to 0).

However if I try to run the same piece of code on 2.2 kernel it basically
never blocks and always immediatelly returns, and for second thing, it
seems as if it getting some random junk from loopback device, and it never
seems to get any data from any other interface..

any idea what could the difference in behavior between 2.4 and 2.2 ?

Adam The Supreme Headquarters of the 32 bit registers

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:56    [W:0.033 / U:2.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site