Posted on 2009-10-29 21:25:45-07 by scathaig
direction filtering
hi, is it possible to filter by direction with net::pcap? in c i would do

pcap_t *pcap; pcap = pcap_open_live(device, BUFSIZ, 1, -1, pcap_errbuf); pcap_setdirection(pcap, PCAP_D_IN);

to capture only incoming packets on the device. i need this feature to port a program from c to perl - any hints how to do this? thanks in advance
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.