tcpdump mailing list archives

Re: [tcpdump] About struct in_addr / struct in6_addr


From: Francois-Xavier Le Bail via tcpdump-workers <tcpdump-workers () lists tcpdump org>
Date: Sun, 17 Jul 2022 20:09:34 +0200

--- Begin Message --- From: Francois-Xavier Le Bail <devel.fx.lebail () orange fr>
Date: Sun, 17 Jul 2022 20:09:34 +0200
On 17/07/2022 19:57, Guy Harris wrote:
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.

OK, thank you.

Remain some stuff about 'struct in6_addr'. Any need to keep them?

$ git grep -l 'struct in6_addr'
CMakeLists.txt
cmakeconfig.h.in
config.h.in
configure
configure.ac
netdissect-stdinc.h

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

Current thread: