summaryrefslogtreecommitdiff
path: root/sysdep
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2015-04-12 10:47:17 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2015-04-12 10:47:17 +0200
commit304ac2e861a5ea28683489aff38ff37ff6873bb4 (patch)
tree4a774721a3ecf2cb8f44bd7f612c4b0d2aca76de /sysdep
parentd924d5a5626397da7e71fddfb1c0fd22c2714f2c (diff)
Minor fixes
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/bsd/krt-sock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c
index 0e65c51c..73f69df5 100644
--- a/sysdep/bsd/krt-sock.c
+++ b/sysdep/bsd/krt-sock.c
@@ -247,7 +247,7 @@ krt_send_route(struct krt_proto *p, int cmd, rte *e)
#ifdef IPV6
/* Embed interface ID to link-local address */
- if (ipa_has_link_scope(gw))
+ if (ipa_is_link_local(gw))
_I0(gw) = 0xfe800000 | (i->index & 0x0000ffff);
#endif
@@ -468,7 +468,7 @@ krt_read_route(struct ks_msg *msg, struct krt_proto *p, int scan)
#ifdef IPV6
/* Clean up embedded interface ID returned in link-local address */
- if (ipa_has_link_scope(a.gw))
+ if (ipa_is_link_local(a.gw))
_I0(a.gw) = 0xfe800000;
#endif
@@ -662,10 +662,10 @@ krt_read_addr(struct ks_msg *msg, int scan)
#ifdef IPV6
/* Clean up embedded interface ID returned in link-local address */
- if (ipa_has_link_scope(iaddr))
+ if (ipa_is_link_local(iaddr))
_I0(iaddr) = 0xfe800000;
- if (ipa_has_link_scope(ibrd))
+ if (ipa_is_link_local(ibrd))
_I0(ibrd) = 0xfe800000;
#endif