The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=7a436d378951bedbdaa71d45bf236fb001323549
commit 7a436d378951bedbdaa71d45bf236fb001323549 Author: John Baldwin <[email protected]> AuthorDate: 2026-05-27 20:56:39 +0000 Commit: John Baldwin <[email protected]> CommitDate: 2026-05-27 20:56:56 +0000 ctld: Don't ignore pp/vp values of kernel ports with pp == 0 but vp != 0 Fixes: c6f1e9b8a412 ("ctld: Simplify XML parsing memory management") Sponsored by: Chelsio Communications --- usr.sbin/ctld/kernel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/ctld/kernel.cc b/usr.sbin/ctld/kernel.cc index a6b0a79850ec..59a339e1c96b 100644 --- a/usr.sbin/ctld/kernel.cc +++ b/usr.sbin/ctld/kernel.cc @@ -549,7 +549,7 @@ conf_new_from_kernel(struct kports &kports) continue; std::string name = port.port_name; - if (port.pp != 0) { + if (port.pp != 0 || port.vp != 0) { name += "/" + std::to_string(port.pp); if (port.vp != 0) name += "/" + std::to_string(port.vp);
