]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ng_bridge: allow to automatically assign numbers to new hooks
authorDavid Marker <dave@freedave.net>
Mon, 8 Apr 2024 17:48:22 +0000 (10:48 -0700)
committerGleb Smirnoff <glebius@FreeBSD.org>
Mon, 8 Apr 2024 17:48:22 +0000 (10:48 -0700)
commit86a6393a7d6766875a9e03daa0273a2e55faacdd
tree43bda4b79a3be6bc2b6b3753d20dc020ccccf1e1
parent6fe4d8395bc5ec51a5ec68b5f1176b4710676b7c
ng_bridge: allow to automatically assign numbers to new hooks

This will allow a userland machinery that orchestrates a bridge (e.g. a
jail or vm manager) to not double the number allocation logic.  See bug
278130 for longer description and examples.

Reviewed by: glebius, afedorov
Differential Revision: https://reviews.freebsd.org/D44615
PR: 278130
share/man/man4/ng_bridge.4
sys/netgraph/ng_bridge.c