summaryrefslogtreecommitdiffhomepage
path: root/src/ndp.c
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2017-07-04 11:14:54 +0200
committerHans Dedecker <dedeckeh@gmail.com>2017-07-04 11:15:44 +0200
commitf0d78e7ebfa785fd6037e1f1f711d6c382450c3b (patch)
tree385d808ab4d0a96c2a3e62816997454a57ce5a3b /src/ndp.c
parent94afe3bf59b7ad6f3f7a4d0de609412b88387586 (diff)
ndp: optimize check_addr6_updates code
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Diffstat (limited to 'src/ndp.c')
-rw-r--r--src/ndp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ndp.c b/src/ndp.c
index b4767ea..2363a9d 100644
--- a/src/ndp.c
+++ b/src/ndp.c
@@ -347,10 +347,8 @@ static void check_addr6_updates(struct interface *iface)
iface->ia_addr = addr;
iface->ia_addr_len = len;
- if (change)
- dhcpv6_ia_postupdate(iface);
-
if (change) {
+ dhcpv6_ia_postupdate(iface);
syslog(LOG_INFO, "Raising SIGUSR1 due to address change on %s", iface->ifname);
raise(SIGUSR1);
}