diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2013-03-04 14:42:26 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2013-03-04 14:42:26 +0000 |
commit | 276ad209008bb044f71bd23372b571b28367273e (patch) | |
tree | d3668ce4cf2e74024b62d997682bad295f31b37b /sys/netinet6/raw_ip6.c | |
parent | ead282c6b876a48dc12d77e3496fb775d84d225a (diff) |
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.c | 4 |
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; |