networkd: add bridge support

System Internals / systemd - Tom Gundersen [jklm.no] - 25 November 2013 18:32 UTC

A bridge is specified in a .netdev file with a section [Bridge] and at least the entry Name=.

A link may be joined to a bridge if the .network applied to it has a Bridge= entry giving the name of the bridge in its [Network] section.

We eagerly create all bridges on startup, and links are added to bridges as soon as they both appear.

02b59d5 networkd: add bridge support
Makefile.am | 2 +
src/network/networkd-bridge.c | 321 ++++++++++++++++++++++++++++++++++++++
src/network/networkd-gperf.gperf | 3 +
src/network/networkd-link.c | 57 ++++++-
src/network/networkd-manager.c | 30 ++++
src/network/networkd-network.c | 46 ++++--
src/network/networkd.c | 4 +
src/network/networkd.h | 60 ++++++-
src/network/test-network.c | 8 +-
9 files changed, 513 insertions(+), 18 deletions(-)

Upstream: github.com


  • Share