summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/raw_ip6.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2013-03-04 14:42:25 +0000
committerbluhm <bluhm@openbsd.org>2013-03-04 14:42:25 +0000
commit6143cd01c9143a35ab291bc2448cc566428e866f (patch)
tree68c04d953864eac3ce8929082adf1177fc7fe777 /sys/netinet6/raw_ip6.c
parentWhen deleting an IPv6 interface address, also remove the prefix and (diff)
downloadwireguard-openbsd-6143cd01c9143a35ab291bc2448cc566428e866f.tar.xz
wireguard-openbsd-6143cd01c9143a35ab291bc2448cc566428e866f.zip
Replace the cast to struct in6_ifaddr pointer with the ifatoia6() macro.
No binary change. OK claudio@
Diffstat (limited to 'sys/netinet6/raw_ip6.c')
-rw-r--r--sys/netinet6/raw_ip6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c
index ef353fec29a..5324603a6cf 100644
--- a/sys/netinet6/raw_ip6.c
+++ b/sys/netinet6/raw_ip6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: raw_ip6.c,v 1.45 2012/10/21 13:06:03 benno Exp $ */
+/* $OpenBSD: raw_ip6.c,v 1.46 2013/03/04 14:42:25 bluhm Exp $ */
/* $KAME: raw_ip6.c,v 1.69 2001/03/04 15:55:44 itojun Exp $ */
/*
@@ -718,7 +718,7 @@ rip6_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam,
error = EADDRNOTAVAIL;
break;
}
- if (ia && ((struct in6_ifaddr *)ia)->ia6_flags &
+ if (ia && ifatoia6(ia)->ia6_flags &
(IN6_IFF_ANYCAST|IN6_IFF_NOTREADY|
IN6_IFF_DETACHED|IN6_IFF_DEPRECATED)) {
error = EADDRNOTAVAIL;