summaryrefslogtreecommitdiff
path: root/print.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-07-31 20:36:17 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-07-31 20:40:07 +0200
commitcab4799ee50e2ebe410a6f5743628617878a3f23 (patch)
treef536592df3237f430f739c5756a11b92b07ae9e5 /print.c
parent037f3e3e0c00c1d86e5245fb927e47179095b742 (diff)
downloadtcpdump-cab4799ee50e2ebe410a6f5743628617878a3f23.tar.gz
PPPoE: Update the link-layer dissector to a void function
Moreover: Add a length check. Fix a return. Use nd_print_trunc(). Remove trailing "_if" from the protocol name. Style.
Diffstat (limited to 'print.c')
-rw-r--r--print.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print.c b/print.c
index 7f644e08..0eef3bb0 100644
--- a/print.c
+++ b/print.c
@@ -80,9 +80,6 @@ static const struct uint_printer uint_printers[] = {
#ifdef DLT_HDLC
{ chdlc_if_print, DLT_HDLC },
#endif
-#ifdef DLT_PPP_ETHER
- { pppoe_if_print, DLT_PPP_ETHER },
-#endif
#if defined(DLT_PFLOG) && defined(HAVE_NET_IF_PFLOG_H)
{ pflog_if_print, DLT_PFLOG },
#endif
@@ -229,6 +226,9 @@ static const struct void_printer void_printers[] = {
#ifdef DLT_PPI
{ ppi_if_print, DLT_PPI },
#endif
+#ifdef DLT_PPP_ETHER
+ { pppoe_if_print, DLT_PPP_ETHER },
+#endif
{ raw_if_print, DLT_RAW },
#ifdef DLT_IPV4
{ raw_if_print, DLT_IPV4 },