/* Support -T l4 to limit decoding to layer 4 */ diff -u tcpdump-4.7.4-flx2.3.orig/netdissect.h tcpdump-4.7.4-flx2.3/netdissect.h --- tcpdump-4.7.4-flx2.3.orig/netdissect.h 2015-04-22 22:32:16.000000000 +0200 +++ tcpdump-4.7.4-flx2.3/netdissect.h 2015-11-06 16:34:34.296580836 +0100 @@ -203,6 +203,7 @@ #define PT_PGM 14 /* [UDP-encapsulated] Pragmatic General Multicast */ #define PT_PGM_ZMTP1 15 /* ZMTP/1.0 inside PGM (native or UDP-encapsulated) */ #define PT_LMP 16 /* Link Management Protocol */ +#define PT_L4 17 /* Do not decode above layer 4 */ #ifndef min #define min(a,b) ((a)>(b)?(b):(a)) diff -u tcpdump-4.7.4-flx2.3.orig/tcpdump.c tcpdump-4.7.4-flx2.3/tcpdump.c --- tcpdump-4.7.4-flx2.3.orig/tcpdump.c 2015-04-22 22:32:16.000000000 +0200 +++ tcpdump-4.7.4-flx2.3/tcpdump.c 2015-11-06 16:34:58.364716586 +0100 @@ -1361,6 +1361,8 @@ packettype = PT_PGM_ZMTP1; else if (strcasecmp(optarg, "lmp") == 0) packettype = PT_LMP; + else if (strcasecmp(optarg, "l4") == 0) + packettype = PT_L4; else error("unknown packet type `%s'", optarg); break;