X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/513f782ae18791f0c925b9235da749b38159b607..0f24a43a7e9fbdcff2baae3990939b2bc25d9fd1:/print-slow.c diff --git a/print-slow.c b/print-slow.c index ede22ad6..4e0ab030 100644 --- a/print-slow.c +++ b/print-slow.c @@ -21,7 +21,7 @@ /* \summary: IEEE "slow protocols" (802.3ad/802.3ah) printer */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif #include "netdissect-stdinc.h" @@ -31,6 +31,7 @@ #include "addrtoname.h" #include "oui.h" + #define SLOW_PROTO_LACP 1 #define SLOW_PROTO_MARKER 2 #define SLOW_PROTO_OAM 3 @@ -247,6 +248,7 @@ slow_print(netdissect_options *ndo, int print_version; u_int subtype; + ndo->ndo_protocol = "slow"; if (len < 1) goto tooshort; ND_TCHECK_1(pptr); @@ -338,10 +340,7 @@ tooshort: return; trunc: - if (!ndo->ndo_vflag) - ND_PRINT(" (packet exceeded snapshot)"); - else - ND_PRINT("\n\t\t packet exceeded snapshot"); + nd_print_trunc(ndo); } static void @@ -483,7 +482,7 @@ tooshort: return; trunc: - ND_PRINT("\n\t\t packet exceeded snapshot"); + nd_print_trunc(ndo); } static void @@ -750,5 +749,5 @@ tooshort: return; trunc: - ND_PRINT("\n\t\t packet exceeded snapshot"); + nd_print_trunc(ndo); }