⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 in6_var.h

📁 vxworks 6.x 的全部头文件
💻 H
📖 第 1 页 / 共 3 页
字号:
/* in6_var.h - IPv6 interface definitions *//* * Copyright (c) 2001-2005 Wind River Systems, Inc. * * The right to copy, distribute, modify or otherwise make use * of this software may be licensed only pursuant to the terms * of an applicable Wind River license agreement. *//*	$KAME: in6_var.h,v 1.107 2005/03/14 08:53:36 suz Exp $	*//*	$KAME: in6_var.h,v 1.103 2004/08/17 10:18:58 jinmei Exp $	*//*	$FreeBSD: src/sys/netinet6/in6_var.h,v 1.3.2.3 2002/04/28 05:40:27 suz Exp $	*//*	$KAME: in6_var.h,v 1.56 2001/03/29 05:34:31 itojun Exp $	*//* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. Neither the name of the project nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. *//* * Copyright (c) 1985, 1986, 1993 *	The Regents of the University of California.  All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software *    must display the following acknowledgement: *	This product includes software developed by the University of *	California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * *	@(#)in_var.h	8.1 (Berkeley) 6/10/93 *//*modification history--------------------01p,25jun05,dlk  Add ip6intrqJob declaration.01o,20jun05,kch  Do not guard IN6_IFF_HOME and IN6_IFF_DEREGISTERING defines                 with MIP6 build flag.01n,24may05,vvv  updated for Kame merge01m,13may05,nee  Add a IPv6 address flag IN6_IFF_SUBNETANYCAST.01o,10may05,kch  Merged from Kame v 1.107.01n,28apr05,kch  Moved addrsel_policyent structure definition here from                 in6_src.c.01m,20apr05,kch  Merged from comp_wn_ipv6_mld_interim-dev branch.01l,16mar05,nee  Add SIOCSIFINFO_IN601k,07feb05,vvv  _KERNEL cleanup01j,25jan05,vvv  fixed bitfield definitions (SPR #92171)01i,21nov03,vvv  protected in6_prflags and in6_rrenumreq structures with INET601h,20nov03,niq  Remove copyright_wrs.h file inclusion01g,05nov03,cdw  Removal of unnecessary _KERNEL guards.01f,04nov03,rlm  Ran batch header path update for header re-org.01e,03nov03,rlm  Removed wrn/coreip/ prefix from #includes for header re-org.01d,12aug03,nee  Merging from label ACCORDION_BASE6_MERGE_BASELINE in                 accordion codeline to Base601c,10jun03,vvv  include netVersion.h01b,30apr03,syy  Added #ifdef for __cplusplus01a,24jun02,ism  created new structure to hold the IPv6 MIB information*/#ifndef _NETINET6_IN6_VAR_H_#define _NETINET6_IN6_VAR_H_#ifdef __cplusplusextern "C" {#endif#include <netVersion.h>#ifdef _WRS_KERNEL#include <net/if_var.h>    /* needed for struct ifaddr */#else#include <net/if.h>        /* needed for IFNAMSIZ */#endif/* * Interface address, Internet version.  One of these structures * is allocated for each interface with an Internet address. * The ifaddr structure contains the protocol-independent part * of the structure and is assumed to be first. *//* * pltime/vltime are just for future reference (required to implements 2 * hour rule for hosts).  they should never be modified by nd6_timeout or * anywhere else. *	userland -> kernel: accept pltime/vltime *	kernel -> userland: throw up everything *	in kernel: modify preferred/expire only */struct in6_addrlifetime {	time_t ia6t_expire;	/* valid lifetime expiration time */	time_t ia6t_preferred;	/* preferred lifetime expiration time */	u_int32_t ia6t_vltime;	/* valid lifetime */	u_int32_t ia6t_pltime;	/* prefix lifetime */};struct nd_ifinfo;struct scope6_id;struct in6_ifextra {	struct in6_ifstat *in6_ifstat;	struct icmp6_ifstat *icmp6_ifstat;	struct nd_ifinfo *nd_ifinfo;	struct scope6_id *scope6_id;};#ifdef MIP6LIST_HEAD(mip6_bul_list, mip6_bul_internal); /* XXX */#endif /* MIPS6 */#ifdef _WRS_KERNELstruct	in6_ifaddr {	struct	ifaddr ia_ifa;		/* protocol-independent info */#define	ia_ifp		ia_ifa.ifa_ifp#define ia_flags	ia_ifa.ifa_flags	struct	sockaddr_in6 ia_addr;	/* interface address */	struct	sockaddr_in6 ia_net;	/* network number of interface */	struct	sockaddr_in6 ia_dstaddr; /* space for destination addr */	struct	sockaddr_in6 ia_prefixmask; /* prefix mask */	u_int32_t ia_plen;		/* prefix length */	struct	in6_ifaddr *ia_next;	/* next in6 list of IP6 addresses */	int	ia6_flags;	struct in6_addrlifetime ia6_lifetime;	time_t	ia6_createtime; /* the creation time of this address, which is				 * currently used for temporary addresses only.				 */	time_t	ia6_updatetime;	/* back pointer to the ND prefix (for autoconfigured addresses only) */	struct nd_prefix *ia6_ndpr;	/* multicast addresses joined from the kernel */	LIST_HEAD(, in6_multi_mship) ia6_memberships;#ifdef MIP6	/* binding update entreis for this address */	struct mip6_bul_list ia6_mbul_list;#endif /* MIP6 */	};#endif/* control structure to manage address selection policy */struct in6_addrpolicy {	struct sockaddr_in6 addr; /* prefix address */	struct sockaddr_in6 addrmask; /* prefix mask */	int preced;		/* precedence */	int label;		/* matching label */	u_quad_t use;		/* statistics */};/* * The followings are implementation of the policy table using a * simple tail queue. * XXX such details should be hidden. * XXX implementation using binary tree should be more efficient. * This structure definition is moved from in6_src.c for  * virtualization needs. */TAILQ_HEAD(addrsel_policyhead, addrsel_policyent); struct addrsel_policyent {	TAILQ_ENTRY(addrsel_policyent) ape_entry;	struct in6_addrpolicy ape_policy;};/* * IPv6 interface statistics, as defined in RFC2465 Ipv6IfStatsEntry (p12). */struct in6_ifstat {	u_quad_t ifs6_in_receive;	/* # of total input datagram */	u_quad_t ifs6_in_hdrerr;	/* # of datagrams with invalid hdr */	u_quad_t ifs6_in_toobig;	/* # of datagrams exceeded MTU */	u_quad_t ifs6_in_noroute;	/* # of datagrams with no route */	u_quad_t ifs6_in_addrerr;	/* # of datagrams with invalid dst */	u_quad_t ifs6_in_protounknown;	/* # of datagrams with unknown proto */					/* NOTE: increment on final dst if */	u_quad_t ifs6_in_truncated;	/* # of truncated datagrams */	u_quad_t ifs6_in_discard;	/* # of discarded datagrams */					/* NOTE: fragment timeout is not here */	u_quad_t ifs6_in_deliver;	/* # of datagrams delivered to ULP */					/* NOTE: increment on final dst if */	u_quad_t ifs6_out_forward;	/* # of datagrams forwarded */					/* NOTE: increment on outgoing if */	u_quad_t ifs6_out_request;	/* # of outgoing datagrams from ULP */					/* NOTE: does not include forwrads */	u_quad_t ifs6_out_discard;	/* # of discarded datagrams */	u_quad_t ifs6_out_fragok;	/* # of datagrams fragmented */	u_quad_t ifs6_out_fragfail;	/* # of datagrams failed on fragment */	u_quad_t ifs6_out_fragcreat;	/* # of fragment datagrams */					/* NOTE: this is # after fragment */	u_quad_t ifs6_reass_reqd;	/* # of incoming fragmented packets */					/* NOTE: increment on final dst if */	u_quad_t ifs6_reass_ok;		/* # of reassembled packets */					/* NOTE: this is # after reass */					/* NOTE: increment on final dst if */	u_quad_t ifs6_reass_fail;	/* # of reass failures */					/* NOTE: may not be packet count */					/* NOTE: increment on final dst if */	u_quad_t ifs6_in_mcast;		/* # of inbound multicast datagrams */	u_quad_t ifs6_out_mcast;	/* # of outbound multicast datagrams */};/** IPv6 Interface table, as defined in RFC 2465 Ipv6IfEntry*/#define DISPLAY_STR_SIZE     256#define MAX_OID_SIZE          40#define IF_IDENT_SIZE          8#define MAX_PHY_ADDR_SIZE     16struct in6_ifinfo {        int                  ipv6IfIndex;        char                 ipv6IfDescr[DISPLAY_STR_SIZE];        unsigned char        ipv6IfLowerLayer[MAX_OID_SIZE] ;        int                  ipv6IfLowerLayerLength;        u_int32_t            ipv6IfEffectiveMtu ;        u_int32_t            ipv6IfReasmMaxSize ;        char                 ipv6IfIdentifier[IF_IDENT_SIZE];        int                  ipv6IfIdentifierLength ;        unsigned char        ipv6IfPhysicalAddress[MAX_PHY_ADDR_SIZE] ;        int                  ipv6IfPhysicalAddressLen;        int                  ipv6IfAdminStatus ;        int                  ipv6IfOperStatus ;        u_int                ipv6IfLastChange ;};/* Note that the in6_ifdata data structure is used by m2Ipv6IfTblEntryGet()  * and m2Ipv6IfTblEntrySet() only and may be obsolete in the future. The  * global _in6_ifdata is defunct. * * Revisit: RFC2465 defines ipv6IfEntry and ipv6IfStatsEntry as two separate  * tables. One the other hand, the m2Ipv6IfTblEntryGet() and  * m2Ipv6IfTblEntrySet() routine are used to manage both tables. From SNMP  * operation point of view, the Stub routine always make two separate calls  * if, for example, it needs to retrieve information for a given entry in both  * the ipv6IfEntry and ipv6IfStatsEntry. The m2Ipv6IfTblEntryGet(), however, 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -