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)
Tue, Nov 18, 9:17 PM
Unknown Object (File)
Mon, Nov 17, 10:46 PM
Unknown Object (File)
Wed, Nov 12, 7:33 PM
Unknown Object (File)
Nov 4 2025, 6:00 AM
Unknown Object (File)
Oct 31 2025, 6:50 AM
Unknown Object (File)
Oct 29 2025, 5:58 AM
Unknown Object (File)
Oct 28 2025, 5:20 PM
Unknown Object (File)
Oct 26 2025, 12:03 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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