Skip to contentSkip to conversation

Packet Interception

LARTC Jayesh Agrawal 2 participants 2 messages Oct 12, 2007

lore
Share & tools
lore
#0 lore raw

Hello!

In the earlier mail I think I was not clear... Actually the following is my
requirements:

1) our requirement is to capture all packets originating/destined to a particular machine. This also includes ping packets to same machine/localhost. i.e. at machine A we want to also capture packets originating from say machine A and destined to machine A (these propably do not go to data link layer).

2) we want to experiment the behavior by adding delays to those packets, and that is why we want the actual packet and a copy of packet wont serve purpose.

3) we are open to listen at whatever layer (datalinke/network) and so how can we achieve this functionality.

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw

Hi.

Quoted 11 lines · Jayesh Agrawal

Hello!

In the earlier mail I think I was not clear... Actually the following
is my requirements:

1) our requirement is to capture all packets originating/destined to a particular machine. This also includes ping packets to same machine/localhost. i.e. at machine A we want to also capture packets originating from say machine A and destined to machine A (these propably do not go to data link layer).

did you consider using iptables -j QUEUE ? maybe it would be possible with that (even if you want to delay loopback packets).
http://www.crhc.uiuc.edu/~grier/projects/libipq.html

Quoted 3 lines

2) we want to experiment the behavior by adding delays to those packets, and that is why we want the actual packet and a copy of packet wont serve purpose.

but i saw warning that when you delay for too long, queue may fill up and you start to loose packets.

Quoted 3 lines

3) we are open to listen at whatever layer (datalinke/network) and so how can we achieve this functionality.

you were right, loopback packets aren't seen in pcap, only thing going through some interface

Signature · 11 lines
___________________________________
S pozdravom / Best regards

John Default



_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc