diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-08-06 16:08:23 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-08-06 16:27:24 +0200 |
commit | 5e9a51fdd559721eab88ec68a06b191997c57883 (patch) | |
tree | e9afb8b1910667a8e5590a57049f2da2113b6ba3 /print.c | |
parent | 496c43c10b94112b5a2d0634d55d85e58e3f6722 (diff) | |
download | tcpdump-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.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |