networking in v2.2 vs v2.4 kernels.

networking in v2.2 vs v2.4 kernels.

Post by Adam » Mon, 09 Jul 2001 06:30:10



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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. solaris x86 v2.5 vs. v2.5.1 performance



A 486-DX2 66 is rather underpowered for Solaris, and also
you will probably do much better with SCSI disks.
(Both points from personal experience.)

Linux boots very quickly - no SVR4 comes even close.
On the other hand, I don't find myself booting Solaris very
much - our UPS powered system runs for months, and I have
even added new disks and tape drives and brought them into
service without having to reboot.

--


2. system vs. sys groups

3. V2.2.0 & V2.2.2 kernel do not compile on a m68k Amiga A1200

4. WLM AIX 5.1 SETUP

5. PPPD v2.1.2 & kernel v2.0.0

6. Minicom Problems!

7. v2.4.1-v2.4.3pre2 doesnt power off by halt or shutdown -h

8. Adobe Acrobat Reader (or clone) for Linux

9. SCO Foxbase+ v2.1.1 To v2.1.2

10. IO Overflow via putc() in GCC v2.6.3, Slackware v2.x Linux v1.2.11

11. Problems with v2.1.30-v2.1.34

12. Q: gcc v2.8.0 on solaris v2.5.1

13. Slackware Update - v2.0 to v2.1