]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-sflow.c
Fixed some warnings, added print-zep.c to CMakeLists
[tcpdump] / print-sflow.c
index 4ba11508b5c8ce0aafe1a51e5153fec1f5c3f287..78aaafb6138770d07f700a7759201afd1d7e5e57 100644 (file)
 /* specification: http://www.sflow.org/developers/specifications.php */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
-#include <netdissect-stdinc.h>
+#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:
- */