diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-10-13 15:35:29 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2017-10-16 14:01:15 +0200 |
commit | 24cdc1b59f00a065dd1cf0a04145ca6aaf6f23f1 (patch) | |
tree | 26872cb650fab1ca4cae0acc4b8cd60ad347237b /src/dhcpv4.c | |
parent | 5dfb716333ad12b86312ef5d8c824ea1ed3df26b (diff) |
treewide: add netlink file
First step in moving netlink code to netlink.c by
moving netlink code from odhcpd.c to netlink.c
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/dhcpv4.c')
-rw-r--r-- | src/dhcpv4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dhcpv4.c b/src/dhcpv4.c index bfe70cb..c8be632 100644 --- a/src/dhcpv4.c +++ b/src/dhcpv4.c @@ -293,7 +293,7 @@ static void decr_ref_cnt_ip(struct odhcpd_ref_ip **ptr, struct interface *iface) struct odhcpd_ref_ip *ip = *ptr; if (--ip->ref_cnt == 0) { - odhcpd_setup_addr(&ip->addr, iface, false, false); + netlink_setup_addr(&ip->addr, iface, false, false); list_del(&ip->head); free(ip); @@ -373,7 +373,7 @@ void dhcpv4_addr_update(struct interface *iface) a = list_first_entry(&iface->dhcpv4_fr_ips, struct odhcpd_ref_ip, head); - if (odhcpd_setup_addr(&a->addr, iface, false, true)) { + if (netlink_setup_addr(&a->addr, iface, false, true)) { syslog(LOG_ERR, "Failed to add ip address"); return; } |