summaryrefslogtreecommitdiff
path: root/sysdep/bsd
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2017-12-07 13:44:00 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2017-12-07 13:44:00 +0100
commit7c454d918682c072a6ae6ad8e0cd8d35b9edd2aa (patch)
tree608e31ea813f5ad931dfc621dacfb2e0ef6714b8 /sysdep/bsd
parentabae1cc58b7c4ccf683651a6fcd51cfaecd03566 (diff)
BSD: Minor fix of penultimate commit
Diffstat (limited to 'sysdep/bsd')
-rw-r--r--sysdep/bsd/krt-sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c
index be8b50d6..efbfdd5e 100644
--- a/sysdep/bsd/krt-sock.c
+++ b/sysdep/bsd/krt-sock.c
@@ -1144,7 +1144,7 @@ kif_update_sysdep_addr(struct iface *i)
return 0;
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);
}