Changeset 331 for EcnlProtoTool/trunk/asp3_dcre/tinet/netinet6/ip6_output.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_output.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 * … … 125 125 #include <net/ppp_ipcp.h> 126 126 #include <net/net.h> 127 #include <net/net_endian.h> 127 128 #include <net/net_buf.h> 128 129 #include <net/net_count.h> 129 130 130 131 #include <netinet/in.h> 131 #include <netinet6/in6.h> 132 #include <netinet6/in6_var.h> 132 #include <netinet/in_var.h> 133 #include <netinet/ip.h> 134 #include <netinet/ip_var.h> 135 #include <netinet/ip_icmp.h> 136 133 137 #include <netinet6/nd6.h> 134 #include <netinet/ip6.h> 135 #include <netinet6/ip6_var.h> 136 #include <netinet/icmp6.h> 137 138 #include <net/if6_var.h> 139 140 #ifdef SUPPORT_INET6 138 139 #include <net/if_var.h> 140 141 #ifdef _IP6_CFG 141 142 142 143 /* … … 165 166 ip6_output (T_NET_BUF *output, uint16_t flags, TMO tmout) 166 167 { 167 T_IP6_HDR *ip6h;168 T_IN6_ADDR *gw;169 T_IFNET *ifp = IF_GET_IFNET();170 ER error = E_OK;168 T_IP6_HDR *ip6h; 169 const T_IN6_ADDR *gw; 170 T_IFNET *ifp = IF_GET_IFNET(); 171 ER error = E_OK; 171 172 172 173 #ifdef IP6_CFG_FRAGMENT … … 185 186 186 187 NET_COUNT_IP6(net_count_ip6[NC_IP6_OUT_OCTETS], 187 GET_IP _HDR_SIZE(ip6h) + GET_IP_SDU_SIZE(ip6h));188 GET_IP6_HDR_SIZE(output) + GET_IP6_SDU_SIZE(output)); 188 189 NET_COUNT_IP6(net_count_ip6[NC_IP6_OUT_PACKETS], 1); 189 190 NET_COUNT_MIB(in6_ifstat.ipv6IfStatsOutRequests, 1); … … 371 372 } 372 373 373 #endif /* of #ifdef SUPPORT_INET6*/374 #endif /* of #ifdef _IP6_CFG */
Note:
See TracChangeset
for help on using the changeset viewer.