X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/e2982e7f6f0b624a773ec5a58885ee80fab46d34..f052d2b3962c791a541f20a012a43ff471438045:/print-sflow.c diff --git a/print-sflow.c b/print-sflow.c index 4ba11508..78aaafb6 100644 --- a/print-sflow.c +++ b/print-sflow.c @@ -22,10 +22,10 @@ /* specification: http://www.sflow.org/developers/specifications.php */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif -#include +#include "netdissect-stdinc.h" #include "netdissect.h" #include "extract.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: - */