1*2874c5fdSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 21da177e4SLinus Torvalds /* 31da177e4SLinus Torvalds * Types and definitions for AF_INET6 41da177e4SLinus Torvalds * Linux INET6 implementation 51da177e4SLinus Torvalds * 61da177e4SLinus Torvalds * Authors: 71da177e4SLinus Torvalds * Pedro Roque <roque@di.fc.ul.pt> 81da177e4SLinus Torvalds * 91da177e4SLinus Torvalds * Sources: 101da177e4SLinus Torvalds * IPv6 Program Interfaces for BSD Systems 111da177e4SLinus Torvalds * <draft-ietf-ipngwg-bsd-api-05.txt> 121da177e4SLinus Torvalds * 131da177e4SLinus Torvalds * Advanced Sockets API for IPv6 141da177e4SLinus Torvalds * <draft-stevens-advanced-api-00.txt> 151da177e4SLinus Torvalds */ 161da177e4SLinus Torvalds #ifndef _LINUX_IN6_H 171da177e4SLinus Torvalds #define _LINUX_IN6_H 181da177e4SLinus Torvalds 19607ca46eSDavid Howells #include <uapi/linux/in6.h> 201da177e4SLinus Torvalds 2125d46f43SYOSHIFUJI Hideaki / 吉藤英明 /* IPv6 Wildcard Address (::) and Loopback Address (::1) defined in RFC2553 2225d46f43SYOSHIFUJI Hideaki / 吉藤英明 * NOTE: Be aware the IN6ADDR_* constants and in6addr_* externals are defined 2325d46f43SYOSHIFUJI Hideaki / 吉藤英明 * in network byte order, not in host byte order as are the IPv4 equivalents 2425d46f43SYOSHIFUJI Hideaki / 吉藤英明 */ 251da177e4SLinus Torvalds extern const struct in6_addr in6addr_any; 261da177e4SLinus Torvalds #define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } } 271da177e4SLinus Torvalds extern const struct in6_addr in6addr_loopback; 281da177e4SLinus Torvalds #define IN6ADDR_LOOPBACK_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } } 29f3ee4010SYOSHIFUJI Hideaki extern const struct in6_addr in6addr_linklocal_allnodes; 30f3ee4010SYOSHIFUJI Hideaki #define IN6ADDR_LINKLOCAL_ALLNODES_INIT \ 31f3ee4010SYOSHIFUJI Hideaki { { { 0xff,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } } 32f3ee4010SYOSHIFUJI Hideaki extern const struct in6_addr in6addr_linklocal_allrouters; 33f3ee4010SYOSHIFUJI Hideaki #define IN6ADDR_LINKLOCAL_ALLROUTERS_INIT \ 34f3ee4010SYOSHIFUJI Hideaki { { { 0xff,2,0,0,0,0,0,0,0,0,0,0,0,0,0,2 } } } 352c5e8933SHannes Frederic Sowa extern const struct in6_addr in6addr_interfacelocal_allnodes; 362c5e8933SHannes Frederic Sowa #define IN6ADDR_INTERFACELOCAL_ALLNODES_INIT \ 372c5e8933SHannes Frederic Sowa { { { 0xff,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } } 382c5e8933SHannes Frederic Sowa extern const struct in6_addr in6addr_interfacelocal_allrouters; 392c5e8933SHannes Frederic Sowa #define IN6ADDR_INTERFACELOCAL_ALLROUTERS_INIT \ 402c5e8933SHannes Frederic Sowa { { { 0xff,1,0,0,0,0,0,0,0,0,0,0,0,0,0,2 } } } 412c5e8933SHannes Frederic Sowa extern const struct in6_addr in6addr_sitelocal_allrouters; 422c5e8933SHannes Frederic Sowa #define IN6ADDR_SITELOCAL_ALLROUTERS_INIT \ 432c5e8933SHannes Frederic Sowa { { { 0xff,5,0,0,0,0,0,0,0,0,0,0,0,0,0,2 } } } 44f3ee4010SYOSHIFUJI Hideaki #endif 45