Skip to content

Commit

Permalink
fix snaplen for pcap_open_live function - optimal value is described …
Browse files Browse the repository at this point in the history
  • Loading branch information
Campus committed Sep 26, 2016
1 parent bf778d6 commit 1f807a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/ndpiReader.c
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ static void configurePcapHandle(pcap_t * pcap_handle) {
*/
static pcap_t * openPcapFileOrDevice(u_int16_t thread_id, const u_char * pcap_file) {

u_int snaplen = 1536;
u_int snaplen = 65535;
int promisc = 1;
char pcap_error_buffer[PCAP_ERRBUF_SIZE];
pcap_t * pcap_handle = NULL;
Expand Down

0 comments on commit 1f807a1

Please sign in to comment.