diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-02-07 18:21:40 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-02-07 20:36:34 +0100 |
commit | 717095ab66fd1930248b6a3069ed275281214898 (patch) | |
tree | a1c5808b20f0ba91b60a369fcee608b9bdeb8e29 /print.c | |
parent | 92a263b1b36bd33612baa63b9e9ed0a41e07f05f (diff) | |
download | tcpdump-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 }, |