diff options
Diffstat (limited to 'include/net/if_inet6.h')
| -rw-r--r-- | include/net/if_inet6.h | 7 | 
1 files changed, 2 insertions, 5 deletions
diff --git a/include/net/if_inet6.h b/include/net/if_inet6.h index fccc2180c61..0c603fe6537 100644 --- a/include/net/if_inet6.h +++ b/include/net/if_inet6.h @@ -30,8 +30,6 @@  #define IF_PREFIX_ONLINK	0x01  #define IF_PREFIX_AUTOCONF	0x02 -#ifdef __KERNEL__ -  enum {  	INET6_IFADDR_STATE_DAD,  	INET6_IFADDR_STATE_POSTDAD, @@ -196,7 +194,7 @@ struct inet6_dev {  	struct rcu_head		rcu;  }; -static inline void ipv6_eth_mc_map(struct in6_addr *addr, char *buf) +static inline void ipv6_eth_mc_map(const struct in6_addr *addr, char *buf)  {  	/*  	 *	+-------+-------+-------+-------+-------+-------+ @@ -210,7 +208,7 @@ static inline void ipv6_eth_mc_map(struct in6_addr *addr, char *buf)  	memcpy(buf + 2, &addr->s6_addr32[3], sizeof(__u32));  } -static inline void ipv6_tr_mc_map(struct in6_addr *addr, char *buf) +static inline void ipv6_tr_mc_map(const struct in6_addr *addr, char *buf)  {  	/* All nodes FF01::1, FF02::1, FF02::1:FFxx:xxxx */ @@ -303,4 +301,3 @@ static inline int ipv6_ipgre_mc_map(const struct in6_addr *addr,  }  #endif -#endif  |