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
Sponsored by: The FreeBSD Foundation

(cherry picked from commit b4f60fab5d3fdd2ea51c1151fa79b2c541c6b81a)

Details

Provenance
markjAuthored on Feb 10 2022, 8:31 PM
Parents
rGd3f0d2c0eef6: linux: Add additional ptracestop only if the debugger is Linux
Branches
Unknown
Tags
Unknown