X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/ef6c3b8bd9463638760e8fdae90561ca708c1a76..c7b0738460b08e63a1bd15c88ef1f9599cd71a08:/print-sflow.c diff --git a/print-sflow.c b/print-sflow.c index e16f0ab3..dc64e63e 100644 --- a/print-sflow.c +++ b/print-sflow.c @@ -12,20 +12,22 @@ * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE. * - * The SFLOW protocol as per http://www.sflow.org/developers/specifications.php - * * Original code by Carles Kishimoto * * Expansion and refactoring by Rick Jones */ +/* \summary: sFlow protocol printer */ + +/* specification: http://www.sflow.org/developers/specifications.php */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif -#include +#include -#include "interface.h" +#include "netdissect.h" #include "extract.h" #include "addrtoname.h" @@ -913,8 +915,8 @@ sflow_print(netdissect_options *ndo, len)); /* skip Common header */ - tptr += sizeof(const struct sflow_datagram_t); - tlen -= sizeof(const struct sflow_datagram_t); + tptr += sizeof(struct sflow_datagram_t); + tlen -= sizeof(struct sflow_datagram_t); while (nsamples > 0 && tlen > 0) { sflow_sample = (const struct sflow_sample_header *)tptr;