From: Lennart Poettering Date: Fri, 19 Feb 2016 18:59:32 +0000 (+0100) Subject: networkd: turn on LLDP reception by default, in "routers-only" mode X-Git-Tag: v230~328^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cececb2ea707a6d9b063538cf986fd27edd8cd3;p=thirdparty%2Fsystemd.git networkd: turn on LLDP reception by default, in "routers-only" mode This way "networkctl status" becomes a bit more useful by default, as router information is just visible, without any further configuration. LLDP reception is fully passive and relatively low simple and low traffic, hence this should be safe to enable by default. --- diff --git a/man/systemd.network.xml b/man/systemd.network.xml index 2de2a550dba..bbdcace5632 100644 --- a/man/systemd.network.xml +++ b/man/systemd.network.xml @@ -339,7 +339,7 @@ routers-only. When true, incoming LLDP packets are accepted and a database of all LLDP neighbors maintained. If routers-only is set only LLDP data of various types of routers is collected and LLDP data about other types of devices ignored (such as stations, telephones and - others). If false, LLDP reception is disabled. Defaults to false. Use + others). If false, LLDP reception is disabled. Defaults to routers-only. Use networkctl1 to query the collected neighbor data. diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index a6512d26e5e..935042260bf 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -119,6 +119,8 @@ static int network_load_one(Manager *manager, const char *filename) { network->allow_port_to_be_root = true; network->unicast_flood = true; + network->lldp_mode = LLDP_MODE_ROUTERS_ONLY; + network->llmnr = RESOLVE_SUPPORT_YES; network->mdns = RESOLVE_SUPPORT_NO; network->dnssec_mode = _DNSSEC_MODE_INVALID;