These days, tcpdump snaplen default is 96 bytes.
authorEmil Mikulic <emikulic@gmail.com>
Sat, 9 Apr 2011 12:36:41 +0000 (22:36 +1000)
committerEmil Mikulic <emikulic@gmail.com>
Sun, 15 May 2011 09:43:52 +0000 (19:43 +1000)
cap.c

diff --git a/cap.c b/cap.c
index 043f2f3..67cd1a5 100644 (file)
--- a/cap.c
+++ b/cap.c
@@ -104,7 +104,7 @@ cap_init(const char *device, const char *filter, int promisc)
     *
     * Hack to set minimum snaplen to tcpdump's default:
     */
-   snaplen = max(snaplen, 68);
+   snaplen = max(snaplen, 96);
 #endif
    if (want_snaplen > -1)
       snaplen = want_snaplen;