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 4, 6:00 AM
Unknown Object (File)
Fri, Oct 31, 6:50 AM
Unknown Object (File)
Wed, Oct 29, 5:58 AM
Unknown Object (File)
Tue, Oct 28, 5:20 PM
Unknown Object (File)
Sun, Oct 26, 12:03 AM
Unknown Object (File)
Fri, Oct 24, 12:23 AM
Unknown Object (File)
Wed, Oct 22, 10:42 AM
Unknown Object (File)
Tue, Oct 21, 4:07 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