|
Try to capture a packet on the network waiting maximout of t milliseconds and using a filter if
specified (the filter is based on pcap, so see the man page of tcpdump for the syntax).
You can choose the interface used for the capture.
The options -backgournd, -getpacket and -waitpacket can be used to do asynchronous
capture. Set the filter using the -backgournd mode, then use either -getpacket to get a
bufferized packet (no timeout, returns directly) or -waitpacket to wait for a packet (using optionnally
a timeout).
|