X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/cfa9ab5f80dd9a1024e1a765bc0d24c57652b6bc..a63600a1fc28dbc7ae7ce9f996829c49a25fb33c:/print-egp.c diff --git a/print-egp.c b/print-egp.c index bf9578db..526e36dd 100644 --- a/print-egp.c +++ b/print-egp.c @@ -206,7 +206,7 @@ egpnr_print(netdissect_options *ndo, length--; ND_PRINT(" %s %s ", gateways < intgw ? "int" : "ext", - ipaddr_string(ndo, (const u_char *)&addr)); + ipaddr_string(ndo, (const u_char *)&addr)); /* local buffer, not packet data; don't use GET_IPADDR_STRING() */ comma = ""; ND_PRINT("("); @@ -241,7 +241,7 @@ egpnr_print(netdissect_options *ndo, cp++; length -= 2; } - ND_PRINT(" %s", ipaddr_string(ndo, (const u_char *)&addr)); + ND_PRINT(" %s", ipaddr_string(ndo, (const u_char *)&addr)); /* local buffer, not packet data; don't use GET_IPADDR_STRING() */ networks--; } distances--; @@ -265,7 +265,7 @@ egp_print(netdissect_options *ndo, ndo->ndo_protocol = "egp"; egp = (const struct egp_packet *)bp; - ND_LCHECKMSG_ZU(length, sizeof(*egp), "packet length"); + ND_ICHECKMSG_ZU("packet length", length, <, sizeof(*egp)); ND_TCHECK_SIZE(egp); version = GET_U_1(egp->egp_version);