diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-07-11 03:17:30 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2019-07-11 15:22:29 +0200 |
commit | 49808e0e2d01fd77df2e748de19cb402eb176bb9 (patch) | |
tree | 777f1ce9279fbfc6178e2c5a17a18228fb378a4c /src/network/networkctl.c | |
parent | sd-netlink: make sd_netlink_message_read() returns size of read data (diff) | |
download | systemd-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.c | 2 |
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; |