summaryrefslogtreecommitdiff
path: root/print.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-08-04 17:24:53 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-08-04 17:25:01 +0200
commit4262b291643c6e42ef3f964f8d5ad150d0b84efb (patch)
tree3714f79d4555371c5098a4727d0a29ae4f5c0f38 /print.c
parentb1327f7a884d95b7bf45731ad424e71b5c01690c (diff)
downloadtcpdump-4262b291643c6e42ef3f964f8d5ad150d0b84efb.tar.gz
FR: Update the link-layer dissectors to void functions
Moreover: Remove trailing "_if" from the protocol name. Add two comments.
Diffstat (limited to 'print.c')
-rw-r--r--print.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/print.c b/print.c
index 414a8955..780a6281 100644
--- a/print.c
+++ b/print.c
@@ -65,15 +65,6 @@ static const struct uint_printer uint_printers[] = {
#if defined(DLT_PFLOG) && defined(HAVE_NET_IF_PFLOG_H)
{ pflog_if_print, DLT_PFLOG },
#endif
-#ifdef DLT_FR
- { fr_if_print, DLT_FR },
-#endif
-#ifdef DLT_FRELAY
- { fr_if_print, DLT_FRELAY },
-#endif
-#ifdef DLT_MFR
- { mfr_if_print, DLT_MFR },
-#endif
#ifdef DLT_LTALK
{ ltalk_if_print, DLT_LTALK },
#endif
@@ -125,6 +116,12 @@ static const struct void_printer void_printers[] = {
#endif
{ ether_if_print, DLT_EN10MB },
{ fddi_if_print, DLT_FDDI },
+#ifdef DLT_FR
+ { fr_if_print, DLT_FR },
+#endif
+#ifdef DLT_FRELAY
+ { fr_if_print, DLT_FRELAY },
+#endif
#ifdef DLT_IEEE802_11
{ ieee802_11_if_print, DLT_IEEE802_11},
#endif
@@ -197,6 +194,9 @@ static const struct void_printer void_printers[] = {
#ifdef DLT_JUNIPER_SERVICES
{ juniper_services_if_print, DLT_JUNIPER_SERVICES },
#endif
+#ifdef DLT_MFR
+ { mfr_if_print, DLT_MFR },
+#endif
#ifdef DLT_NETANALYZER
{ netanalyzer_if_print, DLT_NETANALYZER },
#endif