summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-07-01 11:27:24 +0200
committerTom Gundersen <teg@jklm.no>2014-07-01 12:55:05 +0200
commit1a941ac4b690cb3f4333e35f4a5036fe6fd50ff9 (patch)
tree387147e2b6d6306f0f9bfbaa31263039998508ca /src
parentafc3f9cb24d1e0ee01dc5841fa4c215e697548de (diff)
networkd: link - ignore missing MAC address
Currently DHCP/IPv4LL only works on ethernet devices, but no reason not to otherwise manage them.
Diffstat (limited to 'src')
-rw-r--r--src/network/networkd-link.c2
-rw-r--r--src/network/networkd-manager.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 8674eee948..ce9fbb5ed8 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -78,7 +78,7 @@ static int link_new(Manager *manager, sd_rtnl_message *message, Link **ret) {
r = sd_rtnl_message_read_ether_addr(message, IFLA_ADDRESS, &link->mac);
if (r < 0)
- return r;
+ log_debug_link(link, "MAC address not found for new device, continuing without");
r = asprintf(&link->state_file, "/run/systemd/netif/links/%"PRIu64,
link->ifindex);
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c
index c93d598c6b..c1d50128a5 100644
--- a/src/network/networkd-manager.c
+++ b/src/network/networkd-manager.c
@@ -292,7 +292,8 @@ static int manager_rtnl_process_link(sd_rtnl *rtnl, sd_rtnl_message *message, vo
/* link is new, so add it */
r = link_add(m, message, &link);
if (r < 0) {
- log_debug("could not add new link");
+ log_debug("could not add new link: %s",
+ strerror(-r));
return 0;
}
}