PDA

View Full Version : 6.7 - Receiving all incoming traffic through a RAW-socket?


Loco
07-27-2002, 01:08 AM
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.