Changeset 331 for EcnlProtoTool/trunk/asp3_dcre/tinet/net/if_loop.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_loop.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 * … … 91 91 #include <net/if_loop.h> 92 92 #include <net/net.h> 93 #include <net/net_endian.h> 93 94 #include <net/net_buf.h> 94 95 #include <net/net_count.h> … … 98 99 #include <netinet/ip.h> 99 100 #include <netinet/ip_var.h> 100 #include <netinet/ip6.h>101 #include <netinet6/ip6_var.h>102 101 #include <netinet/tcp.h> 103 102 #include <netinet/udp.h> 104 103 105 104 #include <net/if_var.h> 106 #include <net/if6_var.h>107 105 108 106 #ifdef SUPPORT_LOOP … … 124 122 /* ネットワークインタフェース構造体 */ 125 123 126 #if defined(SUPPORT_INET4) 124 #if defined(_IP6_CFG) 125 126 static T_IFNET loop_ifnet = { 127 NULL, /* ネットワークインタフェースのソフトウェア情報 */ 128 {}, /* IPv6 アドレス情報 */ 129 {}, /* マルチキャスト IPv6 アドレス */ 130 }; 131 132 #elif defined(_IP4_CFG) /* of #if defined(_IP6_CFG) */ 127 133 128 134 static T_IFNET loop_ifnet = { … … 134 140 }; 135 141 136 #endif /* of #if defined(SUPPORT_INET4) */ 137 138 #if defined(SUPPORT_INET6) 139 140 static T_IFNET loop_ifnet = { 141 NULL, /* ネットワークインタフェースのソフトウェア情報 */ 142 {}, /* IPv6 アドレス情報 */ 143 {}, /* マルチキャスト IPv6 アドレス */ 144 }; 145 146 #endif /* of #if defined(SUPPORT_INET6) */ 142 #endif /* of #if defined(_IP6_CFG) */ 147 143 148 144 /* … … 213 209 NET_COUNT_LOOP(net_count_loop.in_packets, 1); 214 210 215 #if defined( SUPPORT_INET4)211 #if defined(_IP4_CFG) 216 212 217 213 /* IPv4 入力関数を呼び出す */ … … 219 215 ip_input(input); 220 216 221 #endif /* of #if defined( SUPPORT_INET4) */222 223 #if defined( SUPPORT_INET6)217 #endif /* of #if defined(_IP4_CFG) */ 218 219 #if defined(_IP6_CFG) 224 220 225 221 /* IPv6 入力関数を呼び出す */ … … 227 223 ip6_input(input); 228 224 229 #endif /* of #if defined( SUPPORT_INET6) */225 #endif /* of #if defined(_IP6_CFG) */ 230 226 231 227 }
Note:
See TracChangeset
for help on using the changeset viewer.