diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-09-08 16:21:55 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-09-08 16:23:07 +0200 |
commit | abdda8c2445ff9d2effb9027c80fe25137cc1f14 (patch) | |
tree | 887490e8a2c7c4e8df13a88f6a5b9098174a06ce /pingu_netlink.c | |
parent | f7aa797e802bc111dd6a0136cef063ef7283e87d (diff) | |
download | pingu-abdda8c2445ff9d2effb9027c80fe25137cc1f14.tar.bz2 pingu-abdda8c2445ff9d2effb9027c80fe25137cc1f14.tar.xz |
pingu_netlink: remove ip rule before we reset the address
We use the address when removing the ip rule.
Diffstat (limited to 'pingu_netlink.c')
-rw-r--r-- | pingu_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pingu_netlink.c b/pingu_netlink.c index 7373364..1aafdff 100644 --- a/pingu_netlink.c +++ b/pingu_netlink.c @@ -588,8 +588,8 @@ static void netlink_addr_del_cb(struct nlmsghdr *nlmsg) if (iface == NULL) return; - pingu_iface_set_addr(iface, 0, NULL, 0); netlink_rule_del(&talk_fd, iface); + pingu_iface_set_addr(iface, 0, NULL, 0); } static struct pingu_gateway *gw_from_rtmsg(struct pingu_gateway *gw, |