summaryrefslogtreecommitdiff
path: root/print.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-02-08 10:42:36 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-02-08 10:50:49 +0100
commit59cad18b62c33b93ce2a6386941cb6b16b044bab (patch)
tree687502c3e6026d9af7c56da348a6533dc0aee076 /print.c
parentc3f8e04764b5f9dcb424722aaeee9598e705faed (diff)
downloadtcpdump-59cad18b62c33b93ce2a6386941cb6b16b044bab.tar.gz
IPNET: Update the link-layer dissector to a void function
Moreover: Remove trailing "_if" from protocol name. Remove a useless ND_TCHECK_1 test (GET_U_1 is used). Remove a no longer used 'trunc' label.
Diffstat (limited to 'print.c')
-rw-r--r--print.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print.c b/print.c
index 8543a8b3..71502c2d 100644
--- a/print.c
+++ b/print.c
@@ -54,9 +54,6 @@ struct void_printer {
static const struct uint_printer uint_printers[] = {
{ ether_if_print, DLT_EN10MB },
-#ifdef DLT_IPNET
- { ipnet_if_print, DLT_IPNET },
-#endif
#ifdef DLT_IEEE802_15_4
{ ieee802_15_4_if_print, DLT_IEEE802_15_4 },
#endif
@@ -232,6 +229,9 @@ static const struct void_printer void_printers[] = {
#ifdef DLT_ENC
{ enc_if_print, DLT_ENC },
#endif
+#ifdef DLT_IPNET
+ { ipnet_if_print, DLT_IPNET },
+#endif
{ null_if_print, DLT_NULL },
#ifdef DLT_LOOP
{ null_if_print, DLT_LOOP },