Created
January 9, 2015 08:47
-
-
Save ryo/2991b4196a70fe126467 to your computer and use it in GitHub Desktop.
tcpdump quick response patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: tcpdump.c | |
| =================================================================== | |
| RCS file: /cvsroot/src/external/bsd/tcpdump/dist/tcpdump.c,v | |
| retrieving revision 1.10 | |
| diff -a -u -p -r1.10 tcpdump.c | |
| --- tcpdump.c 21 Nov 2014 13:31:19 -0000 1.10 | |
| +++ tcpdump.c 9 Jan 2015 08:46:38 -0000 | |
| @@ -1533,7 +1533,7 @@ main(int argc, char **argv) | |
| error("%s: Can't set monitor mode: %s", | |
| device, pcap_statustostr(status)); | |
| } | |
| - status = pcap_set_timeout(pd, 1000); | |
| + status = pcap_set_timeout(pd, 50); | |
| if (status != 0) | |
| error("%s: pcap_set_timeout failed: %s", | |
| device, pcap_statustostr(status)); | |
| @@ -1593,7 +1593,7 @@ main(int argc, char **argv) | |
| #endif /* HAVE_PCAP_SETDIRECTION */ | |
| #else | |
| *ebuf = '\0'; | |
| - pd = pcap_open_live(device, snaplen, !pflag, 1000, ebuf); | |
| + pd = pcap_open_live(device, snaplen, !pflag, 50, ebuf); | |
| if (pd == NULL) | |
| error("%s", ebuf); | |
| else if (*ebuf) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment