dect
/
libpcap
Archived
13
0
Fork 0
Commit Graph

4 Commits

Author SHA1 Message Date
Guy Harris 0101db9e7c Add the -p flag to the usage message. 2009-07-30 20:32:04 -07:00
Guy Harris edf4e2c451 Don't bother printing the "."s per packet received - the summary line
giving packets seen and counted suffices.
2009-07-26 15:51:27 -07:00
Guy Harris c3c51e58e5 Clean up per-packet output a bit; don't output a blank line if no
packets were seen, but do put the "."s on a separate line - which should
all come out in a burst, so don't fflush() after each one, let the
newline at the end do that.

Report POLLNVAL for poll().

When not using select() or poll(), loop forever doing pcap_dispatch(),
rather than just using pcap_loop(), so you see what happens for each
delivered batch of packets.
2009-07-26 15:44:31 -07:00
Guy Harris 559ebc322f Add poll() support to seltest, and rename it to selpolltest.
Just print "."s for packets seen, and count the packets.  Print out the
information from the file descriptor bitsets/poll FDs on one line.
2009-07-26 13:55:35 -07:00