Skip to content

Instantly share code, notes, and snippets.

@benburkert
Created April 6, 2012 17:49
Show Gist options
  • Save benburkert/2321618 to your computer and use it in GitHub Desktop.
Save benburkert/2321618 to your computer and use it in GitHub Desktop.
ssldump patch: increase sample buffer size
--- a/base/pcap-snoop.c 2012-04-06 10:35:06.000000000 -0700
+++ b/base/pcap-snoop.c 2012-04-06 10:45:31.000000000 -0700
@@ -286,7 +286,7 @@
err_exit("Aborting",-1);
}
}
- if(!(p=pcap_open_live(interface_name,5000,!no_promiscuous,1000,errbuf))){
+ if(!(p=pcap_open_live(interface_name,18432,!no_promiscuous,1000,errbuf))){
fprintf(stderr,"PCAP: %s\n",errbuf);
err_exit("Aborting",-1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment