aboutsummaryrefslogtreecommitdiff
path: root/example/ndpiReader.c
diff options
context:
space:
mode:
authorCampus <campus@ntop.org>2016-09-26 10:43:44 +0200
committerCampus <campus@ntop.org>2016-09-26 10:43:44 +0200
commit1f807a1348c4f831a2b9ba1cc8b70f20c978df3f (patch)
treebc0ca7c85e094a38c113047f96cb734d25b65ef3 /example/ndpiReader.c
parentbf778d6df11231df78e2015aac87b47c2f04756e (diff)
fix snaplen for pcap_open_live function - optimal value is described here http://pcap.man.potaroo.net/
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r--example/ndpiReader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c
index deb61b681..c52e03349 100644
--- a/example/ndpiReader.c
+++ b/example/ndpiReader.c
@@ -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;