]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-sflow.c
Add more nd_print_trunc() calls
[tcpdump] / print-sflow.c
index a6cc8eea3ce37a88297e850d1040fed6798e940d..78aaafb6138770d07f700a7759201afd1d7e5e57 100644 (file)
@@ -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:
- */