- Timestamp:
- Jan 21, 2018, 12:10:09 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/tinet/netinet6/in6_ifattach.c
r321 r331 2 2 * TINET (TCP/IP Protocol Stack) 3 3 * 4 * Copyright (C) 2001-20 09by Dep. of Computer Science and Engineering4 * Copyright (C) 2001-2017 by Dep. of Computer Science and Engineering 5 5 * Tomakomai National College of Technology, JAPAN 6 6 * … … 87 87 #include <net/if_arp.h> 88 88 #include <net/net.h> 89 #include <net/net_endian.h> 90 91 #include <netinet/in.h> 92 #include <netinet/in_var.h> 89 93 90 94 #include <netinet6/in6.h> … … 93 97 #include <netinet6/in6_ifattach.h> 94 98 95 #include <net/if 6_var.h>96 97 #ifdef SUPPORT_INET699 #include <net/if_var.h> 100 101 #ifdef _IP6_CFG 98 102 99 103 /* … … 126 130 #endif /* of #ifdef SUPPORT_ETHER */ 127 131 132 #ifdef SUPPORT_PPP 133 134 /* 135 * get_rand_ifid -- 乱数により、インタフェース識別子を設定する。 136 */ 137 138 static ER 139 get_rand_ifid (T_IFNET *ifp, T_IN6_ADDR *ifra_addr) 140 { 141 return E_OK; 142 } 143 144 #endif /* of #ifdef SUPPORT_PPP */ 145 128 146 #ifdef IP6_CFG_AUTO_LINKLOCAL 129 147 … … 149 167 150 168 /* インタフェースのアドレス情報を更新する。*/ 151 if ((error = in6_update_ifa(ifp, &ifp->in _ifaddrs[IPV6_IFADDR_IX_LINKLOCAL],169 if ((error = in6_update_ifa(ifp, &ifp->in6_ifaddrs[IPV6_IFADDR_IX_LINKLOCAL], 152 170 &addr, 64, ND6_INFINITE_LIFETIME, 153 171 ND6_INFINITE_LIFETIME, … … 171 189 #ifdef IP6_CFG_AUTO_LINKLOCAL 172 190 173 if ((ifp->in _ifaddrs[IPV6_IFADDR_IX_LINKLOCAL].flags & IN6_IFF_DEFINED) == 0)191 if ((ifp->in6_ifaddrs[IPV6_IFADDR_IX_LINKLOCAL].flags & IN6_IFF_DEFINED) == 0) 174 192 if ((error = in6_ifattach_linklocal(ifp)) != E_OK) 175 193 return error; … … 180 198 } 181 199 182 #endif /* of #ifdef SUPPORT_INET6*/200 #endif /* of #ifdef _IP6_CFG */
Note:
See TracChangeset
for help on using the changeset viewer.