[388] | 1 | /*
|
---|
| 2 | * TINET (TCP/IP Protocol Stack)
|
---|
| 3 | *
|
---|
| 4 | * Copyright (C) 2001-2017 by Dep. of Computer Science and Engineering
|
---|
| 5 | * Tomakomai National College of Technology, JAPAN
|
---|
| 6 | *
|
---|
| 7 | * ä¸è¨èä½æ¨©è
|
---|
| 8 | ã¯ï¼ä»¥ä¸ã® (1)ï½(4) ã®æ¡ä»¶ãï¼Free Software Foundation
|
---|
| 9 | * ã«ãã£ã¦å
|
---|
| 10 | ¬è¡¨ããã¦ãã GNU General Public License ã® Version 2 ã«è¨
|
---|
| 11 | * è¿°ããã¦ããæ¡ä»¶ãæºããå ´åã«éãï¼æ¬ã½ããã¦ã§ã¢ï¼æ¬ã½ããã¦ã§ã¢
|
---|
| 12 | * ãæ¹å¤ãããã®ãå«ãï¼ä»¥ä¸åãï¼ã使ç¨ã»è¤è£½ã»æ¹å¤ã»åé
|
---|
| 13 | å¸ï¼ä»¥ä¸ï¼
|
---|
| 14 | * å©ç¨ã¨å¼ã¶ï¼ãããã¨ãç¡åã§è¨±è«¾ããï¼
|
---|
| 15 | * (1) æ¬ã½ããã¦ã§ã¢ãã½ã¼ã¹ã³ã¼ãã®å½¢ã§å©ç¨ããå ´åã«ã¯ï¼ä¸è¨ã®èä½
|
---|
| 16 | * 権表示ï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨ã®ç¡ä¿è¨¼è¦å®ãï¼ãã®ã¾ã¾ã®å½¢ã§ã½ã¼
|
---|
| 17 | * ã¹ã³ã¼ãä¸ã«å«ã¾ãã¦ãããã¨ï¼
|
---|
| 18 | * (2) æ¬ã½ããã¦ã§ã¢ãï¼ã©ã¤ãã©ãªå½¢å¼ãªã©ï¼ä»ã®ã½ããã¦ã§ã¢éçºã«ä½¿
|
---|
| 19 | * ç¨ã§ããå½¢ã§åé
|
---|
| 20 | å¸ããå ´åã«ã¯ï¼åé
|
---|
| 21 | å¸ã«ä¼´ãããã¥ã¡ã³ãï¼å©ç¨
|
---|
| 22 | * è
|
---|
| 23 | ããã¥ã¢ã«ãªã©ï¼ã«ï¼ä¸è¨ã®èä½æ¨©è¡¨ç¤ºï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨
|
---|
| 24 | * ã®ç¡ä¿è¨¼è¦å®ãæ²è¼ãããã¨ï¼
|
---|
| 25 | * (3) æ¬ã½ããã¦ã§ã¢ãï¼æ©å¨ã«çµã¿è¾¼ããªã©ï¼ä»ã®ã½ããã¦ã§ã¢éçºã«ä½¿
|
---|
| 26 | * ç¨ã§ããªãå½¢ã§åé
|
---|
| 27 | å¸ããå ´åã«ã¯ï¼æ¬¡ã®æ¡ä»¶ãæºãããã¨ï¼
|
---|
| 28 | * (a) åé
|
---|
| 29 | å¸ã«ä¼´ãããã¥ã¡ã³ãï¼å©ç¨è
|
---|
| 30 | ããã¥ã¢ã«ãªã©ï¼ã«ï¼ä¸è¨ã®è
|
---|
| 31 | * ä½æ¨©è¡¨ç¤ºï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨ã®ç¡ä¿è¨¼è¦å®ãæ²è¼ãããã¨ï¼
|
---|
| 32 | * (4) æ¬ã½ããã¦ã§ã¢ã®å©ç¨ã«ããç´æ¥çã¾ãã¯éæ¥çã«çãããããªãæ
|
---|
| 33 | * 害ãããï¼ä¸è¨èä½æ¨©è
|
---|
| 34 | ããã³TOPPERSããã¸ã§ã¯ããå
|
---|
| 35 | 責ãããã¨ï¼
|
---|
| 36 | *
|
---|
| 37 | * æ¬ã½ããã¦ã§ã¢ã¯ï¼ç¡ä¿è¨¼ã§æä¾ããã¦ãããã®ã§ããï¼ä¸è¨èä½æ¨©è
|
---|
| 38 | ã
|
---|
| 39 | * ãã³TOPPERSããã¸ã§ã¯ãã¯ï¼æ¬ã½ããã¦ã§ã¢ã«é¢ãã¦ï¼ãã®é©ç¨å¯è½æ§ã
|
---|
| 40 | * å«ãã¦ï¼ãããªãä¿è¨¼ãè¡ããªãï¼ã¾ãï¼æ¬ã½ããã¦ã§ã¢ã®å©ç¨ã«ããç´
|
---|
| 41 | * æ¥çã¾ãã¯éæ¥çã«çãããããªãæ害ã«é¢ãã¦ãï¼ãã®è²¬ä»»ãè² ããªãï¼
|
---|
| 42 | *
|
---|
| 43 | * @(#) $Id: ip6_var.h 388 2019-05-22 11:25:18Z coas-nagasima $
|
---|
| 44 | */
|
---|
| 45 |
|
---|
| 46 | /* $FreeBSD: src/sys/netinet6/ip6_var.h,v 1.10 2002/10/16 01:54:45 sam Exp $ */
|
---|
| 47 | /* $KAME: ip6_var.h,v 1.62 2001/05/03 14:51:48 itojun Exp $ */
|
---|
| 48 |
|
---|
| 49 | /*
|
---|
| 50 | * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
---|
| 51 | * All rights reserved.
|
---|
| 52 | *
|
---|
| 53 | * Redistribution and use in source and binary forms, with or without
|
---|
| 54 | * modification, are permitted provided that the following conditions
|
---|
| 55 | * are met:
|
---|
| 56 | * 1. Redistributions of source code must retain the above copyright
|
---|
| 57 | * notice, this list of conditions and the following disclaimer.
|
---|
| 58 | * 2. Redistributions in binary form must reproduce the above copyright
|
---|
| 59 | * notice, this list of conditions and the following disclaimer in the
|
---|
| 60 | * documentation and/or other materials provided with the distribution.
|
---|
| 61 | * 3. Neither the name of the project nor the names of its contributors
|
---|
| 62 | * may be used to endorse or promote products derived from this software
|
---|
| 63 | * without specific prior written permission.
|
---|
| 64 | *
|
---|
| 65 | * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
|
---|
| 66 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
---|
| 67 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
---|
| 68 | * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
|
---|
| 69 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
---|
| 70 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
---|
| 71 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
---|
| 72 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
---|
| 73 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
---|
| 74 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
---|
| 75 | * SUCH DAMAGE.
|
---|
| 76 | */
|
---|
| 77 |
|
---|
| 78 | /*
|
---|
| 79 | * Copyright (c) 1982, 1986, 1993
|
---|
| 80 | * The Regents of the University of California. All rights reserved.
|
---|
| 81 | *
|
---|
| 82 | * Redistribution and use in source and binary forms, with or without
|
---|
| 83 | * modification, are permitted provided that the following conditions
|
---|
| 84 | * are met:
|
---|
| 85 | * 1. Redistributions of source code must retain the above copyright
|
---|
| 86 | * notice, this list of conditions and the following disclaimer.
|
---|
| 87 | * 2. Redistributions in binary form must reproduce the above copyright
|
---|
| 88 | * notice, this list of conditions and the following disclaimer in the
|
---|
| 89 | * documentation and/or other materials provided with the distribution.
|
---|
| 90 | * 3. All advertising materials mentioning features or use of this software
|
---|
| 91 | * must display the following acknowledgement:
|
---|
| 92 | * This product includes software developed by the University of
|
---|
| 93 | * California, Berkeley and its contributors.
|
---|
| 94 | * 4. Neither the name of the University nor the names of its contributors
|
---|
| 95 | * may be used to endorse or promote products derived from this software
|
---|
| 96 | * without specific prior written permission.
|
---|
| 97 | *
|
---|
| 98 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
---|
| 99 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
---|
| 100 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
---|
| 101 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
---|
| 102 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
---|
| 103 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
---|
| 104 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
---|
| 105 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
---|
| 106 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
---|
| 107 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
---|
| 108 | * SUCH DAMAGE.
|
---|
| 109 | *
|
---|
| 110 | * @(#)ip_var.h 8.1 (Berkeley) 6/10/93
|
---|
| 111 | */
|
---|
| 112 |
|
---|
| 113 | #ifndef _IP6_VAR_H_
|
---|
| 114 | #define _IP6_VAR_H_
|
---|
| 115 |
|
---|
| 116 | /*
|
---|
| 117 | * IPv6 ãããã»ãã¤ãã¼ãã¢ã¯ã»ã¹ãã¯ã
|
---|
| 118 | */
|
---|
| 119 |
|
---|
| 120 | #define IF_IP6_HDR_SIZE (IF_HDR_SIZE + IP6_HDR_SIZE)
|
---|
| 121 |
|
---|
| 122 | #define GET_IP6_HDR(nbuf) ((T_IP6_HDR*)((nbuf)->buf + IF_HDR_SIZE))
|
---|
| 123 | #define GET_IP6_SDU(nbuf) ((uint8_t*)((nbuf)->buf) + GET_IF_IP6_HDR_SIZE(nbuf))
|
---|
| 124 | #define GET_IP6_NEXT_HDR(nbuf) ((uint8_t*)((nbuf)->buf) + IF_IP6_HDR_SIZE)
|
---|
| 125 |
|
---|
| 126 | #define GET_IP6_HDR_SIZE(nbuf) (get_ip6_hdr_size(nbuf))
|
---|
| 127 | #define GET_IP6_SDU_SIZE(nbuf) (ntohs(GET_IP6_HDR(nbuf)->plen))
|
---|
| 128 | #define GET_IF_IP6_HDR_SIZE(nbuf) (IF_HDR_SIZE + (GET_IP6_HDR_SIZE(nbuf)))
|
---|
| 129 |
|
---|
| 130 | #define SET_IP6_CF(nbuf,cf) (GET_IP6_HDR(nbuf)->vcf=htonl(IP6_MAKE_VCF(IP6_VCF_V(ntohl(GET_IP6_HDR(nbuf)->vcf)),cf)))
|
---|
| 131 | #define SET_IP6_SDU_SIZE(nbuf,slen) (GET_IP6_HDR(nbuf)->plen=htons(slen))
|
---|
| 132 |
|
---|
| 133 | /* ip6_output ã®ãã©ã° */
|
---|
| 134 |
|
---|
| 135 | #define IPV6_OUT_FLG_DAD 0x0100 /* éè¤ã¢ãã¬ã¹æ¤åº */
|
---|
| 136 | #define IPV6_OUT_FLG_HOP_LIMIT 0x0200 /* ããããªãããæå® */
|
---|
| 137 |
|
---|
| 138 | /* ããããªããããã©ã°ãä»ãæãããããªãããå¤ãæä½ãããã¯ã */
|
---|
| 139 |
|
---|
| 140 | #define IPV6_OUT_GET_HOP_LIMIT(f) ((f)&0x00ff)
|
---|
| 141 | #define IPV6_OUT_SET_HOP_LIMIT(f,l) ((f)|(l))
|
---|
| 142 |
|
---|
| 143 | /*
|
---|
| 144 | * ip6_unknown_opt -- æªç¥ã®ãªãã·ã§ã³ã®å¦ç
|
---|
| 145 | *
|
---|
| 146 | * æ»ãå¤:
|
---|
| 147 | *
|
---|
| 148 | * 0 ä»¥ä¸ æ£å¸¸ããªãã·ã§ã³é·ã
|
---|
| 149 | * IP6_OPT_RET_ERR (-1) ã¨ã©ã¼ãå¼åºå´ã§ãããã¯ã¼ã¯ãããã¡ãéæ¾ããã
|
---|
| 150 | * IP6_OPT_RET_REL (-2) ã¨ã©ã¼ããããã¯ã¼ã¯ãããã¡ã¯éæ¾ããã¦ããã
|
---|
| 151 | */
|
---|
| 152 |
|
---|
| 153 | #define IP6_OPT_RET_ERR (-1)
|
---|
| 154 | #define IP6_OPT_RET_REL (-2)
|
---|
| 155 |
|
---|
| 156 | /*
|
---|
| 157 | * IPv6 ã® MMTU ãµã¤ãºã®ãããã¯ã¼ã¯ãããã¡
|
---|
| 158 | */
|
---|
| 159 |
|
---|
| 160 | #if defined(IF_HDR_SIZE)
|
---|
| 161 |
|
---|
| 162 | typedef struct t_net_buf_ipv6_mmtu {
|
---|
| 163 | uint16_t len; /* ãã¼ã¿ã®é·ã */
|
---|
| 164 | uint8_t idix; /* mpfid ã®ã¤ã³ããã¯ã¹ */
|
---|
| 165 | uint8_t unit; /* ã¤ã³ã¿ãã§ã¼ã¹çªå· */
|
---|
| 166 | #ifdef IF_ETHER_NIC_NET_BUF_ALIGN
|
---|
| 167 | uint8_t nalign[IF_ETHER_NIC_NET_BUF_ALIGN];
|
---|
| 168 | #endif
|
---|
| 169 | #if CPU_NET_ALIGN == 4 && IF_HDR_ALIGN != 4
|
---|
| 170 | uint8_t halign[4 - IF_HDR_ALIGN];
|
---|
| 171 | #endif
|
---|
| 172 | uint8_t buf[IF_HDR_SIZE + IPV6_MMTU];
|
---|
| 173 | /* ãããã¡æ¬ä½ */
|
---|
| 174 | } T_NET_BUF_IPV6_MMTU;
|
---|
| 175 |
|
---|
| 176 | #endif /* of #if defined(IF_HDR_SIZE) */
|
---|
| 177 |
|
---|
| 178 | /*
|
---|
| 179 | * 65536 ãªã¯ããããµã¤ãºã®ãããã¯ã¼ã¯ãããã¡
|
---|
| 180 | */
|
---|
| 181 |
|
---|
| 182 | typedef struct t_net_buf6_65536 {
|
---|
| 183 | uint16_t len; /* ãã¼ã¿ã®é·ã */
|
---|
| 184 | uint8_t idix; /* mpfid ã®ã¤ã³ããã¯ã¹ */
|
---|
| 185 | uint8_t flags; /* ãã©ã° */
|
---|
| 186 | #ifdef IF_ETHER_NIC_NET_BUF_ALIGN
|
---|
| 187 | uint8_t nalign[IF_ETHER_NIC_NET_BUF_ALIGN];
|
---|
| 188 | #endif
|
---|
| 189 | #if CPU_NET_ALIGN == 4 && IF_HDR_ALIGN != 4
|
---|
| 190 | uint8_t halign[4 - IF_HDR_ALIGN];
|
---|
| 191 | #endif
|
---|
| 192 | uint8_t buf[IF_IP6_HDR_SIZE + 65536];
|
---|
| 193 | /* ãããã¡æ¬ä½ */
|
---|
| 194 | #if defined(IF_PDU_HDR_PADDING)
|
---|
| 195 | uint8_t padding[IF_PDU_HDR_PADDING];
|
---|
| 196 | #endif /* ãããã®ä½å */
|
---|
| 197 | } T_NET_BUF6_65536;
|
---|
| 198 |
|
---|
| 199 | #ifdef IP6_CFG_FRAGMENT
|
---|
| 200 |
|
---|
| 201 | /*
|
---|
| 202 | * åæ§æãã¥ã¼ç¨ IPv6 ãããã®å®ç¾©
|
---|
| 203 | */
|
---|
| 204 |
|
---|
| 205 | typedef struct t_qip6_hdr {
|
---|
| 206 | uint32_t vcf; /* Version: 4 bit */
|
---|
| 207 | /* Traffic Class: 8 bit */
|
---|
| 208 | /* Flow Label: 20 bit */
|
---|
| 209 | uint16_t plen; /* Payload Length */
|
---|
| 210 | uint8_t next; /* Next Header */
|
---|
| 211 | uint8_t hlim; /* Hop Limit */
|
---|
| 212 | T_IN6_ADDR src; /* Source Address */
|
---|
| 213 | T_NET_BUF *next_frag; /* 次㮠IPv6 ãã©ã°ã¡ã³ã */
|
---|
| 214 | uint16_t foff; /* æçãããã®ãªãã»ãã */
|
---|
| 215 | uint16_t flen; /* æçé· */
|
---|
| 216 | uint16_t ftim; /* åæ§æã¿ã¤ã ã¢ã¦ã */
|
---|
| 217 | uint16_t dummy1;
|
---|
| 218 | uint8_t dummy2[sizeof(T_IN6_ADDR) - (sizeof(T_NET_BUF*) + sizeof(uint16_t) * 4)];
|
---|
| 219 | } __attribute__((packed, aligned(2)))T_QIP6_HDR;
|
---|
| 220 |
|
---|
| 221 | #define QIP6_HDR_SIZE (sizeof(T_QIP6_HDR))
|
---|
| 222 | #define IF_QIP6_HDR_SIZE (IF_HDR_SIZE + QIP6_HDR_SIZE)
|
---|
| 223 |
|
---|
| 224 | #define GET_QIP6_HDR(nbuf) ((T_QIP6_HDR*)((nbuf)->buf + IF_HDR_SIZE))
|
---|
| 225 | #define GET_QIP6_SDU(nbuf) ((uint8_t*)(nbuf)->buf + GET_IF_QIP6_HDR_SIZE(nbuf))
|
---|
| 226 |
|
---|
| 227 | #define GET_QIP6_HDR_SIZE(iph) ((uint8_t)IP6_VHL_HL((iph)->vhl) << 2)
|
---|
| 228 | #define GET_IF_QIP6_HDR_SIZE(nbuf) (IF_HDR_SIZE + (GET_QIP6_HDR_SIZE(GET_QIP6_HDR(nbuf))))
|
---|
| 229 |
|
---|
| 230 | /*
|
---|
| 231 | * ãã¼ã¿ã°ã©ã åæ§æç¨ãããã¯ã¼ã¯ãããã¡
|
---|
| 232 | */
|
---|
| 233 |
|
---|
| 234 | typedef struct t_net_buf6_reassm {
|
---|
| 235 | uint16_t len; /* ãã¼ã¿ã®é·ã */
|
---|
| 236 | uint8_t idix; /* mpfid ã®ã¤ã³ããã¯ã¹ */
|
---|
| 237 | uint8_t flags; /* ãã©ã° */
|
---|
| 238 | #ifdef IF_ETHER_NIC_NET_BUF_ALIGN
|
---|
| 239 | uint8_t nalign[IF_ETHER_NIC_NET_BUF_ALIGN];
|
---|
| 240 | #endif
|
---|
| 241 | #if CPU_NET_ALIGN == 4 && IF_HDR_ALIGN != 4
|
---|
| 242 | uint8_t align[4 - IF_HDR_ALIGN];
|
---|
| 243 | #endif
|
---|
| 244 | uint8_t buf[IP6_CFG_FRAG_REASSM_SIZE];
|
---|
| 245 | /* ãããã¡æ¬ä½ */
|
---|
| 246 | } T_NET_BUF6_REASSM;
|
---|
| 247 |
|
---|
| 248 | #endif /* of #ifdef IP6_CFG_FRAGMENT */
|
---|
| 249 |
|
---|
| 250 | /*
|
---|
| 251 | * TCP ã®åæ§æãã¥ã¼ã«ããã IPv6 ãããã®å®ç¾©
|
---|
| 252 | */
|
---|
| 253 |
|
---|
| 254 | typedef struct t_ip6_tcp_q_hdr {
|
---|
| 255 | uint8_t vc; /* Version: 4 bit */
|
---|
| 256 | uint8_t cf; /* Traffic Class: 8 bit */
|
---|
| 257 | /* Flow Label: 4 bit (20 bit) */
|
---|
| 258 | uint16_t thoff; /* TCP ãããã®ãªãã»ãã */
|
---|
| 259 | uint16_t plen; /* Payload Length */
|
---|
| 260 | uint8_t next; /* Next Header */
|
---|
| 261 | uint8_t hlim; /* Hop Limit */
|
---|
| 262 | T_IN6_ADDR src; /* Source Address */
|
---|
| 263 | T_IN6_ADDR dst; /* Destination Address */
|
---|
| 264 | } __attribute__((packed, aligned(2))) T_IP6_TCP_Q_HDR;
|
---|
| 265 |
|
---|
| 266 | #ifdef SUPPORT_MIB
|
---|
| 267 |
|
---|
| 268 | /*
|
---|
| 269 | * SNMP 㮠管çæ
|
---|
| 270 | å ±ãã¼ã¹ (MIB)
|
---|
| 271 | */
|
---|
| 272 |
|
---|
| 273 | typedef struct t_in6_ifstat {
|
---|
| 274 | uint32_t ipv6IfStatsInReceives;
|
---|
| 275 | uint32_t ipv6IfStatsInHdrErrors;
|
---|
| 276 | /* uint32_t ipv6IfStatsInTooBigErrors;*/
|
---|
| 277 | /* uint32_t ipv6IfStatsInNoRoutes;*/
|
---|
| 278 | uint32_t ipv6IfStatsInAddrErrors;
|
---|
| 279 | uint32_t ipv6IfStatsInUnknownProtos;
|
---|
| 280 | uint32_t ipv6IfStatsInTruncatedPkts;
|
---|
| 281 | /* uint32_t ipv6IfStatsInDiscards;*/
|
---|
| 282 | /* uint32_t ipv6IfStatsInDelivers;*/
|
---|
| 283 | /* uint32_t ipv6IfStatsOutForwDatagrams;*/
|
---|
| 284 | uint32_t ipv6IfStatsOutRequests;
|
---|
| 285 | uint32_t ipv6IfStatsOutDiscards;
|
---|
| 286 | uint32_t ipv6IfStatsOutFragOKs;
|
---|
| 287 | uint32_t ipv6IfStatsOutFragFails;
|
---|
| 288 | uint32_t ipv6IfStatsOutFragCreates;
|
---|
| 289 | uint32_t ipv6IfStatsReasmReqds;
|
---|
| 290 | uint32_t ipv6IfStatsReasmOKs;
|
---|
| 291 | uint32_t ipv6IfStatsReasmFails;
|
---|
| 292 | uint32_t ipv6IfStatsInMcastPkts;
|
---|
| 293 | uint32_t ipv6IfStatsOutMcastPkts;
|
---|
| 294 | } T_IN6_IFSTAT;
|
---|
| 295 |
|
---|
| 296 | extern T_IN6_IFSTAT in6_ifstat;
|
---|
| 297 |
|
---|
| 298 | #endif /* of #ifdef SUPPORT_MIB */
|
---|
| 299 |
|
---|
| 300 | /*
|
---|
| 301 | * å¤æ°
|
---|
| 302 | */
|
---|
| 303 |
|
---|
| 304 | extern uint8_t ip6_defhlim;
|
---|
| 305 |
|
---|
| 306 | /*
|
---|
| 307 | * é¢æ°
|
---|
| 308 | */
|
---|
| 309 |
|
---|
| 310 | extern ER ip6_output (T_NET_BUF *output, uint16_t flags, TMO tmout);
|
---|
| 311 | extern void ip6_init (void);
|
---|
| 312 | extern uint8_t *ip6_get_prev_hdr (T_NET_BUF *nbuf, uint_t off);
|
---|
| 313 | extern uint_t get_ip6_hdr_size (T_NET_BUF *nbuf);
|
---|
| 314 | extern ER_UINT ip6_nexthdr (T_NET_BUF *nbuf, uint_t off, uint_t proto, uint_t *nextp);
|
---|
| 315 | extern ER_UINT ip6_lasthdr (T_NET_BUF *nbuf, uint_t off, uint_t proto, uint_t *nextp);
|
---|
| 316 | extern ER_UINT ip6_unknown_opt (T_NET_BUF *input, uint8_t *opt);
|
---|
| 317 | extern uint_t dest6_input (T_NET_BUF **inputp, uint_t *offp, uint_t *nextp);
|
---|
| 318 | extern uint_t route6_input (T_NET_BUF **inputp, uint_t *offp, uint_t *nextp);
|
---|
| 319 | extern uint_t frag6_input (T_NET_BUF **inputp, uint_t *offp, uint_t *nextp);
|
---|
| 320 | extern void frag6_timer (void);
|
---|
| 321 | extern ER ip6_remove_exthdrs (T_NET_BUF *nbuf);
|
---|
| 322 |
|
---|
| 323 | #endif /* of #ifndef _IP6_VAR_H_ */
|
---|