Thomas Gleixner | 2874c5f | 2019-05-27 08:55:01 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Types and definitions for AF_INET6 |
| 4 | * Linux INET6 implementation |
| 5 | * |
| 6 | * Authors: |
| 7 | * Pedro Roque <roque@di.fc.ul.pt> |
| 8 | * |
| 9 | * Sources: |
| 10 | * IPv6 Program Interfaces for BSD Systems |
| 11 | * <draft-ietf-ipngwg-bsd-api-05.txt> |
| 12 | * |
| 13 | * Advanced Sockets API for IPv6 |
| 14 | * <draft-stevens-advanced-api-00.txt> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | #ifndef _LINUX_IN6_H |
| 17 | #define _LINUX_IN6_H |
| 18 | |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 19 | #include <uapi/linux/in6.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | |
YOSHIFUJI Hideaki / 吉藤英明 | 25d46f4 | 2013-01-13 16:02:06 +0000 | [diff] [blame] | 21 | /* IPv6 Wildcard Address (::) and Loopback Address (::1) defined in RFC2553 |
| 22 | * NOTE: Be aware the IN6ADDR_* constants and in6addr_* externals are defined |
| 23 | * in network byte order, not in host byte order as are the IPv4 equivalents |
| 24 | */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | extern const struct in6_addr in6addr_any; |
| 26 | #define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | extern const struct in6_addr in6addr_loopback; |
| 28 | #define IN6ADDR_LOOPBACK_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } } |
YOSHIFUJI Hideaki | f3ee401 | 2008-04-10 15:42:11 +0900 | [diff] [blame] | 29 | extern const struct in6_addr in6addr_linklocal_allnodes; |
| 30 | #define IN6ADDR_LINKLOCAL_ALLNODES_INIT \ |
| 31 | { { { 0xff,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } } |
| 32 | extern const struct in6_addr in6addr_linklocal_allrouters; |
| 33 | #define IN6ADDR_LINKLOCAL_ALLROUTERS_INIT \ |
| 34 | { { { 0xff,2,0,0,0,0,0,0,0,0,0,0,0,0,0,2 } } } |
Hannes Frederic Sowa | 2c5e893 | 2013-02-10 03:50:18 +0000 | [diff] [blame] | 35 | extern const struct in6_addr in6addr_interfacelocal_allnodes; |
| 36 | #define IN6ADDR_INTERFACELOCAL_ALLNODES_INIT \ |
| 37 | { { { 0xff,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } } |
| 38 | extern const struct in6_addr in6addr_interfacelocal_allrouters; |
| 39 | #define IN6ADDR_INTERFACELOCAL_ALLROUTERS_INIT \ |
| 40 | { { { 0xff,1,0,0,0,0,0,0,0,0,0,0,0,0,0,2 } } } |
| 41 | extern const struct in6_addr in6addr_sitelocal_allrouters; |
| 42 | #define IN6ADDR_SITELOCAL_ALLROUTERS_INIT \ |
| 43 | { { { 0xff,5,0,0,0,0,0,0,0,0,0,0,0,0,0,2 } } } |
YOSHIFUJI Hideaki | f3ee401 | 2008-04-10 15:42:11 +0900 | [diff] [blame] | 44 | #endif |