X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/0b1de8f73d9b1484095a5ba484e83021ef7bc7ae..7ea6b55ab42e1a1b5cd09367f4d1bf2078c93a5d:/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;