From 276ad209008bb044f71bd23372b571b28367273e Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Mon, 4 Mar 2013 14:42:26 +0000 Subject: Replace the cast to struct in6_ifaddr pointer with the ifatoia6() macro. No binary change. OK claudio@ --- sys/netinet6/raw_ip6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/netinet6/raw_ip6.c') 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; -- cgit v1.2.3