Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > pcapy listen on multiple devices

Reply
Thread Tools

pcapy listen on multiple devices

 
 
billiejoex
Guest
Posts: n/a
 
      09-12-2005
Hi all. I noticed that with the original pcap sniffing library it is
possible to listen on multiple devices by using "select()" or "poll()"
function.
These function aren't present in pcapy module. Do you got any suggestion to
avoid this problem?


 
Reply With Quote
 
 
 
 
Jorgen Grahn
Guest
Posts: n/a
 
      09-17-2005
On Mon, 12 Sep 2005 17:02:31 +0200, billiejoex <(E-Mail Removed)> wrote:
> Hi all. I noticed that with the original pcap sniffing library it is
> possible to listen on multiple devices by using "select()" or "poll()"
> function.


Yes; you can ask pcap for the file descriptor which corresponds to your
sniffed device. That works at least on Unixes.

(There is also the 'any' pseudo-interface, if you are on Linux (and other
Unixes?). You get to listen /everywhere/ in one session.)

> These function aren't present in pcapy module. Do you got any suggestion to
> avoid this problem?


Modify pcapy so you can get the file descriptor from it. Pcapy is great, but
it doesn't expose libpcap literally. Maybe the original authors had no use
for getfd().

I've been meaning to write The Pcap Bindings To End All Pcap Bindings for
almost a year now, but I never seem to get around to it

/Jorgen

--
// Jorgen Grahn <jgrahn@ Ph'nglui mglw'nafh Cthulhu
\X/ algonet.se> R'lyeh wgah'nagl fhtagn!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using multiple threads with pcapy billie Python 0 09-14-2005 08:54 PM
Bad ServerSocket ! Listen! Listen! Listen! Donny Java 13 08-05-2004 06:51 PM
[ANNOUNCE] Python network security tools: Pcapy, Impacket, InlineEgg CORE Security Technologies Python 1 11-28-2003 06:05 PM
[ANNOUNCE] Python network security tools: Pcapy, Impacket,InlineEgg CORE Security Technologies Python 0 11-27-2003 10:38 PM



Advertisments