Page MenuHomeFreeBSD

gre: unbreak LINT-NOINET
ClosedPublic

Authored by ngie on Feb 26 2026, 9:50 PM.
Tags
None
Referenced Files
F152739213: D55546.id.diff
Thu, Apr 16, 7:48 PM
F152727399: D55546.id172884.diff
Thu, Apr 16, 6:00 PM
Unknown Object (File)
Fri, Apr 10, 7:13 AM
Unknown Object (File)
Mon, Apr 6, 2:23 PM
Unknown Object (File)
Mon, Apr 6, 1:15 PM
Unknown Object (File)
Sun, Apr 5, 1:41 AM
Unknown Object (File)
Wed, Mar 25, 1:50 PM
Unknown Object (File)
Thu, Mar 19, 11:47 PM

Details

Summary
  • Move some of the braces under their respective conditionals to make the statements more self-encapsulated and only define the aliasreq union in the event either INET or INET6 is defined.
  • Fix a copy-paste error: in_gre_ioctl should be in6_gre_ioctl in the INET6 case.

This change makes the code compile in the LINT-NOINET case (when INET6
is enabled, but INET is not).

Reported by: tinderbox
Fixes: e1e18cc12e68 ("if_gre: Add netlink support with tests")

Test Plan

make tinderbox now builds/links this code cleanly with LINT-NOINET.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ngie requested review of this revision.Feb 26 2026, 9:50 PM

Incorporate more touchups to make LINT-NOINET compile/link with gre(4)

This revision is now accepted and ready to land.Feb 27 2026, 4:45 AM
ngie retitled this revision from if_gre: unbreak LINT-NOINET to gre: unbreak LINT-NOINET.Feb 27 2026, 5:44 AM
ngie edited the summary of this revision. (Show Details)
ngie edited the test plan for this revision. (Show Details)
ngie added a reviewer: pouria.
ngie added a subscriber: network.

Remove the superfluous diff to build netinet/ip_gre.c when INET6 is enabled

There's no reason why this file needs to be built in the INET6 case as the INET6
implementation lives in netinet6/ip6_gre.c. Fixing the typos in
gre_clone_dump_nl(..) was all that needed to be done to make things work
(properly).

This revision now requires review to proceed.Feb 27 2026, 5:59 AM
This revision is now accepted and ready to land.Feb 27 2026, 10:28 AM
This revision was automatically updated to reflect the committed changes.