]> The Tcpdump Group git mirrors - libpcap/commitdiff
Print a message when capture starts.
authorGuy Harris <[email protected]>
Fri, 3 Jul 2009 20:37:58 +0000 (13:37 -0700)
committerGuy Harris <[email protected]>
Fri, 3 Jul 2009 20:37:58 +0000 (13:37 -0700)
seltest.c

index 539f0d0f66cf4f98e2365f3f05eb5b30ad4464a9..f9580fccd0a204ee9ffa85c4c9aa9bd04bf7899e 100644 (file)
--- a/seltest.c
+++ b/seltest.c
@@ -123,6 +123,7 @@ main(int argc, char **argv)
                if (pcap_setnonblock(pd, 1, ebuf) == -1)
                        error("pcap_setnonblock failed: %s", ebuf);
        }
+       printf("Listening on %s\n", device);
        if (doselect) {
                for (;;) {
                        fd_set set1;