tcpdump mailing list archives

Re: [tcpdump] About struct in_addr / struct in6_addr


From: Guy Harris via tcpdump-workers <tcpdump-workers () lists tcpdump org>
Date: Sun, 17 Jul 2022 10:57:27 -0700

--- Begin Message --- From: Guy Harris <gharris () sonic net>
Date: Sun, 17 Jul 2022 10:57:27 -0700
On Jul 17, 2022, at 10:10 AM, Francois-Xavier Le Bail via tcpdump-workers <tcpdump-workers () lists tcpdump org> wrote:

The current nd_ipv4 and nd_ipv6 types were added in 2017 for alignment reasons.

Since then,
most of the 'struct in_addr' were replaced by 'nd_ipv4',
most of the 'struct in6_addr' were replaced by 'nd_ipv6'.

Remain:
pflog.h:110:        struct in_addr      v4;
pflog.h:111:        struct in6_addr     v6;

Should they be replaced also?

Yes.  Dne in 71da7b139eb418ac91f1169c550e8a4dc970a692.

--- End Message ---
_______________________________________________
tcpdump-workers mailing list
tcpdump-workers () lists tcpdump org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers

Current thread: