0101-pcap-use-65536-as-snaplen.patch 443 B

1234567891011
  1. --- a/src/init.c.orig 2016-12-08 13:23:17.386891467 +0800
  2. +++ b/src/init.c 2016-12-08 13:23:20.850892551 +0800
  3. @@ -121,7 +121,7 @@ pcap_t *capture_init(char *capture_sourc
  4. pcap_t *handle = NULL;
  5. char errbuf[PCAP_ERRBUF_SIZE] = { 0 };
  6. - handle = pcap_open_live(capture_source, BUFSIZ, 1, 0, errbuf);
  7. + handle = pcap_open_live(capture_source, 65536, 1, 0, errbuf);
  8. if(!handle)
  9. {
  10. handle = pcap_open_offline(capture_source, errbuf);