HomeFreeBSD

tcp: Avoid conditionally defined fields in union lro_address

Description

tcp: Avoid conditionally defined fields in union lro_address

The layout of the structure ends up depending on whether the including
file includes opt_inet.h and opt_inet6.h, so different compilation units
can end up seeing different versions of the structure. Fix this by
unconditionally defining the address fields.

As a side effect, this eliminates some duplication in the kernel's CTF
type graph.

Reviewed by: rscheff, tuexen
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34242

Details

Provenance
markjAuthored on Feb 10 2022, 8:31 PM
Reviewer
rscheff
Differential Revision
D34242: tcp: Avoid conditionally defined fields in union lro_address
Parents
rGf0fd4a32c4f7: bin/df: allow -t option to be used together with -l
Branches
Unknown
Tags
Unknown