Changeset 331 for EcnlProtoTool/trunk/asp3_dcre/tinet/netinet6/ip6_input.c
- Timestamp:
- Jan 21, 2018, 12:10:09 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/tinet/netinet6/ip6_input.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 * … … 105 105 #include <kernel.h> 106 106 #include <sil.h> 107 #include <t_syslog.h> 108 #include "tinet_cfg.h" 107 109 108 110 #endif /* of #ifdef TARGET_KERNEL_ASP */ … … 112 114 #include <s_services.h> 113 115 #include <t_services.h> 116 #include "tinet_id.h" 114 117 115 118 #endif /* of #ifdef TARGET_KERNEL_JSP */ … … 124 127 #include <net/ppp_ipcp.h> 125 128 #include <net/net.h> 129 #include <net/net_endian.h> 126 130 #include <net/net_buf.h> 127 131 #include <net/net_count.h> 128 132 129 133 #include <netinet/in.h> 130 #include <netinet6/in6.h> 131 #include <netinet6/in6_var.h> 134 #include <netinet/in_var.h> 135 #include <netinet/ip.h> 136 #include <netinet/ip_var.h> 137 #include <netinet/ip_icmp.h> 138 #include <netinet/tcp.h> 139 #include <netinet/tcp_var.h> 140 #include <netinet/udp_var.h> 141 132 142 #include <netinet6/nd6.h> 133 #include <netinet/ip6.h>134 #include <netinet6/ip6_var.h>135 #include <netinet/icmp6.h>136 143 #include <netinet6/ah6.h> 137 144 #include <netinet6/esp6.h> 138 #include <netinet/tcp.h> 139 #include <netinet/tcp_timer.h> 140 #include <netinet/tcp_var.h> 141 #include <netinet/udp_var.h> 142 143 #include <net/if6_var.h> 144 145 #ifdef SUPPORT_INET6 145 146 #include <net/if_var.h> 147 148 #ifdef _IP6_CFG 146 149 147 150 /* … … 170 173 { icmp6_input, IPPROTO_ICMPV6 }, 171 174 172 #ifdef SUPPORT_UDP 173 174 { udp_input, IPPROTO_UDP }, 175 176 #endif /* of #ifdef SUPPORT_UDP */ 177 178 #ifdef SUPPORT_TCP 175 #if defined(SUPPORT_TCP) 179 176 180 177 { tcp_input, IPPROTO_TCP }, 181 178 182 #endif /* of #ifdef SUPPORT_TCP */ 179 #endif /* of #if defined(SUPPORT_TCP) */ 180 181 #if defined(SUPPORT_UDP) && TNUM_UDP6_CEPID > 0 182 183 { udp6_input, IPPROTO_UDP }, 184 185 #endif /* of #if defined(SUPPORT_UDP) && TNUM_UDP6_CEPID > 0 */ 183 186 184 187 }; … … 640 643 641 644 /* 開始オフセットを IP ヘッダに設定する。*/ 642 off = ((uint8_t *)GET_IP _HDR(nbuf)) - nbuf->buf;645 off = ((uint8_t *)GET_IP6_HDR(nbuf)) - nbuf->buf; 643 646 644 647 /* 最終ヘッダを探索する。*/ … … 650 653 uint_t sdu; 651 654 652 sdu = GET_IP _SDU(nbuf) - nbuf->buf;655 sdu = GET_IP6_SDU(nbuf) - nbuf->buf; 653 656 if (off > sdu) { 654 657 memmove(nbuf->buf + sdu, nbuf->buf + off, off - sdu); 655 GET_IP _HDR(nbuf)->plen -= off - sdu;658 GET_IP6_HDR(nbuf)->plen -= off - sdu; 656 659 nbuf->len -= off - sdu; 657 660 } … … 660 663 } 661 664 662 #endif /* of #ifdef SUPPORT_INET6*/665 #endif /* of #ifdef _IP6_CFG */
Note:
See TracChangeset
for help on using the changeset viewer.