summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-16 19:26:40 +0100
committerLennart Poettering <lennart@poettering.net>2016-02-20 22:42:29 +0100
commit032b27f53452b224ce233381f9e5631998f80ea8 (patch)
treefd3ee77ed15a570953a6c6d2e151305d4e79aee3 /src/network
parent2139d247bd2909be5a1991b96aaf305136131244 (diff)
sd-lldp: drop "port" object
Let's just keep the few parts we actually need of it in the main sd_lldp object, so that we can simplify things quite a bit. While we are at it, remove ifname and mac fields which we make no use of whatsoever.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-link.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 692c0bf63d..1711436b48 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -2109,7 +2109,7 @@ static int link_configure(Link *link) {
}
if (link_lldp_enabled(link)) {
- r = sd_lldp_new(link->ifindex, link->ifname, &link->mac, &link->lldp);
+ r = sd_lldp_new(link->ifindex, &link->lldp);
if (r < 0)
return r;
@@ -2117,8 +2117,7 @@ static int link_configure(Link *link) {
if (r < 0)
return r;
- r = sd_lldp_set_callback(link->lldp,
- lldp_handler, link);
+ r = sd_lldp_set_callback(link->lldp, lldp_handler, link);
if (r < 0)
return r;
}