Files
src/usr.sbin/ctld
John Baldwin d6d8a7ba42 ctld: Convert struct portal_group to a C++ class
- Use std::string, freebsd_nvlist_up to manage life cycle of class
  members.

- Use an unordered_map<> keyed by std::string in struct conf to
  replace the previous TAILQ.

- Replace PG_FILTER_* macros with a scoped enum.

- Provide a variety of accessors as portal groups are widely used
  while keeping members private.

- The logic to "move" sockets from existing portals to new portals
  when parsing new configuration is now split into several operations
  across the conf and portal_group classes to preserve some semblance
  of data hiding.

Sponsored by:	Chelsio Communications
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1794
2025-08-04 15:38:07 -04:00
..
2023-08-16 11:54:16 -06:00