Re: [tcpdump-workers] Can libcap be used as a packet interceptor?

2010-05-12 Thread Rob Hasselbaum
On Wed, May 12, 2010 at 1:41 PM, Eloy Paris wrote: > > libdnet's firewall interface is a great idea. Unfortunately, libdnet's > support for modern Linux firewall capabilities is non-existent. It seems > like libdnet was never updated for iptables, which replaced ipchains in > Linux 2.4, and is wh

Re: [tcpdump-workers] Can libcap be used as a packet interceptor?

2010-05-12 Thread Eloy Paris
Hi Aaron, On 05/12/2010 01:13 PM, Aaron Turner wrote: [...] Look at libdnet. It has a cross platform API to modify the firewall rules on various OS's to drop packets. libdnet's firewall interface is a great idea. Unfortunately, libdnet's support for modern Linux firewall capabilities is no

Re: [tcpdump-workers] Can libcap be used as a packet interceptor?

2010-05-12 Thread Aaron Turner
On Tue, May 11, 2010 at 5:25 PM, WANGRUNGVICHAISRI, SHIVESH wrote: > 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

Re: [tcpdump-workers] Can libcap be used as a packet interceptor?

2010-05-12 Thread Prasanna Kumar Nelam
libpcap is only packet observer, it can not drop the packets. Prasanna Kumar.N, Software Engineer, IMImobile Plot 770, Rd. 44 Jubilee Hills, Hyderabad - 500033 M +91 916358 T +91 40 2355 5945 - Ext: 220 www.imimobile.com = This email and any file

[tcpdump-workers] Can libcap be used as a packet interceptor?

2010-05-12 Thread WANGRUNGVICHAISRI, SHIVESH
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