X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fipv6.h;fp=src%2Fipv6.h;h=b6862b62fc57e13f9fd56bbb265aabae6255068b;hp=6a4466f11d37e652121a11037e11eab4b09d1c77;hb=d178b583df9fe2bf3ebb3a7377203efc5c46df32;hpb=4fe3688bc68f77686d2061ee9240509e7158441c diff --git a/src/ipv6.h b/src/ipv6.h index 6a4466f1..b6862b62 100644 --- a/src/ipv6.h +++ b/src/ipv6.h @@ -1,3 +1,6 @@ +#ifndef TINC_IPV6_H +#define TINC_IPV6_H + /* ipv6.h -- missing IPv6 related definitions Copyright (C) 2005 Ivo Timmermans @@ -18,9 +21,6 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef __TINC_IPV6_H__ -#define __TINC_IPV6_H__ - #ifndef AF_INET6 #define AF_INET6 10 #endif @@ -54,9 +54,9 @@ struct sockaddr_in6 { #ifndef IN6_IS_ADDR_V4MAPPED #define IN6_IS_ADDR_V4MAPPED(a) \ - ((((__const uint32_t *) (a))[0] == 0) \ - && (((__const uint32_t *) (a))[1] == 0) \ - && (((__const uint32_t *) (a))[2] == htonl (0xffff))) + ((((const uint32_t *) (a))[0] == 0) \ + && (((const uint32_t *) (a))[1] == 0) \ + && (((const uint32_t *) (a))[2] == htonl (0xffff))) #endif #ifndef HAVE_STRUCT_IP6_HDR @@ -127,4 +127,4 @@ struct nd_opt_hdr { } __attribute__ ((__packed__)); #endif -#endif /* __TINC_IPV6_H__ */ +#endif