Blame view

include/linux/in6.h 1.85 KB
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  /*
   *	Types and definitions for AF_INET6 
   *	Linux INET6 implementation 
   *
   *	Authors:
   *	Pedro Roque		<roque@di.fc.ul.pt>	
   *
   *	Sources:
   *	IPv6 Program Interfaces for BSD Systems
   *      <draft-ietf-ipngwg-bsd-api-05.txt>
   *
   *	Advanced Sockets API for IPv6
   *	<draft-stevens-advanced-api-00.txt>
   *
   *	This program is free software; you can redistribute it and/or
   *      modify it under the terms of the GNU General Public License
   *      as published by the Free Software Foundation; either version
   *      2 of the License, or (at your option) any later version.
   */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
20
21
  #ifndef _LINUX_IN6_H
  #define _LINUX_IN6_H
607ca46e9   David Howells   UAPI: (Scripted) ...
22
  #include <uapi/linux/in6.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
23

25d46f43a   YOSHIFUJI Hideaki / 吉藤英明   ipv6: Move commen...
24
25
26
27
  /* IPv6 Wildcard Address (::) and Loopback Address (::1) defined in RFC2553
   * NOTE: Be aware the IN6ADDR_* constants and in6addr_* externals are defined
   * in network byte order, not in host byte order as are the IPv4 equivalents
   */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
28
29
  extern const struct in6_addr in6addr_any;
  #define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } }
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
30
31
  extern const struct in6_addr in6addr_loopback;
  #define IN6ADDR_LOOPBACK_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } }
f3ee4010e   YOSHIFUJI Hideaki   [IPV6]: Define co...
32
33
34
35
36
37
  extern const struct in6_addr in6addr_linklocal_allnodes;
  #define IN6ADDR_LINKLOCAL_ALLNODES_INIT	\
  		{ { { 0xff,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } }
  extern const struct in6_addr in6addr_linklocal_allrouters;
  #define IN6ADDR_LINKLOCAL_ALLROUTERS_INIT \
  		{ { { 0xff,2,0,0,0,0,0,0,0,0,0,0,0,0,0,2 } } }
2c5e89338   Hannes Frederic Sowa   ipv6: by default ...
38
39
40
41
42
43
44
45
46
  extern const struct in6_addr in6addr_interfacelocal_allnodes;
  #define IN6ADDR_INTERFACELOCAL_ALLNODES_INIT \
  		{ { { 0xff,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } }
  extern const struct in6_addr in6addr_interfacelocal_allrouters;
  #define IN6ADDR_INTERFACELOCAL_ALLROUTERS_INIT \
  		{ { { 0xff,1,0,0,0,0,0,0,0,0,0,0,0,0,0,2 } } }
  extern const struct in6_addr in6addr_sitelocal_allrouters;
  #define IN6ADDR_SITELOCAL_ALLROUTERS_INIT \
  		{ { { 0xff,5,0,0,0,0,0,0,0,0,0,0,0,0,0,2 } } }
f3ee4010e   YOSHIFUJI Hideaki   [IPV6]: Define co...
47
  #endif