Go Back   UNIX Socket FAQ > FAQ > UNIX Socket FAQ

Reply
 
Thread Tools Display Modes
  #1  
Old 07-27-2002, 12:08 AM
Loco Loco is offline
Old administrator
 
Join Date: Jun 2002
Location: Colombia
Posts: 351
Default 6.7 - Receiving all incoming traffic through a RAW-socket?

6.7 - Receiving all incoming traffic through a RAW-socket?
From: Juhana Lehtiniemi

Is it possible to receive all the incoming packets ignoring
target port, source address/port and seq/ack-numbers, through
a raw-socket?

For example, if I want to create a connection with a server
by receiving packets myself and by replying to seqs and acks
by writing all the packets myself. So is this possible with a
raw-socket, what options should I set to that socket or
do I have to read the packets from the network device? I
don't want to use packet capture libs like libpcap. What is
the easiest way to capture all the incoming packets?

From: Thamer Al-Herbish

Hi,

Your question is answered in the Raw IP Networking FAQ:

http://www.whitefang.com/rin/

In short, you can't do it. You need to use a packet
capturing device.
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

Forum Jump


All times are GMT. The time now is 08:52 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.