HomeFreeBSD

ctld: parse config file independently of getting kernel info

Description

ctld: parse config file independently of getting kernel info

Separate the parsing of the config file from the reading of kernel port
information. This has three benefits:

  • Separation of concerns makes future changes easier.
  • Allows the config file to be read earlier, which is necessary for fixing PR 271460.
  • Reduces total line count, by eliminating duplication between parse.y (for traditional config file) and uclparse.c (for UCL config file).

Sponsored by: Axcient
Reviewed by: mav
Pull Request: https://github.com/freebsd/freebsd-src/pull/1287

(cherry picked from commit 969876fcee57ea1cb1c7b4d2ee757793cbfbe353)

Details

Provenance
asomersAuthored on Jun 10 2024, 11:48 PM
Parents
rG0cc98ae442ba: ctld: plug memory leaks
Branches
Unknown
Tags
Unknown