X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/513f782ae18791f0c925b9235da749b38159b607..f34af1aa63da301ae7ee91e2300dff31702001f0:/print-sflow.c diff --git a/print-sflow.c b/print-sflow.c index 7735e5dd..78aaafb6 100644 --- a/print-sflow.c +++ b/print-sflow.c @@ -22,7 +22,7 @@ /* specification: http://www.sflow.org/developers/specifications.php */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif #include "netdissect-stdinc.h" @@ -868,6 +868,7 @@ sflow_print(netdissect_options *ndo, uint32_t sflow_sample_type, sflow_sample_len; uint32_t nsamples; + ndo->ndo_protocol = "sflow"; tptr = pptr; tlen = len; sflow_datagram = (const struct sflow_datagram_t *)pptr; @@ -970,12 +971,5 @@ sflow_print(netdissect_options *ndo, return; trunc: - ND_PRINT("[|SFLOW]"); + nd_print_trunc(ndo); } - -/* - * Local Variables: - * c-style: whitesmith - * c-basic-offset: 4 - * End: - */