diff options
Diffstat (limited to 'include/net/ipv6.h')
| -rw-r--r-- | include/net/ipv6.h | 11 | 
1 files changed, 2 insertions, 9 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 34200f9e680..e1c60b43e73 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h @@ -77,11 +77,9 @@  /*   *	Addr scopes   */ -#ifdef __KERNEL__  #define IPV6_ADDR_MC_SCOPE(a)	\  	((a)->s6_addr[1] & 0x0f)	/* nonstandard */  #define __IPV6_ADDR_SCOPE_INVALID	-1 -#endif  #define IPV6_ADDR_SCOPE_NODELOCAL	0x01  #define IPV6_ADDR_SCOPE_LINKLOCAL	0x02  #define IPV6_ADDR_SCOPE_SITELOCAL	0x05 @@ -91,14 +89,12 @@  /*   *	Addr flags   */ -#ifdef __KERNEL__  #define IPV6_ADDR_MC_FLAG_TRANSIENT(a)	\  	((a)->s6_addr[1] & 0x10)  #define IPV6_ADDR_MC_FLAG_PREFIX(a)	\  	((a)->s6_addr[1] & 0x20)  #define IPV6_ADDR_MC_FLAG_RENDEZVOUS(a)	\  	((a)->s6_addr[1] & 0x40) -#endif  /*   *	fragmentation header @@ -113,8 +109,6 @@ struct frag_hdr {  #define	IP6_MF	0x0001 -#ifdef __KERNEL__ -  #include <net/sock.h>  /* sysctls */ @@ -376,8 +370,8 @@ enum ip6_defrag_users {  struct ip6_create_arg {  	__be32 id;  	u32 user; -	struct in6_addr *src; -	struct in6_addr *dst; +	const struct in6_addr *src; +	const struct in6_addr *dst;  };  void ip6_frag_init(struct inet_frag_queue *q, void *a); @@ -667,5 +661,4 @@ extern int ipv6_static_sysctl_register(void);  extern void ipv6_static_sysctl_unregister(void);  #endif -#endif /* __KERNEL__ */  #endif /* _NET_IPV6_H */  |