projects
/
project
/
odhcpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94afe3b
)
ndp: optimize check_addr6_updates code
author
Hans Dedecker
<dedeckeh@gmail.com>
Tue, 4 Jul 2017 09:14:54 +0000
(11:14 +0200)
committer
Hans Dedecker
<dedeckeh@gmail.com>
Tue, 4 Jul 2017 09:15:44 +0000
(11:15 +0200)
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/ndp.c
patch
|
blob
|
history
diff --git
a/src/ndp.c
b/src/ndp.c
index b4767ea618eebc81f156f0ac77145e22851488d3..2363a9dc568a5bf3134928c901aca027ec7512d5 100644
(file)
--- 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);
}