X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/1ed63b5d0630a4b5b4a8d31174d9f3e95a970913..d9a787e4995b4b5101e410ed1e93367907ab9fe2:/print-cnfp.c diff --git a/print-cnfp.c b/print-cnfp.c index 1e4e1ae1..101148fa 100644 --- a/print-cnfp.c +++ b/print-cnfp.c @@ -37,7 +37,7 @@ * * See * - * http://www.cisco.com/c/en/us/td/docs/net_mgmt/netflow_collection_engine/3-6/user/guide/format.html#wp1005892 + * https://www.cisco.com/c/en/us/td/docs/net_mgmt/netflow_collection_engine/3-6/user/guide/format.html#wp1005892 */ #ifdef HAVE_CONFIG_H @@ -47,7 +47,6 @@ #include "netdissect-stdinc.h" #include -#include #include "netdissect.h" #include "addrtoname.h" @@ -247,7 +246,6 @@ cnfp_v1_print(netdissect_options *ndo, const u_char *cp) trunc: nd_print_trunc(ndo); - return; } static void @@ -350,7 +348,6 @@ cnfp_v5_print(netdissect_options *ndo, const u_char *cp) trunc: nd_print_trunc(ndo); - return; } static void @@ -456,7 +453,6 @@ cnfp_v6_print(netdissect_options *ndo, const u_char *cp) trunc: nd_print_trunc(ndo); - return; } void @@ -468,7 +464,6 @@ cnfp_print(netdissect_options *ndo, const u_char *cp) * First 2 bytes are the version number. */ ndo->ndo_protocol = "cnfp"; - ND_TCHECK_2(cp); ver = GET_BE_U_2(cp); switch (ver) { @@ -488,9 +483,4 @@ cnfp_print(netdissect_options *ndo, const u_char *cp) ND_PRINT("NetFlow v%x", ver); break; } - return; - -trunc: - nd_print_trunc(ndo); - return; }