X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/424961546a4e32086ff7e431794173a2d0901469..c20547acdacc5a3c31b834c73f00dba895256444:/print-loopback.c diff --git a/print-loopback.c b/print-loopback.c index ee0caf3c..e545eb07 100644 --- a/print-loopback.c +++ b/print-loopback.c @@ -29,12 +29,11 @@ /* * originally defined as the Ethernet Configuration Testing Protocol. - * specification: https://www.mit.edu/people/jhawk/ctp.pdf + * specification: + * https://web.archive.org/web/20060919181108/http://www.mit.edu/people/jhawk/ctp.pdf */ -#ifdef HAVE_CONFIG_H #include -#endif #include "netdissect-stdinc.h" @@ -80,12 +79,12 @@ loopback_message_print(netdissect_options *ndo, ND_TCHECK_LEN(cp, len); break; case LOOPBACK_FWDDATA: - if (len < MAC_ADDR_LEN) + if (len < MAC48_LEN) goto invalid; /* forwarding address */ - ND_PRINT(", forwarding address %s", GET_ETHERADDR_STRING(cp)); - cp += MAC_ADDR_LEN; - len -= MAC_ADDR_LEN; + ND_PRINT(", forwarding address %s", GET_MAC48_STRING(cp)); + cp += MAC48_LEN; + len -= MAC48_LEN; /* data */ ND_PRINT(", data (%u octets)", len); ND_TCHECK_LEN(cp, len);