UNIX Socket FAQ

You are not logged in.

#1 2002-07-27 01:08 AM

HectorLasso
Administrator
From: Colombia
Registered: 2002-06-12
Posts: 352

Re: 6.7 - Receiving all incoming traffic through a RAW-socket?

6
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.

Offline

Board footer

Powered by FluxBB