tcpdump mailing list archives

Can libcap be used as a packet interceptor?


From: "WANGRUNGVICHAISRI, SHIVESH" <sbw () appsig com>
Date: Tue, 11 May 2010 17:25:12 -0700

Hi,

 

If I want to write an application that prevents any TCP packets from
being sent to a localhost web server, may I use libpcap for this
purpose?

 

To put the question differently, is libpcap:

 

1)     an observer of the packet traffic (not what I'm looking for,
since packets will still be sent to the localhost web server).

2)     or does it actually sit in between all packet traffic? (this is
what I'm looking for since I can then drop the packets that I want to
drop).

 

Thank you for your kind attention,

 

S.

 

-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: