X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/c72751f8cdc8bf0f87d26531d24d74aaddf377f2..82cfcd4391f9f6c748634bfd7b48a44f42e6a53d:/print-ether.c diff --git a/print-ether.c b/print-ether.c index c47749c3..5607bfc3 100644 --- a/print-ether.c +++ b/print-ether.c @@ -86,7 +86,7 @@ const struct tok ethertype_values[] = { { ETHERTYPE_PPPOED, "PPPoE D" }, { ETHERTYPE_PPPOES, "PPPoE S" }, { ETHERTYPE_EAPOL, "EAPOL" }, - { ETHERTYPE_RRCP, "RRCP" }, + { ETHERTYPE_REALTEK, "Realtek protocols" }, { ETHERTYPE_MS_NLB_HB, "MS NLB heartbeat" }, { ETHERTYPE_JUMBO, "Jumbo" }, { ETHERTYPE_NSH, "NSH" }, @@ -238,7 +238,7 @@ recurse: */ length_type = GET_BE_U_2(p); - ND_LCHECK_U(caplen, 2); + ND_ICHECK_U(caplen, <, 2); length -= 2; caplen -= 2; p += 2; @@ -584,8 +584,8 @@ ethertype_print(netdissect_options *ndo, eapol_print(ndo, p); return (1); - case ETHERTYPE_RRCP: - rrcp_print(ndo, p, length, src, dst); + case ETHERTYPE_REALTEK: + rtl_print(ndo, p, length, src, dst); return (1); case ETHERTYPE_PPP: