diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-07-31 20:36:17 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-07-31 20:40:07 +0200 |
commit | cab4799ee50e2ebe410a6f5743628617878a3f23 (patch) | |
tree | f536592df3237f430f739c5756a11b92b07ae9e5 /print.c | |
parent | 037f3e3e0c00c1d86e5245fb927e47179095b742 (diff) | |
download | tcpdump-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 }, |