[tcpdump] About struct in_addr / struct in6_addr

Francois-Xavier Le Bail devel.fx.lebail at orange.fr
Sun Jul 17 13:10:12 EDT 2022


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'.

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

Should they be replaced also?


More information about the tcpdump-workers mailing list