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)
Sat, Aug 29, 10:00 AM
Unknown Object (File)
Sat, Aug 29, 1:22 AM
Unknown Object (File)
Thu, Aug 20, 12:53 PM
Unknown Object (File)
Wed, Aug 19, 4:52 PM
Unknown Object (File)
Wed, Aug 19, 3:25 PM
Unknown Object (File)
Tue, Aug 18, 8:03 PM
Unknown Object (File)
Tue, Aug 18, 6:56 AM
Unknown Object (File)
Tue, Aug 18, 6:42 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