summaryrefslogtreecommitdiff
path: root/print.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-08-06 16:08:23 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-08-06 16:27:24 +0200
commit5e9a51fdd559721eab88ec68a06b191997c57883 (patch)
treee9afb8b1910667a8e5590a57049f2da2113b6ba3 /print.c
parent496c43c10b94112b5a2d0634d55d85e58e3f6722 (diff)
downloadtcpdump-5e9a51fdd559721eab88ec68a06b191997c57883.tar.gz
CHDLC: Update the link-layer dissector to a void function
Moreover: Remove trailing "_if" from the protocol name.
Diffstat (limited to 'print.c')
-rw-r--r--print.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/print.c b/print.c
index 87a44231..4f5273d0 100644
--- a/print.c
+++ b/print.c
@@ -53,12 +53,6 @@ struct void_printer {
};
static const struct uint_printer uint_printers[] = {
-#ifdef DLT_C_HDLC
- { chdlc_if_print, DLT_C_HDLC },
-#endif
-#ifdef DLT_HDLC
- { chdlc_if_print, DLT_HDLC },
-#endif
#if defined(DLT_PFLOG) && defined(HAVE_NET_IF_PFLOG_H)
{ pflog_if_print, DLT_PFLOG },
#endif
@@ -86,6 +80,12 @@ static const struct void_printer void_printers[] = {
#ifdef DLT_BLUETOOTH_HCI_H4_WITH_PHDR
{ bt_if_print, DLT_BLUETOOTH_HCI_H4_WITH_PHDR},
#endif
+#ifdef DLT_C_HDLC
+ { chdlc_if_print, DLT_C_HDLC },
+#endif
+#ifdef DLT_HDLC
+ { chdlc_if_print, DLT_HDLC },
+#endif
#ifdef DLT_ATM_CLIP
{ cip_if_print, DLT_ATM_CLIP },
#endif