Hi, I've added support for handling the forwarding database table for a port. FDB entries can be configured statically through the ".network" files.
To resume, - I've added a new boolean for the main network structure, named "FDBControlled" which is read from the .network file and defaults to false. - I've added a new section "FDBEntry" accepting 2 key-value pairs: -MACAddress (mandatory) -VLAN (optional) When FDBControlled is set to "yes" in the network section, networkd: - gets the FDB entries for current port; - clears them - configures those specified in the [FDBEntry] section. Configuration example: [Network] DHCP=v4 FDBControlled=yes [FDBEntry] MACAddress=44:44:12:34:56:71 VLAN=9 [FDBEntry] MACAddress=44:44:12:34:56:72 VLAN=10 Thanks, Alin Alin Rauta (1): Add FDB support Makefile.am | 1 + man/systemd.network.xml | 31 +++ src/libsystemd/sd-rtnl/rtnl-message.c | 56 ++++- src/libsystemd/sd-rtnl/rtnl-types.c | 15 +- src/network/networkd-fdb.c | 357 +++++++++++++++++++++++++++++++ src/network/networkd-link.c | 37 ++++ src/network/networkd-network-gperf.gperf | 3 + src/network/networkd-network.c | 13 ++ src/network/networkd.h | 32 +++ src/systemd/sd-rtnl.h | 4 + 10 files changed, 539 insertions(+), 10 deletions(-) create mode 100644 src/network/networkd-fdb.c -- 1.9.3 _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel