Networking Forums

Networking Forums > Computer Networking > Linux Networking > I'm receiving TCP packets via a raw socket. Is this normal?

Reply
Thread Tools Display Modes

I'm receiving TCP packets via a raw socket. Is this normal?

 
 
Boltar
Guest
Posts: n/a

 
      12-29-2006, 09:55 AM
Hi

I'm developing an application that uses raw sockets to send TCP
headers. According to the latest version of the Unix Network
Programming book raw sockets *never* receive TCP packets since the
kernel doesn't pass them on after its processed them (book says you
should use a PF_PACKET datalink layer type socket to receive them).

However , I've noticed on linux that a raw socket DOES receive TCP
packets. Is this normal? It seems to happen on both kernels 2.4 and
2.6. Is this a quirk of Linux which is not seen on other unixes or is
it standard behaviour and the book is wrong?

Thanks for any info

B2003

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem receiving UDP broadcast packets. Grant Edwards Linux Networking 10 05-07-2012 08:13 AM
Re: problem with ethernet loopback test using loopback plug/stub: receiving socket not seeing packet. Rick Jones Linux Networking 10 08-22-2010 07:17 PM
Enable RAW socket for normal user Uwe Klatt Windows Networking 1 07-11-2007 02:57 PM
Connected but not receiving packets mismith5 Wireless Networks 1 02-14-2007 11:08 PM
Linksys WUSB54G not receiving packets in XP brkptr Wireless Internet 0 09-07-2004 07:47 PM



1 2 3 4 5 6 7 8 9 10 11