Page MenuHomeFreeBSD

Fix IPSEC_DEBUG in ipsec.ko
ClosedPublic

Authored by jhb on May 29 2020, 5:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 29, 9:35 AM
Unknown Object (File)
Sat, Mar 28, 5:28 AM
Unknown Object (File)
Thu, Mar 26, 9:55 AM
Unknown Object (File)
Tue, Mar 24, 9:53 AM
Unknown Object (File)
Tue, Mar 24, 9:53 AM
Unknown Object (File)
Mon, Mar 16, 3:14 AM
Unknown Object (File)
Feb 8 2026, 9:09 AM
Unknown Object (File)
Feb 8 2026, 4:20 AM
Subscribers

Details

Summary

Honor opt_ipsec.h from kernel builds.

To make this simpler, set the default contents of opt_ipsec.h
for standalone modules in sys/conf/config.mk.

Consistently include opt_ipsec.h for consumers of <netipsec/ipsec.h>.

This fixes ipsec.ko to include all of IPSEC_DEBUG.

Test Plan
  • tried to debug an OCF regression caught by ipsec and found that debug traces in xform_esp.c weren't working in ipsec.ko

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 31362
Build 28989: arc lint + arc unit

Event Timeline

jhb requested review of this revision.May 29 2020, 5:48 AM

This would be two commits, with logs as in the description, one to change opt_ipsec.h generation for modules and one to fix the #includes.

This revision is now accepted and ready to land.May 29 2020, 6:51 AM