|
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 |