linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* networking in v2.2 vs v2.4 kernels.
@ 2001-07-07 22:24 Adam
  0 siblings, 0 replies; only message in thread
From: Adam @ 2001-07-07 22:24 UTC (permalink / raw)
  To: linux-kernel


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
http://www.eax.com      The Supreme Headquarters of the 32 bit registers



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-07-07 21:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-07 22:24 networking in v2.2 vs v2.4 kernels Adam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).