summaryrefslogtreecommitdiffstats
path: root/src/network/networkctl.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-07-11 03:17:30 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-07-11 15:22:29 +0200
commit49808e0e2d01fd77df2e748de19cb402eb176bb9 (patch)
tree777f1ce9279fbfc6178e2c5a17a18228fb378a4c /src/network/networkctl.c
parentsd-netlink: make sd_netlink_message_read() returns size of read data (diff)
downloadsystemd-49808e0e2d01fd77df2e748de19cb402eb176bb9.tar.xz
systemd-49808e0e2d01fd77df2e748de19cb402eb176bb9.zip
network: NDA_LLADDR attribute can also take struct in_addr
Diffstat (limited to 'src/network/networkctl.c')
-rw-r--r--src/network/networkctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index 2a748b8599..9d755c96d6 100644
--- a/src/network/networkctl.c
+++ b/src/network/networkctl.c
@@ -519,7 +519,7 @@ static int get_gateway_description(
if (!in_addr_equal(fam, &gw, gateway))
continue;
- r = sd_netlink_message_read_ether_addr(m, NDA_LLADDR, &mac);
+ r = sd_netlink_message_read(m, NDA_LLADDR, sizeof(mac), &mac);
if (r < 0)
continue;