Watt-32 tcp/ip  2.2 dev-rel.10
teredo64.c
1 /*
2  * IPv6 tunneling over UDP/IPv4
3  *
4  * Refs:
5  * http://www.ietf.org/internet-drafts/draft-huitema-v6ops-teredo-00.txt
6  * http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/winxppro/maintain/Teredo.asp
7  */
8 
9 #include "socket.h"
10 #include "teredo64.h"
11 
12 /* 3FFE:831F::/32 */
13 const struct in6_addr in6addr_teredo_pfx = {{ 0x3F, 0xFE, 0x83, 0x1F,
14  0,0,0,0, 0,0,0,0,
15  0,0,0,0 }};
16 
17 /*
18  * make_ipv6 teredo addr from
19  * dest_host, port, is_cone_nat:
20  *
21  * prefix + ip4_host + (0x8000 * is_cone_nat) + (port ^0xFFFF)
22  */
23 
Definition: in.h:153