diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-01-30 17:29:33 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-01-30 17:29:33 -0800 |
commit | 3db38df8ed9dcd8191438bb69e2ddbda6d90ed61 (patch) | |
tree | 993df9ab65159c75d8c1fbde9c9a0bb78072098d /print-lwres.c | |
parent | 7f952dfbb3ffd7fa937af4c97f5e58cdf03e4aab (diff) | |
download | tcpdump-3db38df8ed9dcd8191438bb69e2ddbda6d90ed61.tar.gz |
Use nd_ipv6 rather than struct in6_addr in packet-layout structures.
Also, use it, and nd_ipv4, in sizeof() operations.
Diffstat (limited to 'print-lwres.c')
-rw-r--r-- | print-lwres.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-lwres.c b/print-lwres.c index 0e0d1aa2..b2a32be6 100644 --- a/print-lwres.c +++ b/print-lwres.c @@ -281,13 +281,13 @@ lwres_printaddr(netdissect_options *ndo, if (l < 4) return -1; ND_PRINT(" %s", ipaddr_string(ndo, p)); - p += sizeof(struct in_addr); + p += sizeof(nd_ipv4); break; case 2: /* IPv6 */ if (l < 16) return -1; ND_PRINT(" %s", ip6addr_string(ndo, p)); - p += sizeof(struct in6_addr); + p += sizeof(nd_ipv6); break; default: ND_PRINT(" %u/", EXTRACT_BE_U_4(ap->family)); |