X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/6ec714988caac3bf9fedc766ae51a2248896ec80..96afbce6fc40e89e4f215db5838ae00979185e11:/print-ether.c diff --git a/print-ether.c b/print-ether.c index ce96e62e..7143830f 100644 --- a/print-ether.c +++ b/print-ether.c @@ -114,8 +114,8 @@ ether_hdr_print(netdissect_options *ndo, ep = (const struct ether_header *)bp; ND_PRINT((ndo, "%s > %s", - etheraddr_string(ndo, ESRC(ep)), - etheraddr_string(ndo, EDST(ep)))); + etheraddr_string(ndo, ep->ether_shost), + etheraddr_string(ndo, ep->ether_dhost))); length_type = EXTRACT_BE_U_2(ep->ether_length_type); if (!ndo->ndo_qflag) { @@ -179,9 +179,9 @@ ether_print(netdissect_options *ndo, p += ETHER_HDRLEN; hdrlen = ETHER_HDRLEN; - src.addr = ESRC(ep); + src.addr = ep->ether_shost; src.addr_string = etheraddr_string; - dst.addr = EDST(ep); + dst.addr = ep->ether_dhost; dst.addr_string = etheraddr_string; length_type = EXTRACT_BE_U_2(ep->ether_length_type);