summaryrefslogtreecommitdiff
path: root/print.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-02-07 18:21:40 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-02-07 20:36:34 +0100
commit717095ab66fd1930248b6a3069ed275281214898 (patch)
treea1c5808b20f0ba91b60a369fcee608b9bdeb8e29 /print.c
parent92a263b1b36bd33612baa63b9e9ed0a41e07f05f (diff)
downloadtcpdump-717095ab66fd1930248b6a3069ed275281214898.tar.gz
NULL/LOOP: Update the link-layer dissector to a void function
Moreover: Remove trailing "_if" from protocol name. Remove a useless ND_TCHECK_4 test (GET_HE_U_4 used). Remove a no longer used 'trunc' label. Use uint32_t type for family in null_hdr_print().
Diffstat (limited to 'print.c')
-rw-r--r--print.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/print.c b/print.c
index e82c631f..a4bc1ec2 100644
--- a/print.c
+++ b/print.c
@@ -87,10 +87,6 @@ static const struct uint_printer uint_printers[] = {
#ifdef DLT_IP_OVER_FC
{ ipfc_if_print, DLT_IP_OVER_FC },
#endif
- { null_if_print, DLT_NULL },
-#ifdef DLT_LOOP
- { null_if_print, DLT_LOOP },
-#endif
#ifdef DLT_LANE8023
{ lane_if_print, DLT_LANE8023 },
#endif
@@ -236,6 +232,10 @@ static const struct void_printer void_printers[] = {
#ifdef DLT_BLUETOOTH_HCI_H4_WITH_PHDR
{ bt_if_print, DLT_BLUETOOTH_HCI_H4_WITH_PHDR},
#endif
+ { null_if_print, DLT_NULL },
+#ifdef DLT_LOOP
+ { null_if_print, DLT_LOOP },
+#endif
{ raw_if_print, DLT_RAW },
#ifdef DLT_IPV4
{ raw_if_print, DLT_IPV4 },