Changeset 331 for EcnlProtoTool/trunk/asp3_dcre/tinet/net/if.c
- Timestamp:
- Jan 21, 2018, 12:10:09 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/tinet/net/if.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 * … … 86 86 87 87 #include <net/if.h> 88 #include <net/if_ppp.h> 89 #include <net/if_loop.h> 88 90 #include <net/ethernet.h> 89 91 #include <net/if_arp.h> 90 92 #include <net/net.h> 93 #include <net/net_endian.h> 91 94 #include <net/net_timer.h> 95 96 #include <netinet/in.h> 97 #include <netinet/in_var.h> 92 98 93 99 #include <netinet6/in6.h> 94 100 #include <netinet6/in6_var.h> 95 101 96 #include <net/if 6_var.h>102 #include <net/if_var.h> 97 103 98 104 #ifdef SUPPORT_ETHER … … 133 139 } 134 140 135 #ifdef SUPPORT_INET6 141 #endif /* of #ifdef SUPPORT_ETHER */ 142 143 #ifdef _IP6_CFG 136 144 137 145 /* … … 142 150 if_addmulti (T_IFNET *ifp, void *maddr, uint8_t type) 143 151 { 152 #if MAX_IF_MADDR_CNT > 0 153 144 154 T_IF_ADDR llmaddr; 145 155 ER error = E_OK; … … 152 162 153 163 /* IPv6 マルチキャストアドレスを登録する。*/ 154 ifp->in _maddrs[ix] = *(T_IN6_ADDR*)maddr;164 ifp->in6_maddrs[ix] = *(T_IN6_ADDR*)maddr; 155 165 156 166 /* インタフェースのアドレスに変換し、登録する。*/ … … 162 172 163 173 return IF_ADDMULTI(ifp->ic); 174 175 #else /* of #if MAX_IF_MADDR_CNT > 0 */ 176 177 return E_OK; 178 179 #endif /* of #if MAX_IF_MADDR_CNT > 0 */ 164 180 } 165 181 166 #endif /* of #ifdef SUPPORT_INET6 */ 167 168 #endif /* of #ifdef SUPPORT_ETHER */ 182 #endif /* of #ifdef _IP6_CFG */
Note:
See TracChangeset
for help on using the changeset viewer.