BSD: Minor fix of penultimate commit
This commit is contained in:
parent
abae1cc58b
commit
7c454d9186
1 changed files with 2 additions and 2 deletions
|
@ -1144,7 +1144,7 @@ kif_update_sysdep_addr(struct iface *i)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
ip4_addr old = i->sysdep;
|
ip4_addr old = i->sysdep;
|
||||||
i->sysdep = ip4_from_ipa(ipa_from_sa4(&ifr.ifr_addr);
|
i->sysdep = ipa_to_ip4(ipa_from_sa4(&ifr.ifr_addr));
|
||||||
|
|
||||||
return !ip4_equal(i->sysdep, addr);
|
return !ip4_equal(i->sysdep, old);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue