17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 545916cd2Sjpk * Common Development and Distribution License (the "License"). 645916cd2Sjpk * You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate * 87c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate * and limitations under the License. 127c478bd9Sstevel@tonic-gate * 137c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate * 197c478bd9Sstevel@tonic-gate * CDDL HEADER END 20*e11c3f44Smeem * 21*e11c3f44Smeem * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 227c478bd9Sstevel@tonic-gate * Use is subject to license terms. 237c478bd9Sstevel@tonic-gate */ 247c478bd9Sstevel@tonic-gate /* Copyright (c) 1990 Mentat Inc. */ 257c478bd9Sstevel@tonic-gate 267c478bd9Sstevel@tonic-gate #ifndef _INET_MIB2_H 277c478bd9Sstevel@tonic-gate #define _INET_MIB2_H 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gate #include <netinet/in.h> /* For in6_addr_t */ 3045916cd2Sjpk #include <sys/tsol/label.h> /* For brange_t */ 3145916cd2Sjpk #include <sys/tsol/label_macro.h> /* For brange_t */ 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gate #ifdef __cplusplus 347c478bd9Sstevel@tonic-gate extern "C" { 357c478bd9Sstevel@tonic-gate #endif 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gate /* 387c478bd9Sstevel@tonic-gate * The IPv6 parts of this are derived from: 397c478bd9Sstevel@tonic-gate * RFC 2465 407c478bd9Sstevel@tonic-gate * RFC 2466 417c478bd9Sstevel@tonic-gate * RFC 2452 427c478bd9Sstevel@tonic-gate * RFC 2454 437c478bd9Sstevel@tonic-gate */ 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gate /* 467c478bd9Sstevel@tonic-gate * SNMP set/get via M_PROTO T_OPTMGMT_REQ. Structure is that used 477c478bd9Sstevel@tonic-gate * for [gs]etsockopt() calls. get uses T_CURRENT, set uses T_NEOGTIATE 487c478bd9Sstevel@tonic-gate * MGMT_flags value. The following definition of opthdr is taken from 497c478bd9Sstevel@tonic-gate * socket.h: 507c478bd9Sstevel@tonic-gate * 517c478bd9Sstevel@tonic-gate * An option specification consists of an opthdr, followed by the value of 527c478bd9Sstevel@tonic-gate * the option. An options buffer contains one or more options. The len 537c478bd9Sstevel@tonic-gate * field of opthdr specifies the length of the option value in bytes. This 547c478bd9Sstevel@tonic-gate * length must be a multiple of sizeof(long) (use OPTLEN macro). 557c478bd9Sstevel@tonic-gate * 567c478bd9Sstevel@tonic-gate * struct opthdr { 577c478bd9Sstevel@tonic-gate * long level; protocol level affected 587c478bd9Sstevel@tonic-gate * long name; option to modify 597c478bd9Sstevel@tonic-gate * long len; length of option value 607c478bd9Sstevel@tonic-gate * }; 617c478bd9Sstevel@tonic-gate * 627c478bd9Sstevel@tonic-gate * #define OPTLEN(x) ((((x) + sizeof(long) - 1) / sizeof(long)) * sizeof(long)) 637c478bd9Sstevel@tonic-gate * #define OPTVAL(opt) ((char *)(opt + 1)) 647c478bd9Sstevel@tonic-gate * 65*e11c3f44Smeem * For get requests (T_CURRENT), any MIB2_xxx value can be used (only 667c478bd9Sstevel@tonic-gate * "get all" is supported, so all modules get a copy of the request to 67*e11c3f44Smeem * return everything it knows. In general, we use MIB2_IP. There is 68*e11c3f44Smeem * one exception: in general, IP will not report information related to 69*e11c3f44Smeem * IRE_MARK_TESTHIDDEN routes (e.g., in the MIB2_IP_ROUTE table). 70*e11c3f44Smeem * However, using the special value EXPER_IP_AND_TESTHIDDEN will cause 71*e11c3f44Smeem * all information to be reported. This special value should only be 72*e11c3f44Smeem * used by IPMP-aware low-level utilities (e.g. in.mpathd). 737c478bd9Sstevel@tonic-gate * 747c478bd9Sstevel@tonic-gate * IMPORTANT: some fields are grouped in a different structure than 757c478bd9Sstevel@tonic-gate * suggested by MIB-II, e.g., checksum error counts. The original MIB-2 767c478bd9Sstevel@tonic-gate * field name has been retained. Field names beginning with "mi" are not 777c478bd9Sstevel@tonic-gate * defined in the MIB but contain important & useful information maintained 787c478bd9Sstevel@tonic-gate * by the corresponding module. 797c478bd9Sstevel@tonic-gate */ 807c478bd9Sstevel@tonic-gate #ifndef IPPROTO_MAX 817c478bd9Sstevel@tonic-gate #define IPPROTO_MAX 256 827c478bd9Sstevel@tonic-gate #endif 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gate #define MIB2_SYSTEM (IPPROTO_MAX+1) 857c478bd9Sstevel@tonic-gate #define MIB2_INTERFACES (IPPROTO_MAX+2) 867c478bd9Sstevel@tonic-gate #define MIB2_AT (IPPROTO_MAX+3) 877c478bd9Sstevel@tonic-gate #define MIB2_IP (IPPROTO_MAX+4) 887c478bd9Sstevel@tonic-gate #define MIB2_ICMP (IPPROTO_MAX+5) 897c478bd9Sstevel@tonic-gate #define MIB2_TCP (IPPROTO_MAX+6) 907c478bd9Sstevel@tonic-gate #define MIB2_UDP (IPPROTO_MAX+7) 917c478bd9Sstevel@tonic-gate #define MIB2_EGP (IPPROTO_MAX+8) 927c478bd9Sstevel@tonic-gate #define MIB2_CMOT (IPPROTO_MAX+9) 937c478bd9Sstevel@tonic-gate #define MIB2_TRANSMISSION (IPPROTO_MAX+10) 947c478bd9Sstevel@tonic-gate #define MIB2_SNMP (IPPROTO_MAX+11) 957c478bd9Sstevel@tonic-gate #define MIB2_IP6 (IPPROTO_MAX+12) 967c478bd9Sstevel@tonic-gate #define MIB2_ICMP6 (IPPROTO_MAX+13) 977c478bd9Sstevel@tonic-gate #define MIB2_TCP6 (IPPROTO_MAX+14) 987c478bd9Sstevel@tonic-gate #define MIB2_UDP6 (IPPROTO_MAX+15) 997c478bd9Sstevel@tonic-gate #define MIB2_SCTP (IPPROTO_MAX+16) 1007c478bd9Sstevel@tonic-gate 1017c478bd9Sstevel@tonic-gate /* 1027c478bd9Sstevel@tonic-gate * Define range of levels for use with MIB2_* 1037c478bd9Sstevel@tonic-gate */ 1047c478bd9Sstevel@tonic-gate #define MIB2_RANGE_START (IPPROTO_MAX+1) 1057c478bd9Sstevel@tonic-gate #define MIB2_RANGE_END (IPPROTO_MAX+16) 1067c478bd9Sstevel@tonic-gate 1077c478bd9Sstevel@tonic-gate 1087c478bd9Sstevel@tonic-gate #define EXPER 1024 /* experimental - not part of mib */ 1097c478bd9Sstevel@tonic-gate #define EXPER_IGMP (EXPER+1) 1107c478bd9Sstevel@tonic-gate #define EXPER_DVMRP (EXPER+2) 1117c478bd9Sstevel@tonic-gate #define EXPER_RAWIP (EXPER+3) 112*e11c3f44Smeem #define EXPER_IP_AND_TESTHIDDEN (EXPER+4) 1137c478bd9Sstevel@tonic-gate 1147c478bd9Sstevel@tonic-gate /* 1157c478bd9Sstevel@tonic-gate * Define range of levels for experimental use 1167c478bd9Sstevel@tonic-gate */ 1177c478bd9Sstevel@tonic-gate #define EXPER_RANGE_START (EXPER+1) 118*e11c3f44Smeem #define EXPER_RANGE_END (EXPER+4) 1197c478bd9Sstevel@tonic-gate 1207c478bd9Sstevel@tonic-gate #define BUMP_MIB(s, x) { \ 1217c478bd9Sstevel@tonic-gate extern void __dtrace_probe___mib_##x(int, void *); \ 1227c478bd9Sstevel@tonic-gate void *stataddr = &((s)->x); \ 1237c478bd9Sstevel@tonic-gate __dtrace_probe___mib_##x(1, stataddr); \ 1247c478bd9Sstevel@tonic-gate (s)->x++; \ 1257c478bd9Sstevel@tonic-gate } 1267c478bd9Sstevel@tonic-gate 1277c478bd9Sstevel@tonic-gate #define UPDATE_MIB(s, x, y) { \ 1287c478bd9Sstevel@tonic-gate extern void __dtrace_probe___mib_##x(int, void *); \ 1297c478bd9Sstevel@tonic-gate void *stataddr = &((s)->x); \ 1307c478bd9Sstevel@tonic-gate __dtrace_probe___mib_##x(y, stataddr); \ 1317c478bd9Sstevel@tonic-gate (s)->x += (y); \ 1327c478bd9Sstevel@tonic-gate } 1337c478bd9Sstevel@tonic-gate 1347c478bd9Sstevel@tonic-gate #define SET_MIB(x, y) x = y 1357c478bd9Sstevel@tonic-gate #define BUMP_LOCAL(x) (x)++ 1367c478bd9Sstevel@tonic-gate #define UPDATE_LOCAL(x, y) (x) += (y) 1373173664eSapersson #define SYNC32_MIB(s, m32, m64) SET_MIB((s)->m32, (s)->m64 & 0xffffffff) 1387c478bd9Sstevel@tonic-gate 1397c478bd9Sstevel@tonic-gate #define OCTET_LENGTH 32 /* Must be at least LIFNAMSIZ */ 1407c478bd9Sstevel@tonic-gate typedef struct Octet_s { 1417c478bd9Sstevel@tonic-gate int o_length; 1427c478bd9Sstevel@tonic-gate char o_bytes[OCTET_LENGTH]; 1437c478bd9Sstevel@tonic-gate } Octet_t; 1447c478bd9Sstevel@tonic-gate 1457c478bd9Sstevel@tonic-gate typedef uint32_t Counter; 1467c478bd9Sstevel@tonic-gate typedef uint32_t Counter32; 1477c478bd9Sstevel@tonic-gate typedef uint64_t Counter64; 1487c478bd9Sstevel@tonic-gate typedef uint32_t Gauge; 1497c478bd9Sstevel@tonic-gate typedef uint32_t IpAddress; 1507c478bd9Sstevel@tonic-gate typedef struct in6_addr Ip6Address; 1517c478bd9Sstevel@tonic-gate typedef Octet_t DeviceName; 1527c478bd9Sstevel@tonic-gate typedef Octet_t PhysAddress; 1537c478bd9Sstevel@tonic-gate typedef uint32_t DeviceIndex; /* Interface index */ 1547c478bd9Sstevel@tonic-gate 1553173664eSapersson #define MIB2_UNKNOWN_INTERFACE 0 1563173664eSapersson #define MIB2_UNKNOWN_PROCESS 0 1573173664eSapersson 1587c478bd9Sstevel@tonic-gate /* 1597c478bd9Sstevel@tonic-gate * IP group 1607c478bd9Sstevel@tonic-gate */ 1617c478bd9Sstevel@tonic-gate #define MIB2_IP_ADDR 20 /* ipAddrEntry */ 1627c478bd9Sstevel@tonic-gate #define MIB2_IP_ROUTE 21 /* ipRouteEntry */ 1637c478bd9Sstevel@tonic-gate #define MIB2_IP_MEDIA 22 /* ipNetToMediaEntry */ 1647c478bd9Sstevel@tonic-gate #define MIB2_IP6_ROUTE 23 /* ipv6RouteEntry */ 1657c478bd9Sstevel@tonic-gate #define MIB2_IP6_MEDIA 24 /* ipv6NetToMediaEntry */ 1667c478bd9Sstevel@tonic-gate #define MIB2_IP6_ADDR 25 /* ipv6AddrEntry */ 1673173664eSapersson #define MIB2_IP_TRAFFIC_STATS 31 /* ipIfStatsEntry (IPv4) */ 1687c478bd9Sstevel@tonic-gate #define EXPER_IP_GROUP_MEMBERSHIP 100 1697c478bd9Sstevel@tonic-gate #define EXPER_IP6_GROUP_MEMBERSHIP 101 1707c478bd9Sstevel@tonic-gate #define EXPER_IP_GROUP_SOURCES 102 1717c478bd9Sstevel@tonic-gate #define EXPER_IP6_GROUP_SOURCES 103 17245916cd2Sjpk #define EXPER_IP_RTATTR 104 17345916cd2Sjpk 17445916cd2Sjpk /* 17545916cd2Sjpk * There can be one of each of these tables per transport (MIB2_* above). 17645916cd2Sjpk */ 17745916cd2Sjpk #define EXPER_XPORT_MLP 105 /* transportMLPEntry */ 1787c478bd9Sstevel@tonic-gate 1797c478bd9Sstevel@tonic-gate /* Old names retained for compatibility */ 1807c478bd9Sstevel@tonic-gate #define MIB2_IP_20 MIB2_IP_ADDR 1817c478bd9Sstevel@tonic-gate #define MIB2_IP_21 MIB2_IP_ROUTE 1827c478bd9Sstevel@tonic-gate #define MIB2_IP_22 MIB2_IP_MEDIA 1837c478bd9Sstevel@tonic-gate 1847c478bd9Sstevel@tonic-gate typedef struct mib2_ip { 1857c478bd9Sstevel@tonic-gate /* forwarder? 1 gateway, 2 NOT gateway {ip 1} RW */ 1867c478bd9Sstevel@tonic-gate int ipForwarding; 1877c478bd9Sstevel@tonic-gate /* default Time-to-Live for iph {ip 2} RW */ 1887c478bd9Sstevel@tonic-gate int ipDefaultTTL; 1897c478bd9Sstevel@tonic-gate /* # of input datagrams {ip 3} */ 1907c478bd9Sstevel@tonic-gate Counter ipInReceives; 1917c478bd9Sstevel@tonic-gate /* # of dg discards for iph error {ip 4} */ 1927c478bd9Sstevel@tonic-gate Counter ipInHdrErrors; 1937c478bd9Sstevel@tonic-gate /* # of dg discards for bad addr {ip 5} */ 1947c478bd9Sstevel@tonic-gate Counter ipInAddrErrors; 1957c478bd9Sstevel@tonic-gate /* # of dg being forwarded {ip 6} */ 1967c478bd9Sstevel@tonic-gate Counter ipForwDatagrams; 1977c478bd9Sstevel@tonic-gate /* # of dg discards for unk protocol {ip 7} */ 1987c478bd9Sstevel@tonic-gate Counter ipInUnknownProtos; 1997c478bd9Sstevel@tonic-gate /* # of dg discards of good dg's {ip 8} */ 2007c478bd9Sstevel@tonic-gate Counter ipInDiscards; 2017c478bd9Sstevel@tonic-gate /* # of dg sent upstream {ip 9} */ 2027c478bd9Sstevel@tonic-gate Counter ipInDelivers; 2037c478bd9Sstevel@tonic-gate /* # of outdgs recv'd from upstream {ip 10} */ 2047c478bd9Sstevel@tonic-gate Counter ipOutRequests; 2057c478bd9Sstevel@tonic-gate /* # of good outdgs discarded {ip 11} */ 2067c478bd9Sstevel@tonic-gate Counter ipOutDiscards; 2077c478bd9Sstevel@tonic-gate /* # of outdg discards: no route found {ip 12} */ 2087c478bd9Sstevel@tonic-gate Counter ipOutNoRoutes; 2097c478bd9Sstevel@tonic-gate /* sec's recv'd frags held for reass. {ip 13} */ 2107c478bd9Sstevel@tonic-gate int ipReasmTimeout; 2117c478bd9Sstevel@tonic-gate /* # of ip frags needing reassembly {ip 14} */ 2127c478bd9Sstevel@tonic-gate Counter ipReasmReqds; 2137c478bd9Sstevel@tonic-gate /* # of dg's reassembled {ip 15} */ 2147c478bd9Sstevel@tonic-gate Counter ipReasmOKs; 2157c478bd9Sstevel@tonic-gate /* # of reassembly failures (not dg cnt){ip 16} */ 2167c478bd9Sstevel@tonic-gate Counter ipReasmFails; 2177c478bd9Sstevel@tonic-gate /* # of dg's fragged {ip 17} */ 2187c478bd9Sstevel@tonic-gate Counter ipFragOKs; 2197c478bd9Sstevel@tonic-gate /* # of dg discards for no frag set {ip 18} */ 2207c478bd9Sstevel@tonic-gate Counter ipFragFails; 2217c478bd9Sstevel@tonic-gate /* # of dg frags from fragmentation {ip 19} */ 2227c478bd9Sstevel@tonic-gate Counter ipFragCreates; 2237c478bd9Sstevel@tonic-gate /* {ip 20} */ 2247c478bd9Sstevel@tonic-gate int ipAddrEntrySize; 2257c478bd9Sstevel@tonic-gate /* {ip 21} */ 2267c478bd9Sstevel@tonic-gate int ipRouteEntrySize; 2277c478bd9Sstevel@tonic-gate /* {ip 22} */ 2287c478bd9Sstevel@tonic-gate int ipNetToMediaEntrySize; 2297c478bd9Sstevel@tonic-gate /* # of valid route entries discarded {ip 23} */ 2307c478bd9Sstevel@tonic-gate Counter ipRoutingDiscards; 2317c478bd9Sstevel@tonic-gate /* 2327c478bd9Sstevel@tonic-gate * following defined in MIB-II as part of TCP & UDP groups: 2337c478bd9Sstevel@tonic-gate */ 2347c478bd9Sstevel@tonic-gate /* total # of segments recv'd with error { tcp 14 } */ 2357c478bd9Sstevel@tonic-gate Counter tcpInErrs; 2367c478bd9Sstevel@tonic-gate /* # of recv'd dg's not deliverable (no appl.) { udp 2 } */ 2377c478bd9Sstevel@tonic-gate Counter udpNoPorts; 2387c478bd9Sstevel@tonic-gate /* 2397c478bd9Sstevel@tonic-gate * In addition to MIB-II 2407c478bd9Sstevel@tonic-gate */ 2417c478bd9Sstevel@tonic-gate /* # of bad IP header checksums */ 2427c478bd9Sstevel@tonic-gate Counter ipInCksumErrs; 2437c478bd9Sstevel@tonic-gate /* # of complete duplicates in reassembly */ 2447c478bd9Sstevel@tonic-gate Counter ipReasmDuplicates; 2457c478bd9Sstevel@tonic-gate /* # of partial duplicates in reassembly */ 2467c478bd9Sstevel@tonic-gate Counter ipReasmPartDups; 2477c478bd9Sstevel@tonic-gate /* # of packets not forwarded due to adminstrative reasons */ 2487c478bd9Sstevel@tonic-gate Counter ipForwProhibits; 2497c478bd9Sstevel@tonic-gate /* # of UDP packets with bad UDP checksums */ 2507c478bd9Sstevel@tonic-gate Counter udpInCksumErrs; 2517c478bd9Sstevel@tonic-gate /* # of UDP packets droped due to queue overflow */ 2527c478bd9Sstevel@tonic-gate Counter udpInOverflows; 2537c478bd9Sstevel@tonic-gate /* 2547c478bd9Sstevel@tonic-gate * # of RAW IP packets (all IP protocols except UDP, TCP 2557c478bd9Sstevel@tonic-gate * and ICMP) droped due to queue overflow 2567c478bd9Sstevel@tonic-gate */ 2577c478bd9Sstevel@tonic-gate Counter rawipInOverflows; 2587c478bd9Sstevel@tonic-gate 2597c478bd9Sstevel@tonic-gate /* 2607c478bd9Sstevel@tonic-gate * Folowing are private IPSEC MIB. 2617c478bd9Sstevel@tonic-gate */ 2627c478bd9Sstevel@tonic-gate /* # of incoming packets that succeeded policy checks */ 2637c478bd9Sstevel@tonic-gate Counter ipsecInSucceeded; 2647c478bd9Sstevel@tonic-gate /* # of incoming packets that failed policy checks */ 2657c478bd9Sstevel@tonic-gate Counter ipsecInFailed; 2667c478bd9Sstevel@tonic-gate /* Compatible extensions added here */ 2677c478bd9Sstevel@tonic-gate int ipMemberEntrySize; /* Size of ip_member_t */ 2687c478bd9Sstevel@tonic-gate int ipGroupSourceEntrySize; /* Size of ip_grpsrc_t */ 2697c478bd9Sstevel@tonic-gate 2707c478bd9Sstevel@tonic-gate /* # of IPv6 packets received by IPv4 and dropped */ 2717c478bd9Sstevel@tonic-gate Counter ipInIPv6; 2727c478bd9Sstevel@tonic-gate /* # of IPv6 packets transmitted by ip_wput */ 2737c478bd9Sstevel@tonic-gate Counter ipOutIPv6; 2747c478bd9Sstevel@tonic-gate /* # of times ip_wput has switched to become ip_wput_v6 */ 2757c478bd9Sstevel@tonic-gate Counter ipOutSwitchIPv6; 27645916cd2Sjpk 27745916cd2Sjpk int ipRouteAttributeSize; /* Size of mib2_ipAttributeEntry_t */ 27845916cd2Sjpk int transportMLPSize; /* Size of mib2_transportMLPEntry_t */ 2797c478bd9Sstevel@tonic-gate } mib2_ip_t; 2807c478bd9Sstevel@tonic-gate 2817c478bd9Sstevel@tonic-gate /* 2827c478bd9Sstevel@tonic-gate * ipv6IfStatsEntry OBJECT-TYPE 2837c478bd9Sstevel@tonic-gate * SYNTAX Ipv6IfStatsEntry 2847c478bd9Sstevel@tonic-gate * MAX-ACCESS not-accessible 2857c478bd9Sstevel@tonic-gate * STATUS current 2867c478bd9Sstevel@tonic-gate * DESCRIPTION 2877c478bd9Sstevel@tonic-gate * "An interface statistics entry containing objects 2887c478bd9Sstevel@tonic-gate * at a particular IPv6 interface." 2897c478bd9Sstevel@tonic-gate * AUGMENTS { ipv6IfEntry } 2907c478bd9Sstevel@tonic-gate * ::= { ipv6IfStatsTable 1 } 2917c478bd9Sstevel@tonic-gate * 2927c478bd9Sstevel@tonic-gate * Per-interface IPv6 statistics table 2937c478bd9Sstevel@tonic-gate */ 2947c478bd9Sstevel@tonic-gate 2957c478bd9Sstevel@tonic-gate typedef struct mib2_ipv6IfStatsEntry { 2967c478bd9Sstevel@tonic-gate /* Local ifindex to identify the interface */ 2977c478bd9Sstevel@tonic-gate DeviceIndex ipv6IfIndex; 2987c478bd9Sstevel@tonic-gate 2997c478bd9Sstevel@tonic-gate /* forwarder? 1 gateway, 2 NOT gateway {ipv6MIBObjects 1} RW */ 3007c478bd9Sstevel@tonic-gate int ipv6Forwarding; 3017c478bd9Sstevel@tonic-gate /* default Hoplimit for IPv6 {ipv6MIBObjects 2} RW */ 3027c478bd9Sstevel@tonic-gate int ipv6DefaultHopLimit; 3037c478bd9Sstevel@tonic-gate 3047c478bd9Sstevel@tonic-gate int ipv6IfStatsEntrySize; 3057c478bd9Sstevel@tonic-gate int ipv6AddrEntrySize; 3067c478bd9Sstevel@tonic-gate int ipv6RouteEntrySize; 3077c478bd9Sstevel@tonic-gate int ipv6NetToMediaEntrySize; 3087c478bd9Sstevel@tonic-gate int ipv6MemberEntrySize; /* Size of ipv6_member_t */ 3097c478bd9Sstevel@tonic-gate int ipv6GroupSourceEntrySize; /* Size of ipv6_grpsrc_t */ 3107c478bd9Sstevel@tonic-gate 3117c478bd9Sstevel@tonic-gate /* # input datagrams (incl errors) { ipv6IfStatsEntry 1 } */ 3127c478bd9Sstevel@tonic-gate Counter ipv6InReceives; 3137c478bd9Sstevel@tonic-gate /* # errors in IPv6 headers and options { ipv6IfStatsEntry 2 } */ 3147c478bd9Sstevel@tonic-gate Counter ipv6InHdrErrors; 3157c478bd9Sstevel@tonic-gate /* # exceeds outgoing link MTU { ipv6IfStatsEntry 3 } */ 3167c478bd9Sstevel@tonic-gate Counter ipv6InTooBigErrors; 3177c478bd9Sstevel@tonic-gate /* # discarded due to no route to dest { ipv6IfStatsEntry 4 } */ 3187c478bd9Sstevel@tonic-gate Counter ipv6InNoRoutes; 3197c478bd9Sstevel@tonic-gate /* # invalid or unsupported addresses { ipv6IfStatsEntry 5 } */ 3207c478bd9Sstevel@tonic-gate Counter ipv6InAddrErrors; 3217c478bd9Sstevel@tonic-gate /* # unknown next header { ipv6IfStatsEntry 6 } */ 3227c478bd9Sstevel@tonic-gate Counter ipv6InUnknownProtos; 3237c478bd9Sstevel@tonic-gate /* # too short packets { ipv6IfStatsEntry 7 } */ 3247c478bd9Sstevel@tonic-gate Counter ipv6InTruncatedPkts; 3257c478bd9Sstevel@tonic-gate /* # discarded e.g. due to no buffers { ipv6IfStatsEntry 8 } */ 3267c478bd9Sstevel@tonic-gate Counter ipv6InDiscards; 3277c478bd9Sstevel@tonic-gate /* # delivered to upper layer protocols { ipv6IfStatsEntry 9 } */ 3287c478bd9Sstevel@tonic-gate Counter ipv6InDelivers; 3297c478bd9Sstevel@tonic-gate /* # forwarded out interface { ipv6IfStatsEntry 10 } */ 3307c478bd9Sstevel@tonic-gate Counter ipv6OutForwDatagrams; 3317c478bd9Sstevel@tonic-gate /* # originated out interface { ipv6IfStatsEntry 11 } */ 3327c478bd9Sstevel@tonic-gate Counter ipv6OutRequests; 3337c478bd9Sstevel@tonic-gate /* # discarded e.g. due to no buffers { ipv6IfStatsEntry 12 } */ 3347c478bd9Sstevel@tonic-gate Counter ipv6OutDiscards; 3357c478bd9Sstevel@tonic-gate /* # sucessfully fragmented packets { ipv6IfStatsEntry 13 } */ 3367c478bd9Sstevel@tonic-gate Counter ipv6OutFragOKs; 3377c478bd9Sstevel@tonic-gate /* # fragmentation failed { ipv6IfStatsEntry 14 } */ 3387c478bd9Sstevel@tonic-gate Counter ipv6OutFragFails; 3397c478bd9Sstevel@tonic-gate /* # fragments created { ipv6IfStatsEntry 15 } */ 3407c478bd9Sstevel@tonic-gate Counter ipv6OutFragCreates; 3417c478bd9Sstevel@tonic-gate /* # fragments to reassemble { ipv6IfStatsEntry 16 } */ 3427c478bd9Sstevel@tonic-gate Counter ipv6ReasmReqds; 3437c478bd9Sstevel@tonic-gate /* # packets after reassembly { ipv6IfStatsEntry 17 } */ 3447c478bd9Sstevel@tonic-gate Counter ipv6ReasmOKs; 3457c478bd9Sstevel@tonic-gate /* # reassembly failed { ipv6IfStatsEntry 18 } */ 3467c478bd9Sstevel@tonic-gate Counter ipv6ReasmFails; 3477c478bd9Sstevel@tonic-gate /* # received multicast packets { ipv6IfStatsEntry 19 } */ 3487c478bd9Sstevel@tonic-gate Counter ipv6InMcastPkts; 3497c478bd9Sstevel@tonic-gate /* # transmitted multicast packets { ipv6IfStatsEntry 20 } */ 3507c478bd9Sstevel@tonic-gate Counter ipv6OutMcastPkts; 3517c478bd9Sstevel@tonic-gate /* 3527c478bd9Sstevel@tonic-gate * In addition to defined MIBs 3537c478bd9Sstevel@tonic-gate */ 3547c478bd9Sstevel@tonic-gate /* # discarded due to no route to dest */ 3557c478bd9Sstevel@tonic-gate Counter ipv6OutNoRoutes; 3567c478bd9Sstevel@tonic-gate /* # of complete duplicates in reassembly */ 3577c478bd9Sstevel@tonic-gate Counter ipv6ReasmDuplicates; 3587c478bd9Sstevel@tonic-gate /* # of partial duplicates in reassembly */ 3597c478bd9Sstevel@tonic-gate Counter ipv6ReasmPartDups; 3607c478bd9Sstevel@tonic-gate /* # of packets not forwarded due to adminstrative reasons */ 3617c478bd9Sstevel@tonic-gate Counter ipv6ForwProhibits; 3627c478bd9Sstevel@tonic-gate /* # of UDP packets with bad UDP checksums */ 3637c478bd9Sstevel@tonic-gate Counter udpInCksumErrs; 3647c478bd9Sstevel@tonic-gate /* # of UDP packets droped due to queue overflow */ 3657c478bd9Sstevel@tonic-gate Counter udpInOverflows; 3667c478bd9Sstevel@tonic-gate /* 3677c478bd9Sstevel@tonic-gate * # of RAW IPv6 packets (all IPv6 protocols except UDP, TCP 3687c478bd9Sstevel@tonic-gate * and ICMPv6) droped due to queue overflow 3697c478bd9Sstevel@tonic-gate */ 3707c478bd9Sstevel@tonic-gate Counter rawipInOverflows; 3717c478bd9Sstevel@tonic-gate 3727c478bd9Sstevel@tonic-gate /* # of IPv4 packets received by IPv6 and dropped */ 3737c478bd9Sstevel@tonic-gate Counter ipv6InIPv4; 3747c478bd9Sstevel@tonic-gate /* # of IPv4 packets transmitted by ip_wput_wput */ 3757c478bd9Sstevel@tonic-gate Counter ipv6OutIPv4; 3767c478bd9Sstevel@tonic-gate /* # of times ip_wput_v6 has switched to become ip_wput */ 3777c478bd9Sstevel@tonic-gate Counter ipv6OutSwitchIPv4; 3787c478bd9Sstevel@tonic-gate } mib2_ipv6IfStatsEntry_t; 3797c478bd9Sstevel@tonic-gate 3807c478bd9Sstevel@tonic-gate /* 3813173664eSapersson * Per interface IP statistics, both v4 and v6. 3823173664eSapersson * 3833173664eSapersson * Some applications expect to get mib2_ipv6IfStatsEntry_t structs back when 3843173664eSapersson * making a request. To ensure backwards compatability, the first 3853173664eSapersson * sizeof(mib2_ipv6IfStatsEntry_t) bytes of the structure is identical to 3863173664eSapersson * mib2_ipv6IfStatsEntry_t. This should work as long the application is 3873173664eSapersson * written correctly (i.e., using ipv6IfStatsEntrySize to get the size of 3883173664eSapersson * the struct) 3893173664eSapersson * 3903173664eSapersson * RFC4293 introduces several new counters, as well as defining 64-bit 3913173664eSapersson * versions of existing counters. For a new counters, if they have both 32- 3923173664eSapersson * and 64-bit versions, then we only added the latter. However, for already 3933173664eSapersson * existing counters, we have added the 64-bit versions without removing the 3943173664eSapersson * old (32-bit) ones. The 64- and 32-bit counters will only be synchronized 3953173664eSapersson * when the structure contains IPv6 statistics, which is done to ensure 3963173664eSapersson * backwards compatibility. 3973173664eSapersson */ 3983173664eSapersson 3993173664eSapersson /* The following are defined in RFC 4001 and are used for ipIfStatsIPVersion */ 4003173664eSapersson #define MIB2_INETADDRESSTYPE_unknown 0 4013173664eSapersson #define MIB2_INETADDRESSTYPE_ipv4 1 4023173664eSapersson #define MIB2_INETADDRESSTYPE_ipv6 2 4033173664eSapersson 4043173664eSapersson /* 4053173664eSapersson * On amd64, the alignment requirements for long long's is different for 4063173664eSapersson * 32 and 64 bits. If we have a struct containing long long's that is being 4073173664eSapersson * passed between a 64-bit kernel to a 32-bit application, then it is very 4083173664eSapersson * likely that the size of the struct will differ due to padding. Therefore, we 4093173664eSapersson * pack the data to ensure that the struct size is the same for 32- and 4103173664eSapersson * 64-bits. 4113173664eSapersson */ 4123173664eSapersson #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4 4133173664eSapersson #pragma pack(4) 4143173664eSapersson #endif 4153173664eSapersson 4163173664eSapersson typedef struct mib2_ipIfStatsEntry { 4173173664eSapersson 4183173664eSapersson /* Local ifindex to identify the interface */ 4193173664eSapersson DeviceIndex ipIfStatsIfIndex; 4203173664eSapersson 4213173664eSapersson /* forwarder? 1 gateway, 2 NOT gateway { ipv6MIBObjects 1} RW */ 4223173664eSapersson int ipIfStatsForwarding; 4233173664eSapersson /* default Hoplimit for IPv6 { ipv6MIBObjects 2} RW */ 4243173664eSapersson int ipIfStatsDefaultHopLimit; 4253173664eSapersson #define ipIfStatsDefaultTTL ipIfStatsDefaultHopLimit 4263173664eSapersson 4273173664eSapersson int ipIfStatsEntrySize; 4283173664eSapersson int ipIfStatsAddrEntrySize; 4293173664eSapersson int ipIfStatsRouteEntrySize; 4303173664eSapersson int ipIfStatsNetToMediaEntrySize; 4313173664eSapersson int ipIfStatsMemberEntrySize; 4323173664eSapersson int ipIfStatsGroupSourceEntrySize; 4333173664eSapersson 4343173664eSapersson /* # input datagrams (incl errors) { ipIfStatsEntry 3 } */ 4353173664eSapersson Counter ipIfStatsInReceives; 4363173664eSapersson /* # errors in IP headers and options { ipIfStatsEntry 7 } */ 4373173664eSapersson Counter ipIfStatsInHdrErrors; 4383173664eSapersson /* # exceeds outgoing link MTU(v6 only) { ipv6IfStatsEntry 3 } */ 4393173664eSapersson Counter ipIfStatsInTooBigErrors; 4403173664eSapersson /* # discarded due to no route to dest { ipIfStatsEntry 8 } */ 4413173664eSapersson Counter ipIfStatsInNoRoutes; 4423173664eSapersson /* # invalid or unsupported addresses { ipIfStatsEntry 9 } */ 4433173664eSapersson Counter ipIfStatsInAddrErrors; 4443173664eSapersson /* # unknown next header { ipIfStatsEntry 10 } */ 4453173664eSapersson Counter ipIfStatsInUnknownProtos; 4463173664eSapersson /* # too short packets { ipIfStatsEntry 11 } */ 4473173664eSapersson Counter ipIfStatsInTruncatedPkts; 4483173664eSapersson /* # discarded e.g. due to no buffers { ipIfStatsEntry 17 } */ 4493173664eSapersson Counter ipIfStatsInDiscards; 4503173664eSapersson /* # delivered to upper layer protocols { ipIfStatsEntry 18 } */ 4513173664eSapersson Counter ipIfStatsInDelivers; 4523173664eSapersson /* # forwarded out interface { ipIfStatsEntry 23 } */ 4533173664eSapersson Counter ipIfStatsOutForwDatagrams; 4543173664eSapersson /* # originated out interface { ipIfStatsEntry 20 } */ 4553173664eSapersson Counter ipIfStatsOutRequests; 4563173664eSapersson /* # discarded e.g. due to no buffers { ipIfStatsEntry 25 } */ 4573173664eSapersson Counter ipIfStatsOutDiscards; 4583173664eSapersson /* # sucessfully fragmented packets { ipIfStatsEntry 27 } */ 4593173664eSapersson Counter ipIfStatsOutFragOKs; 4603173664eSapersson /* # fragmentation failed { ipIfStatsEntry 28 } */ 4613173664eSapersson Counter ipIfStatsOutFragFails; 4623173664eSapersson /* # fragments created { ipIfStatsEntry 29 } */ 4633173664eSapersson Counter ipIfStatsOutFragCreates; 4643173664eSapersson /* # fragments to reassemble { ipIfStatsEntry 14 } */ 4653173664eSapersson Counter ipIfStatsReasmReqds; 4663173664eSapersson /* # packets after reassembly { ipIfStatsEntry 15 } */ 4673173664eSapersson Counter ipIfStatsReasmOKs; 4683173664eSapersson /* # reassembly failed { ipIfStatsEntry 16 } */ 4693173664eSapersson Counter ipIfStatsReasmFails; 4703173664eSapersson /* # received multicast packets { ipIfStatsEntry 34 } */ 4713173664eSapersson Counter ipIfStatsInMcastPkts; 4723173664eSapersson /* # transmitted multicast packets { ipIfStatsEntry 38 } */ 4733173664eSapersson Counter ipIfStatsOutMcastPkts; 4743173664eSapersson 4753173664eSapersson /* 4763173664eSapersson * In addition to defined MIBs 4773173664eSapersson */ 4783173664eSapersson 4793173664eSapersson /* # discarded due to no route to dest { ipSystemStatsEntry 22 } */ 4803173664eSapersson Counter ipIfStatsOutNoRoutes; 4813173664eSapersson /* # of complete duplicates in reassembly */ 4823173664eSapersson Counter ipIfStatsReasmDuplicates; 4833173664eSapersson /* # of partial duplicates in reassembly */ 4843173664eSapersson Counter ipIfStatsReasmPartDups; 4853173664eSapersson /* # of packets not forwarded due to adminstrative reasons */ 4863173664eSapersson Counter ipIfStatsForwProhibits; 4873173664eSapersson /* # of UDP packets with bad UDP checksums */ 4883173664eSapersson Counter udpInCksumErrs; 4893173664eSapersson #define udpIfStatsInCksumErrs udpInCksumErrs 4903173664eSapersson /* # of UDP packets droped due to queue overflow */ 4913173664eSapersson Counter udpInOverflows; 4923173664eSapersson #define udpIfStatsInOverflows udpInOverflows 4933173664eSapersson /* 4943173664eSapersson * # of RAW IP packets (all IP protocols except UDP, TCP 4953173664eSapersson * and ICMP) droped due to queue overflow 4963173664eSapersson */ 4973173664eSapersson Counter rawipInOverflows; 4983173664eSapersson #define rawipIfStatsInOverflows rawipInOverflows 4993173664eSapersson 5003173664eSapersson /* 5013173664eSapersson * # of IP packets received with the wrong version (i.e., not equal 5023173664eSapersson * to ipIfStatsIPVersion) and that were dropped. 5033173664eSapersson */ 5043173664eSapersson Counter ipIfStatsInWrongIPVersion; 5053173664eSapersson /* 5063173664eSapersson * Depending on the value of ipIfStatsIPVersion, this counter tracks 5073173664eSapersson * v4: # of IPv6 packets transmitted by ip_wput or, 5083173664eSapersson * v6: # of IPv4 packets transmitted by ip_wput_v6. 5093173664eSapersson */ 5103173664eSapersson Counter ipIfStatsOutWrongIPVersion; 5113173664eSapersson /* 5123173664eSapersson * Depending on the value of ipIfStatsIPVersion, this counter tracks 5133173664eSapersson * # of times ip_wput has switched to become ip_wput_v6, or vice versa. 5143173664eSapersson */ 5153173664eSapersson Counter ipIfStatsOutSwitchIPVersion; 5163173664eSapersson 5173173664eSapersson /* 5183173664eSapersson * Fields defined in RFC 4293 5193173664eSapersson */ 5203173664eSapersson 5213173664eSapersson /* ip version { ipIfStatsEntry 1 } */ 5223173664eSapersson int ipIfStatsIPVersion; 5233173664eSapersson /* # input datagrams (incl errors) { ipIfStatsEntry 4 } */ 5243173664eSapersson Counter64 ipIfStatsHCInReceives; 5253173664eSapersson /* # input octets (incl errors) { ipIfStatsEntry 6 } */ 5263173664eSapersson Counter64 ipIfStatsHCInOctets; 5273173664eSapersson /* 5283173664eSapersson * { ipIfStatsEntry 13 } 5293173664eSapersson * # input datagrams for which a forwarding attempt was made 5303173664eSapersson */ 5313173664eSapersson Counter64 ipIfStatsHCInForwDatagrams; 5323173664eSapersson /* # delivered to upper layer protocols { ipIfStatsEntry 19 } */ 5333173664eSapersson Counter64 ipIfStatsHCInDelivers; 5343173664eSapersson /* # originated out interface { ipIfStatsEntry 21 } */ 5353173664eSapersson Counter64 ipIfStatsHCOutRequests; 5363173664eSapersson /* # forwarded out interface { ipIfStatsEntry 23 } */ 5373173664eSapersson Counter64 ipIfStatsHCOutForwDatagrams; 5383173664eSapersson /* # dg's requiring fragmentation { ipIfStatsEntry 26 } */ 5393173664eSapersson Counter ipIfStatsOutFragReqds; 5403173664eSapersson /* # output datagrams { ipIfStatsEntry 31 } */ 5413173664eSapersson Counter64 ipIfStatsHCOutTransmits; 5423173664eSapersson /* # output octets { ipIfStatsEntry 33 } */ 5433173664eSapersson Counter64 ipIfStatsHCOutOctets; 5443173664eSapersson /* # received multicast datagrams { ipIfStatsEntry 35 } */ 5453173664eSapersson Counter64 ipIfStatsHCInMcastPkts; 5463173664eSapersson /* # received multicast octets { ipIfStatsEntry 37 } */ 5473173664eSapersson Counter64 ipIfStatsHCInMcastOctets; 5483173664eSapersson /* # transmitted multicast datagrams { ipIfStatsEntry 39 } */ 5493173664eSapersson Counter64 ipIfStatsHCOutMcastPkts; 5503173664eSapersson /* # transmitted multicast octets { ipIfStatsEntry 41 } */ 5513173664eSapersson Counter64 ipIfStatsHCOutMcastOctets; 5523173664eSapersson /* # received broadcast datagrams { ipIfStatsEntry 43 } */ 5533173664eSapersson Counter64 ipIfStatsHCInBcastPkts; 5543173664eSapersson /* # transmitted broadcast datagrams { ipIfStatsEntry 45 } */ 5553173664eSapersson Counter64 ipIfStatsHCOutBcastPkts; 5563173664eSapersson 5573173664eSapersson /* 5583173664eSapersson * Fields defined in mib2_ip_t 5593173664eSapersson */ 5603173664eSapersson 5613173664eSapersson /* # of incoming packets that succeeded policy checks */ 5623173664eSapersson Counter ipsecInSucceeded; 5633173664eSapersson #define ipsecIfStatsInSucceeded ipsecInSucceeded 5643173664eSapersson /* # of incoming packets that failed policy checks */ 5653173664eSapersson Counter ipsecInFailed; 5663173664eSapersson #define ipsecIfStatsInFailed ipsecInFailed 5673173664eSapersson /* # of bad IP header checksums */ 5683173664eSapersson Counter ipInCksumErrs; 5693173664eSapersson #define ipIfStatsInCksumErrs ipInCksumErrs 5703173664eSapersson /* total # of segments recv'd with error { tcp 14 } */ 5713173664eSapersson Counter tcpInErrs; 5723173664eSapersson #define tcpIfStatsInErrs tcpInErrs 5733173664eSapersson /* # of recv'd dg's not deliverable (no appl.) { udp 2 } */ 5743173664eSapersson Counter udpNoPorts; 5753173664eSapersson #define udpIfStatsNoPorts udpNoPorts 5763173664eSapersson } mib2_ipIfStatsEntry_t; 5773173664eSapersson 5783173664eSapersson #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4 5793173664eSapersson #pragma pack() 5803173664eSapersson #endif 5813173664eSapersson 5823173664eSapersson /* 5837c478bd9Sstevel@tonic-gate * The IP address table contains this entity's IP addressing information. 5847c478bd9Sstevel@tonic-gate * 5857c478bd9Sstevel@tonic-gate * ipAddrTable OBJECT-TYPE 5867c478bd9Sstevel@tonic-gate * SYNTAX SEQUENCE OF IpAddrEntry 5877c478bd9Sstevel@tonic-gate * ACCESS not-accessible 5887c478bd9Sstevel@tonic-gate * STATUS mandatory 5897c478bd9Sstevel@tonic-gate * DESCRIPTION 5907c478bd9Sstevel@tonic-gate * "The table of addressing information relevant to 5917c478bd9Sstevel@tonic-gate * this entity's IP addresses." 5927c478bd9Sstevel@tonic-gate * ::= { ip 20 } 5937c478bd9Sstevel@tonic-gate */ 5947c478bd9Sstevel@tonic-gate 5957c478bd9Sstevel@tonic-gate typedef struct mib2_ipAddrEntry { 5967c478bd9Sstevel@tonic-gate /* IP address of this entry {ipAddrEntry 1} */ 5977c478bd9Sstevel@tonic-gate IpAddress ipAdEntAddr; 5987c478bd9Sstevel@tonic-gate /* Unique interface index {ipAddrEntry 2} */ 5997c478bd9Sstevel@tonic-gate DeviceName ipAdEntIfIndex; 6007c478bd9Sstevel@tonic-gate /* Subnet mask for this IP addr {ipAddrEntry 3} */ 6017c478bd9Sstevel@tonic-gate IpAddress ipAdEntNetMask; 6027c478bd9Sstevel@tonic-gate /* 2^lsb of IP broadcast addr {ipAddrEntry 4} */ 6037c478bd9Sstevel@tonic-gate int ipAdEntBcastAddr; 6047c478bd9Sstevel@tonic-gate /* max size for dg reassembly {ipAddrEntry 5} */ 6057c478bd9Sstevel@tonic-gate int ipAdEntReasmMaxSize; 6067c478bd9Sstevel@tonic-gate /* additional ipif_t fields */ 6077c478bd9Sstevel@tonic-gate struct ipAdEntInfo_s { 6087c478bd9Sstevel@tonic-gate Gauge ae_mtu; 6097c478bd9Sstevel@tonic-gate /* BSD if metric */ 6107c478bd9Sstevel@tonic-gate int ae_metric; 6117c478bd9Sstevel@tonic-gate /* ipif broadcast addr. relation to above?? */ 6127c478bd9Sstevel@tonic-gate IpAddress ae_broadcast_addr; 6137c478bd9Sstevel@tonic-gate /* point-point dest addr */ 6147c478bd9Sstevel@tonic-gate IpAddress ae_pp_dst_addr; 6157c478bd9Sstevel@tonic-gate int ae_flags; /* IFF_* flags in if.h */ 6167c478bd9Sstevel@tonic-gate Counter ae_ibcnt; /* Inbound packets */ 6177c478bd9Sstevel@tonic-gate Counter ae_obcnt; /* Outbound packets */ 6187c478bd9Sstevel@tonic-gate Counter ae_focnt; /* Forwarded packets */ 6197c478bd9Sstevel@tonic-gate IpAddress ae_subnet; /* Subnet prefix */ 6207c478bd9Sstevel@tonic-gate int ae_subnet_len; /* Subnet prefix length */ 6217c478bd9Sstevel@tonic-gate IpAddress ae_src_addr; /* Source address */ 6227c478bd9Sstevel@tonic-gate } ipAdEntInfo; 6233173664eSapersson uint32_t ipAdEntRetransmitTime; /* ipInterfaceRetransmitTime */ 6247c478bd9Sstevel@tonic-gate } mib2_ipAddrEntry_t; 6257c478bd9Sstevel@tonic-gate 6267c478bd9Sstevel@tonic-gate /* 6277c478bd9Sstevel@tonic-gate * ipv6AddrTable OBJECT-TYPE 6287c478bd9Sstevel@tonic-gate * SYNTAX SEQUENCE OF Ipv6AddrEntry 6297c478bd9Sstevel@tonic-gate * MAX-ACCESS not-accessible 6307c478bd9Sstevel@tonic-gate * STATUS current 6317c478bd9Sstevel@tonic-gate * DESCRIPTION 6327c478bd9Sstevel@tonic-gate * "The table of addressing information relevant to 6337c478bd9Sstevel@tonic-gate * this node's interface addresses." 6347c478bd9Sstevel@tonic-gate * ::= { ipv6MIBObjects 8 } 6357c478bd9Sstevel@tonic-gate */ 6367c478bd9Sstevel@tonic-gate 6377c478bd9Sstevel@tonic-gate typedef struct mib2_ipv6AddrEntry { 6387c478bd9Sstevel@tonic-gate /* Unique interface index { Part of INDEX } */ 6397c478bd9Sstevel@tonic-gate DeviceName ipv6AddrIfIndex; 6407c478bd9Sstevel@tonic-gate 6417c478bd9Sstevel@tonic-gate /* IPv6 address of this entry { ipv6AddrEntry 1 } */ 6427c478bd9Sstevel@tonic-gate Ip6Address ipv6AddrAddress; 6437c478bd9Sstevel@tonic-gate /* Prefix length { ipv6AddrEntry 2 } */ 6447c478bd9Sstevel@tonic-gate uint_t ipv6AddrPfxLength; 6457c478bd9Sstevel@tonic-gate /* Type: stateless(1), stateful(2), unknown(3) { ipv6AddrEntry 3 } */ 6467c478bd9Sstevel@tonic-gate uint_t ipv6AddrType; 6477c478bd9Sstevel@tonic-gate /* Anycast: true(1), false(2) { ipv6AddrEntry 4 } */ 6487c478bd9Sstevel@tonic-gate uint_t ipv6AddrAnycastFlag; 6497c478bd9Sstevel@tonic-gate /* 6507c478bd9Sstevel@tonic-gate * Address status: preferred(1), deprecated(2), invalid(3), 6517c478bd9Sstevel@tonic-gate * inaccessible(4), unknown(5) { ipv6AddrEntry 5 } 6527c478bd9Sstevel@tonic-gate */ 6537c478bd9Sstevel@tonic-gate uint_t ipv6AddrStatus; 6547c478bd9Sstevel@tonic-gate struct ipv6AddrInfo_s { 6557c478bd9Sstevel@tonic-gate Gauge ae_mtu; 6567c478bd9Sstevel@tonic-gate /* BSD if metric */ 6577c478bd9Sstevel@tonic-gate int ae_metric; 6587c478bd9Sstevel@tonic-gate /* point-point dest addr */ 6597c478bd9Sstevel@tonic-gate Ip6Address ae_pp_dst_addr; 6607c478bd9Sstevel@tonic-gate int ae_flags; /* IFF_* flags in if.h */ 6617c478bd9Sstevel@tonic-gate Counter ae_ibcnt; /* Inbound packets */ 6627c478bd9Sstevel@tonic-gate Counter ae_obcnt; /* Outbound packets */ 6637c478bd9Sstevel@tonic-gate Counter ae_focnt; /* Forwarded packets */ 6647c478bd9Sstevel@tonic-gate Ip6Address ae_subnet; /* Subnet prefix */ 6657c478bd9Sstevel@tonic-gate int ae_subnet_len; /* Subnet prefix length */ 6667c478bd9Sstevel@tonic-gate Ip6Address ae_src_addr; /* Source address */ 6677c478bd9Sstevel@tonic-gate } ipv6AddrInfo; 6683173664eSapersson uint32_t ipv6AddrReasmMaxSize; /* InterfaceReasmMaxSize */ 6693173664eSapersson Ip6Address ipv6AddrIdentifier; /* InterfaceIdentifier */ 6703173664eSapersson uint32_t ipv6AddrIdentifierLen; 6713173664eSapersson uint32_t ipv6AddrReachableTime; /* InterfaceReachableTime */ 6723173664eSapersson uint32_t ipv6AddrRetransmitTime; /* InterfaceRetransmitTime */ 6737c478bd9Sstevel@tonic-gate } mib2_ipv6AddrEntry_t; 6747c478bd9Sstevel@tonic-gate 6757c478bd9Sstevel@tonic-gate /* 6767c478bd9Sstevel@tonic-gate * The IP routing table contains an entry for each route presently known to 6777c478bd9Sstevel@tonic-gate * this entity. (for IPv4 routes) 6787c478bd9Sstevel@tonic-gate * 6797c478bd9Sstevel@tonic-gate * ipRouteTable OBJECT-TYPE 6807c478bd9Sstevel@tonic-gate * SYNTAX SEQUENCE OF IpRouteEntry 6817c478bd9Sstevel@tonic-gate * ACCESS not-accessible 6827c478bd9Sstevel@tonic-gate * STATUS mandatory 6837c478bd9Sstevel@tonic-gate * DESCRIPTION 6847c478bd9Sstevel@tonic-gate * "This entity's IP Routing table." 6857c478bd9Sstevel@tonic-gate * ::= { ip 21 } 6867c478bd9Sstevel@tonic-gate */ 6877c478bd9Sstevel@tonic-gate 6887c478bd9Sstevel@tonic-gate typedef struct mib2_ipRouteEntry { 6897c478bd9Sstevel@tonic-gate /* dest ip addr for this route {ipRouteEntry 1 } RW */ 6907c478bd9Sstevel@tonic-gate IpAddress ipRouteDest; 6917c478bd9Sstevel@tonic-gate /* unique interface index for this hop {ipRouteEntry 2 } RW */ 6927c478bd9Sstevel@tonic-gate DeviceName ipRouteIfIndex; 6937c478bd9Sstevel@tonic-gate /* primary route metric {ipRouteEntry 3 } RW */ 6947c478bd9Sstevel@tonic-gate int ipRouteMetric1; 6957c478bd9Sstevel@tonic-gate /* alternate route metric {ipRouteEntry 4 } RW */ 6967c478bd9Sstevel@tonic-gate int ipRouteMetric2; 6977c478bd9Sstevel@tonic-gate /* alternate route metric {ipRouteEntry 5 } RW */ 6987c478bd9Sstevel@tonic-gate int ipRouteMetric3; 6997c478bd9Sstevel@tonic-gate /* alternate route metric {ipRouteEntry 6 } RW */ 7007c478bd9Sstevel@tonic-gate int ipRouteMetric4; 7017c478bd9Sstevel@tonic-gate /* ip addr of next hop on this route {ipRouteEntry 7 } RW */ 7027c478bd9Sstevel@tonic-gate IpAddress ipRouteNextHop; 7037c478bd9Sstevel@tonic-gate /* other(1), inval(2), dir(3), indir(4) {ipRouteEntry 8 } RW */ 7047c478bd9Sstevel@tonic-gate int ipRouteType; 7057c478bd9Sstevel@tonic-gate /* mechanism by which route was learned {ipRouteEntry 9 } */ 7067c478bd9Sstevel@tonic-gate int ipRouteProto; 7077c478bd9Sstevel@tonic-gate /* sec's since last update of route {ipRouteEntry 10} RW */ 7087c478bd9Sstevel@tonic-gate int ipRouteAge; 7097c478bd9Sstevel@tonic-gate /* {ipRouteEntry 11} RW */ 7107c478bd9Sstevel@tonic-gate IpAddress ipRouteMask; 7117c478bd9Sstevel@tonic-gate /* alternate route metric {ipRouteEntry 12} RW */ 7127c478bd9Sstevel@tonic-gate int ipRouteMetric5; 7137c478bd9Sstevel@tonic-gate /* additional info from ire's {ipRouteEntry 13 } */ 7147c478bd9Sstevel@tonic-gate struct ipRouteInfo_s { 7157c478bd9Sstevel@tonic-gate Gauge re_max_frag; 7167c478bd9Sstevel@tonic-gate Gauge re_rtt; 7177c478bd9Sstevel@tonic-gate Counter re_ref; 7187c478bd9Sstevel@tonic-gate int re_frag_flag; 7197c478bd9Sstevel@tonic-gate IpAddress re_src_addr; 7207c478bd9Sstevel@tonic-gate int re_ire_type; 7217c478bd9Sstevel@tonic-gate Counter re_obpkt; 7227c478bd9Sstevel@tonic-gate Counter re_ibpkt; 7237c478bd9Sstevel@tonic-gate int re_flags; 7247c478bd9Sstevel@tonic-gate } ipRouteInfo; 7257c478bd9Sstevel@tonic-gate } mib2_ipRouteEntry_t; 7267c478bd9Sstevel@tonic-gate 7277c478bd9Sstevel@tonic-gate /* 7287c478bd9Sstevel@tonic-gate * The IPv6 routing table contains an entry for each route presently known to 7297c478bd9Sstevel@tonic-gate * this entity. 7307c478bd9Sstevel@tonic-gate * 7317c478bd9Sstevel@tonic-gate * ipv6RouteTable OBJECT-TYPE 7327c478bd9Sstevel@tonic-gate * SYNTAX SEQUENCE OF IpRouteEntry 7337c478bd9Sstevel@tonic-gate * ACCESS not-accessible 7347c478bd9Sstevel@tonic-gate * STATUS current 7357c478bd9Sstevel@tonic-gate * DESCRIPTION 7367c478bd9Sstevel@tonic-gate * "IPv6 Routing table. This table contains 7377c478bd9Sstevel@tonic-gate * an entry for each valid IPv6 unicast route 7387c478bd9Sstevel@tonic-gate * that can be used for packet forwarding 7397c478bd9Sstevel@tonic-gate * determination." 7407c478bd9Sstevel@tonic-gate * ::= { ipv6MIBObjects 11 } 7417c478bd9Sstevel@tonic-gate */ 7427c478bd9Sstevel@tonic-gate 7437c478bd9Sstevel@tonic-gate typedef struct mib2_ipv6RouteEntry { 7447c478bd9Sstevel@tonic-gate /* dest ip addr for this route { ipv6RouteEntry 1 } */ 7457c478bd9Sstevel@tonic-gate Ip6Address ipv6RouteDest; 7467c478bd9Sstevel@tonic-gate /* prefix length { ipv6RouteEntry 2 } */ 7477c478bd9Sstevel@tonic-gate int ipv6RoutePfxLength; 7487c478bd9Sstevel@tonic-gate /* unique route index { ipv6RouteEntry 3 } */ 7497c478bd9Sstevel@tonic-gate unsigned ipv6RouteIndex; 7507c478bd9Sstevel@tonic-gate /* unique interface index for this hop { ipv6RouteEntry 4 } */ 7517c478bd9Sstevel@tonic-gate DeviceName ipv6RouteIfIndex; 7527c478bd9Sstevel@tonic-gate /* IPv6 addr of next hop on this route { ipv6RouteEntry 5 } */ 7537c478bd9Sstevel@tonic-gate Ip6Address ipv6RouteNextHop; 7547c478bd9Sstevel@tonic-gate /* other(1), discard(2), local(3), remote(4) */ 7557c478bd9Sstevel@tonic-gate /* { ipv6RouteEntry 6 } */ 7567c478bd9Sstevel@tonic-gate int ipv6RouteType; 7577c478bd9Sstevel@tonic-gate /* mechanism by which route was learned { ipv6RouteEntry 7 } */ 7587c478bd9Sstevel@tonic-gate /* 7597c478bd9Sstevel@tonic-gate * other(1), local(2), netmgmt(3), ndisc(4), rip(5), ospf(6), 7607c478bd9Sstevel@tonic-gate * bgp(7), idrp(8), igrp(9) 7617c478bd9Sstevel@tonic-gate */ 7627c478bd9Sstevel@tonic-gate int ipv6RouteProtocol; 7637c478bd9Sstevel@tonic-gate /* policy hook or traffic class { ipv6RouteEntry 8 } */ 7647c478bd9Sstevel@tonic-gate unsigned ipv6RoutePolicy; 7657c478bd9Sstevel@tonic-gate /* sec's since last update of route { ipv6RouteEntry 9} */ 7667c478bd9Sstevel@tonic-gate int ipv6RouteAge; 7677c478bd9Sstevel@tonic-gate /* Routing domain ID of the next hop { ipv6RouteEntry 10 } */ 7687c478bd9Sstevel@tonic-gate unsigned ipv6RouteNextHopRDI; 7697c478bd9Sstevel@tonic-gate /* route metric { ipv6RouteEntry 11 } */ 7707c478bd9Sstevel@tonic-gate unsigned ipv6RouteMetric; 7717c478bd9Sstevel@tonic-gate /* preference (impl specific) { ipv6RouteEntry 12 } */ 7727c478bd9Sstevel@tonic-gate unsigned ipv6RouteWeight; 7737c478bd9Sstevel@tonic-gate /* additional info from ire's { } */ 7747c478bd9Sstevel@tonic-gate struct ipv6RouteInfo_s { 7757c478bd9Sstevel@tonic-gate Gauge re_max_frag; 7767c478bd9Sstevel@tonic-gate Gauge re_rtt; 7777c478bd9Sstevel@tonic-gate Counter re_ref; 7787c478bd9Sstevel@tonic-gate int re_frag_flag; 7797c478bd9Sstevel@tonic-gate Ip6Address re_src_addr; 7807c478bd9Sstevel@tonic-gate int re_ire_type; 7817c478bd9Sstevel@tonic-gate Counter re_obpkt; 7827c478bd9Sstevel@tonic-gate Counter re_ibpkt; 7837c478bd9Sstevel@tonic-gate int re_flags; 7847c478bd9Sstevel@tonic-gate } ipv6RouteInfo; 7857c478bd9Sstevel@tonic-gate } mib2_ipv6RouteEntry_t; 7867c478bd9Sstevel@tonic-gate 78745916cd2Sjpk /* 78845916cd2Sjpk * The IPv4 and IPv6 routing table entries on a trusted system also have 78945916cd2Sjpk * security attributes in the form of label ranges. This experimental 79045916cd2Sjpk * interface provides information about these labels. 79145916cd2Sjpk * 79245916cd2Sjpk * Each entry in this table contains a label range and an index that refers 79345916cd2Sjpk * back to the entry in the routing table to which it applies. There may be 0, 79445916cd2Sjpk * 1, or many label ranges for each routing table entry. 79545916cd2Sjpk * 79645916cd2Sjpk * (opthdr.level is set to MIB2_IP for IPv4 entries and MIB2_IP6 for IPv6. 79745916cd2Sjpk * opthdr.name is set to EXPER_IP_GWATTR.) 79845916cd2Sjpk * 79945916cd2Sjpk * ipRouteAttributeTable OBJECT-TYPE 80045916cd2Sjpk * SYNTAX SEQUENCE OF IpAttributeEntry 80145916cd2Sjpk * ACCESS not-accessible 80245916cd2Sjpk * STATUS current 80345916cd2Sjpk * DESCRIPTION 80445916cd2Sjpk * "IPv4 routing attributes table. This table contains 80545916cd2Sjpk * an entry for each valid trusted label attached to a 80645916cd2Sjpk * route in the system." 80745916cd2Sjpk * ::= { ip 102 } 80845916cd2Sjpk * 80945916cd2Sjpk * ipv6RouteAttributeTable OBJECT-TYPE 81045916cd2Sjpk * SYNTAX SEQUENCE OF IpAttributeEntry 81145916cd2Sjpk * ACCESS not-accessible 81245916cd2Sjpk * STATUS current 81345916cd2Sjpk * DESCRIPTION 81445916cd2Sjpk * "IPv6 routing attributes table. This table contains 81545916cd2Sjpk * an entry for each valid trusted label attached to a 81645916cd2Sjpk * route in the system." 81745916cd2Sjpk * ::= { ip6 102 } 81845916cd2Sjpk */ 81945916cd2Sjpk 82045916cd2Sjpk typedef struct mib2_ipAttributeEntry { 82145916cd2Sjpk uint_t iae_routeidx; 82245916cd2Sjpk int iae_doi; 82345916cd2Sjpk brange_t iae_slrange; 82445916cd2Sjpk } mib2_ipAttributeEntry_t; 8257c478bd9Sstevel@tonic-gate 8267c478bd9Sstevel@tonic-gate /* 8277c478bd9Sstevel@tonic-gate * The IP address translation table contain the IpAddress to 8287c478bd9Sstevel@tonic-gate * `physical' address equivalences. Some interfaces do not 8297c478bd9Sstevel@tonic-gate * use translation tables for determining address 8307c478bd9Sstevel@tonic-gate * equivalences (e.g., DDN-X.25 has an algorithmic method); 8317c478bd9Sstevel@tonic-gate * if all interfaces are of this type, then the Address 8327c478bd9Sstevel@tonic-gate * Translation table is empty, i.e., has zero entries. 8337c478bd9Sstevel@tonic-gate * 8347c478bd9Sstevel@tonic-gate * ipNetToMediaTable OBJECT-TYPE 8357c478bd9Sstevel@tonic-gate * SYNTAX SEQUENCE OF IpNetToMediaEntry 8367c478bd9Sstevel@tonic-gate * ACCESS not-accessible 8377c478bd9Sstevel@tonic-gate * STATUS mandatory 8387c478bd9Sstevel@tonic-gate * DESCRIPTION 8397c478bd9Sstevel@tonic-gate * "The IP Address Translation table used for mapping 8407c478bd9Sstevel@tonic-gate * from IP addresses to physical addresses." 8417c478bd9Sstevel@tonic-gate * ::= { ip 22 } 8427c478bd9Sstevel@tonic-gate */ 8437c478bd9Sstevel@tonic-gate 8447c478bd9Sstevel@tonic-gate typedef struct mib2_ipNetToMediaEntry { 8457c478bd9Sstevel@tonic-gate /* Unique interface index { ipNetToMediaEntry 1 } RW */ 8467c478bd9Sstevel@tonic-gate DeviceName ipNetToMediaIfIndex; 8477c478bd9Sstevel@tonic-gate /* Media dependent physical addr { ipNetToMediaEntry 2 } RW */ 8487c478bd9Sstevel@tonic-gate PhysAddress ipNetToMediaPhysAddress; 8497c478bd9Sstevel@tonic-gate /* ip addr for this physical addr { ipNetToMediaEntry 3 } RW */ 8507c478bd9Sstevel@tonic-gate IpAddress ipNetToMediaNetAddress; 8517c478bd9Sstevel@tonic-gate /* other(1), inval(2), dyn(3), stat(4) { ipNetToMediaEntry 4 } RW */ 8527c478bd9Sstevel@tonic-gate int ipNetToMediaType; 8537c478bd9Sstevel@tonic-gate struct ipNetToMediaInfo_s { 8547c478bd9Sstevel@tonic-gate PhysAddress ntm_mask; /* subnet mask for entry */ 8557c478bd9Sstevel@tonic-gate int ntm_flags; /* ACE_F_* flags in arp.h */ 8567c478bd9Sstevel@tonic-gate } ipNetToMediaInfo; 8577c478bd9Sstevel@tonic-gate } mib2_ipNetToMediaEntry_t; 8587c478bd9Sstevel@tonic-gate 8597c478bd9Sstevel@tonic-gate /* 8607c478bd9Sstevel@tonic-gate * ipv6NetToMediaTable OBJECT-TYPE 8617c478bd9Sstevel@tonic-gate * SYNTAX SEQUENCE OF Ipv6NetToMediaEntry 8627c478bd9Sstevel@tonic-gate * MAX-ACCESS not-accessible 8637c478bd9Sstevel@tonic-gate * STATUS current 8647c478bd9Sstevel@tonic-gate * DESCRIPTION 8657c478bd9Sstevel@tonic-gate * "The IPv6 Address Translation table used for 8667c478bd9Sstevel@tonic-gate * mapping from IPv6 addresses to physical addresses. 8677c478bd9Sstevel@tonic-gate * 8687c478bd9Sstevel@tonic-gate * The IPv6 address translation table contain the 8697c478bd9Sstevel@tonic-gate * Ipv6Address to `physical' address equivalencies. 8707c478bd9Sstevel@tonic-gate * Some interfaces do not use translation tables 8717c478bd9Sstevel@tonic-gate * for determining address equivalencies; if all 8727c478bd9Sstevel@tonic-gate * interfaces are of this type, then the Address 8737c478bd9Sstevel@tonic-gate * Translation table is empty, i.e., has zero 8747c478bd9Sstevel@tonic-gate * entries." 8757c478bd9Sstevel@tonic-gate * ::= { ipv6MIBObjects 12 } 8767c478bd9Sstevel@tonic-gate */ 8777c478bd9Sstevel@tonic-gate 8787c478bd9Sstevel@tonic-gate typedef struct mib2_ipv6NetToMediaEntry { 8797c478bd9Sstevel@tonic-gate /* Unique interface index { Part of INDEX } */ 8807c478bd9Sstevel@tonic-gate DeviceIndex ipv6NetToMediaIfIndex; 8817c478bd9Sstevel@tonic-gate 8827c478bd9Sstevel@tonic-gate /* ip addr for this physical addr { ipv6NetToMediaEntry 1 } */ 8837c478bd9Sstevel@tonic-gate Ip6Address ipv6NetToMediaNetAddress; 8847c478bd9Sstevel@tonic-gate /* Media dependent physical addr { ipv6NetToMediaEntry 2 } */ 8857c478bd9Sstevel@tonic-gate PhysAddress ipv6NetToMediaPhysAddress; 8867c478bd9Sstevel@tonic-gate /* 8877c478bd9Sstevel@tonic-gate * Type of mapping 8887c478bd9Sstevel@tonic-gate * other(1), dynamic(2), static(3), local(4) 8897c478bd9Sstevel@tonic-gate * { ipv6NetToMediaEntry 3 } 8907c478bd9Sstevel@tonic-gate */ 8917c478bd9Sstevel@tonic-gate int ipv6NetToMediaType; 8927c478bd9Sstevel@tonic-gate /* 8937c478bd9Sstevel@tonic-gate * NUD state 8947c478bd9Sstevel@tonic-gate * reachable(1), stale(2), delay(3), probe(4), invalid(5), unknown(6) 8957c478bd9Sstevel@tonic-gate * Note: The kernel returns ND_* states. 8967c478bd9Sstevel@tonic-gate * { ipv6NetToMediaEntry 4 } 8977c478bd9Sstevel@tonic-gate */ 8987c478bd9Sstevel@tonic-gate int ipv6NetToMediaState; 8997c478bd9Sstevel@tonic-gate /* sysUpTime last time entry was updated { ipv6NetToMediaEntry 5 } */ 9007c478bd9Sstevel@tonic-gate int ipv6NetToMediaLastUpdated; 9017c478bd9Sstevel@tonic-gate } mib2_ipv6NetToMediaEntry_t; 9027c478bd9Sstevel@tonic-gate 9037c478bd9Sstevel@tonic-gate 9047c478bd9Sstevel@tonic-gate /* 9057c478bd9Sstevel@tonic-gate * List of group members per interface 9067c478bd9Sstevel@tonic-gate */ 9077c478bd9Sstevel@tonic-gate typedef struct ip_member { 9087c478bd9Sstevel@tonic-gate /* Interface index */ 9097c478bd9Sstevel@tonic-gate DeviceName ipGroupMemberIfIndex; 9107c478bd9Sstevel@tonic-gate /* IP Multicast address */ 9117c478bd9Sstevel@tonic-gate IpAddress ipGroupMemberAddress; 9127c478bd9Sstevel@tonic-gate /* Number of member sockets */ 9137c478bd9Sstevel@tonic-gate Counter ipGroupMemberRefCnt; 9147c478bd9Sstevel@tonic-gate /* Filter mode: 1 => include, 2 => exclude */ 9157c478bd9Sstevel@tonic-gate int ipGroupMemberFilterMode; 9167c478bd9Sstevel@tonic-gate } ip_member_t; 9177c478bd9Sstevel@tonic-gate 9187c478bd9Sstevel@tonic-gate 9197c478bd9Sstevel@tonic-gate /* 9207c478bd9Sstevel@tonic-gate * List of IPv6 group members per interface 9217c478bd9Sstevel@tonic-gate */ 9227c478bd9Sstevel@tonic-gate typedef struct ipv6_member { 9237c478bd9Sstevel@tonic-gate /* Interface index */ 9247c478bd9Sstevel@tonic-gate DeviceIndex ipv6GroupMemberIfIndex; 9257c478bd9Sstevel@tonic-gate /* IP Multicast address */ 9267c478bd9Sstevel@tonic-gate Ip6Address ipv6GroupMemberAddress; 9277c478bd9Sstevel@tonic-gate /* Number of member sockets */ 9287c478bd9Sstevel@tonic-gate Counter ipv6GroupMemberRefCnt; 9297c478bd9Sstevel@tonic-gate /* Filter mode: 1 => include, 2 => exclude */ 9307c478bd9Sstevel@tonic-gate int ipv6GroupMemberFilterMode; 9317c478bd9Sstevel@tonic-gate } ipv6_member_t; 9327c478bd9Sstevel@tonic-gate 93345916cd2Sjpk /* 93445916cd2Sjpk * This is used to mark transport layer entities (e.g., TCP connections) that 93545916cd2Sjpk * are capable of receiving packets from a range of labels. 'level' is set to 93645916cd2Sjpk * the protocol of interest (e.g., MIB2_TCP), and 'name' is set to 93745916cd2Sjpk * EXPER_XPORT_MLP. The tme_connidx refers back to the entry in MIB2_TCP_CONN, 93845916cd2Sjpk * MIB2_TCP6_CONN, or MIB2_SCTP_CONN. 93945916cd2Sjpk * 94045916cd2Sjpk * It is also used to report connections that receive packets at a single label 94145916cd2Sjpk * that's other than the zone's label. This is the case when a TCP connection 94245916cd2Sjpk * is accepted from a particular peer using an MLP listener. 94345916cd2Sjpk */ 94445916cd2Sjpk typedef struct mib2_transportMLPEntry { 94545916cd2Sjpk uint_t tme_connidx; 94645916cd2Sjpk uint_t tme_flags; 94745916cd2Sjpk int tme_doi; 94845916cd2Sjpk bslabel_t tme_label; 94945916cd2Sjpk } mib2_transportMLPEntry_t; 95045916cd2Sjpk 95145916cd2Sjpk #define MIB2_TMEF_PRIVATE 0x00000001 /* MLP on private addresses */ 95245916cd2Sjpk #define MIB2_TMEF_SHARED 0x00000002 /* MLP on shared addresses */ 9537c478bd9Sstevel@tonic-gate 9547c478bd9Sstevel@tonic-gate /* 9557c478bd9Sstevel@tonic-gate * List of IPv4 source addresses being filtered per interface 9567c478bd9Sstevel@tonic-gate */ 9577c478bd9Sstevel@tonic-gate typedef struct ip_grpsrc { 9587c478bd9Sstevel@tonic-gate /* Interface index */ 9597c478bd9Sstevel@tonic-gate DeviceName ipGroupSourceIfIndex; 9607c478bd9Sstevel@tonic-gate /* IP Multicast address */ 9617c478bd9Sstevel@tonic-gate IpAddress ipGroupSourceGroup; 9627c478bd9Sstevel@tonic-gate /* IP Source address */ 9637c478bd9Sstevel@tonic-gate IpAddress ipGroupSourceAddress; 9647c478bd9Sstevel@tonic-gate } ip_grpsrc_t; 9657c478bd9Sstevel@tonic-gate 9667c478bd9Sstevel@tonic-gate 9677c478bd9Sstevel@tonic-gate /* 9687c478bd9Sstevel@tonic-gate * List of IPv6 source addresses being filtered per interface 9697c478bd9Sstevel@tonic-gate */ 9707c478bd9Sstevel@tonic-gate typedef struct ipv6_grpsrc { 9717c478bd9Sstevel@tonic-gate /* Interface index */ 9727c478bd9Sstevel@tonic-gate DeviceIndex ipv6GroupSourceIfIndex; 9737c478bd9Sstevel@tonic-gate /* IP Multicast address */ 9747c478bd9Sstevel@tonic-gate Ip6Address ipv6GroupSourceGroup; 9757c478bd9Sstevel@tonic-gate /* IP Source address */ 9767c478bd9Sstevel@tonic-gate Ip6Address ipv6GroupSourceAddress; 9777c478bd9Sstevel@tonic-gate } ipv6_grpsrc_t; 9787c478bd9Sstevel@tonic-gate 9797c478bd9Sstevel@tonic-gate 9807c478bd9Sstevel@tonic-gate /* 9817c478bd9Sstevel@tonic-gate * ICMP Group 9827c478bd9Sstevel@tonic-gate */ 9837c478bd9Sstevel@tonic-gate typedef struct mib2_icmp { 9847c478bd9Sstevel@tonic-gate /* total # of recv'd ICMP msgs { icmp 1 } */ 9857c478bd9Sstevel@tonic-gate Counter icmpInMsgs; 9867c478bd9Sstevel@tonic-gate /* recv'd ICMP msgs with errors { icmp 2 } */ 9877c478bd9Sstevel@tonic-gate Counter icmpInErrors; 9887c478bd9Sstevel@tonic-gate /* recv'd "dest unreachable" msg's { icmp 3 } */ 9897c478bd9Sstevel@tonic-gate Counter icmpInDestUnreachs; 9907c478bd9Sstevel@tonic-gate /* recv'd "time exceeded" msg's { icmp 4 } */ 9917c478bd9Sstevel@tonic-gate Counter icmpInTimeExcds; 9927c478bd9Sstevel@tonic-gate /* recv'd "parameter problem" msg's { icmp 5 } */ 9937c478bd9Sstevel@tonic-gate Counter icmpInParmProbs; 9947c478bd9Sstevel@tonic-gate /* recv'd "source quench" msg's { icmp 6 } */ 9957c478bd9Sstevel@tonic-gate Counter icmpInSrcQuenchs; 9967c478bd9Sstevel@tonic-gate /* recv'd "ICMP redirect" msg's { icmp 7 } */ 9977c478bd9Sstevel@tonic-gate Counter icmpInRedirects; 9987c478bd9Sstevel@tonic-gate /* recv'd "echo request" msg's { icmp 8 } */ 9997c478bd9Sstevel@tonic-gate Counter icmpInEchos; 10007c478bd9Sstevel@tonic-gate /* recv'd "echo reply" msg's { icmp 9 } */ 10017c478bd9Sstevel@tonic-gate Counter icmpInEchoReps; 10027c478bd9Sstevel@tonic-gate /* recv'd "timestamp" msg's { icmp 10 } */ 10037c478bd9Sstevel@tonic-gate Counter icmpInTimestamps; 10047c478bd9Sstevel@tonic-gate /* recv'd "timestamp reply" msg's { icmp 11 } */ 10057c478bd9Sstevel@tonic-gate Counter icmpInTimestampReps; 10067c478bd9Sstevel@tonic-gate /* recv'd "address mask request" msg's { icmp 12 } */ 10077c478bd9Sstevel@tonic-gate Counter icmpInAddrMasks; 10087c478bd9Sstevel@tonic-gate /* recv'd "address mask reply" msg's { icmp 13 } */ 10097c478bd9Sstevel@tonic-gate Counter icmpInAddrMaskReps; 10107c478bd9Sstevel@tonic-gate /* total # of sent ICMP msg's { icmp 14 } */ 10117c478bd9Sstevel@tonic-gate Counter icmpOutMsgs; 10127c478bd9Sstevel@tonic-gate /* # of msg's not sent for internal icmp errors { icmp 15 } */ 10137c478bd9Sstevel@tonic-gate Counter icmpOutErrors; 10147c478bd9Sstevel@tonic-gate /* # of "dest unreachable" msg's sent { icmp 16 } */ 10157c478bd9Sstevel@tonic-gate Counter icmpOutDestUnreachs; 10167c478bd9Sstevel@tonic-gate /* # of "time exceeded" msg's sent { icmp 17 } */ 10177c478bd9Sstevel@tonic-gate Counter icmpOutTimeExcds; 10187c478bd9Sstevel@tonic-gate /* # of "parameter problme" msg's sent { icmp 18 } */ 10197c478bd9Sstevel@tonic-gate Counter icmpOutParmProbs; 10207c478bd9Sstevel@tonic-gate /* # of "source quench" msg's sent { icmp 19 } */ 10217c478bd9Sstevel@tonic-gate Counter icmpOutSrcQuenchs; 10227c478bd9Sstevel@tonic-gate /* # of "ICMP redirect" msg's sent { icmp 20 } */ 10237c478bd9Sstevel@tonic-gate Counter icmpOutRedirects; 10247c478bd9Sstevel@tonic-gate /* # of "Echo request" msg's sent { icmp 21 } */ 10257c478bd9Sstevel@tonic-gate Counter icmpOutEchos; 10267c478bd9Sstevel@tonic-gate /* # of "Echo reply" msg's sent { icmp 22 } */ 10277c478bd9Sstevel@tonic-gate Counter icmpOutEchoReps; 10287c478bd9Sstevel@tonic-gate /* # of "timestamp request" msg's sent { icmp 23 } */ 10297c478bd9Sstevel@tonic-gate Counter icmpOutTimestamps; 10307c478bd9Sstevel@tonic-gate /* # of "timestamp reply" msg's sent { icmp 24 } */ 10317c478bd9Sstevel@tonic-gate Counter icmpOutTimestampReps; 10327c478bd9Sstevel@tonic-gate /* # of "address mask request" msg's sent { icmp 25 } */ 10337c478bd9Sstevel@tonic-gate Counter icmpOutAddrMasks; 10347c478bd9Sstevel@tonic-gate /* # of "address mask reply" msg's sent { icmp 26 } */ 10357c478bd9Sstevel@tonic-gate Counter icmpOutAddrMaskReps; 10367c478bd9Sstevel@tonic-gate /* 10377c478bd9Sstevel@tonic-gate * In addition to MIB-II 10387c478bd9Sstevel@tonic-gate */ 10397c478bd9Sstevel@tonic-gate /* # of received packets with checksum errors */ 10407c478bd9Sstevel@tonic-gate Counter icmpInCksumErrs; 10417c478bd9Sstevel@tonic-gate /* # of received packets with unknow codes */ 10427c478bd9Sstevel@tonic-gate Counter icmpInUnknowns; 10437c478bd9Sstevel@tonic-gate /* # of received unreachables with "fragmentation needed" */ 10447c478bd9Sstevel@tonic-gate Counter icmpInFragNeeded; 10457c478bd9Sstevel@tonic-gate /* # of sent unreachables with "fragmentation needed" */ 10467c478bd9Sstevel@tonic-gate Counter icmpOutFragNeeded; 10477c478bd9Sstevel@tonic-gate /* 10487c478bd9Sstevel@tonic-gate * # of msg's not sent since original packet was broadcast/multicast 10497c478bd9Sstevel@tonic-gate * or an ICMP error packet 10507c478bd9Sstevel@tonic-gate */ 10517c478bd9Sstevel@tonic-gate Counter icmpOutDrops; 10527c478bd9Sstevel@tonic-gate /* # of ICMP packets droped due to queue overflow */ 10537c478bd9Sstevel@tonic-gate Counter icmpInOverflows; 10547c478bd9Sstevel@tonic-gate /* recv'd "ICMP redirect" msg's that are bad thus ignored */ 10557c478bd9Sstevel@tonic-gate Counter icmpInBadRedirects; 10567c478bd9Sstevel@tonic-gate } mib2_icmp_t; 10577c478bd9Sstevel@tonic-gate 10587c478bd9Sstevel@tonic-gate 10597c478bd9Sstevel@tonic-gate /* 10607c478bd9Sstevel@tonic-gate * ipv6IfIcmpEntry OBJECT-TYPE 10617c478bd9Sstevel@tonic-gate * SYNTAX Ipv6IfIcmpEntry 10627c478bd9Sstevel@tonic-gate * MAX-ACCESS not-accessible 10637c478bd9Sstevel@tonic-gate * STATUS current 10647c478bd9Sstevel@tonic-gate * DESCRIPTION 10657c478bd9Sstevel@tonic-gate * "An ICMPv6 statistics entry containing 10667c478bd9Sstevel@tonic-gate * objects at a particular IPv6 interface. 10677c478bd9Sstevel@tonic-gate * 10687c478bd9Sstevel@tonic-gate * Note that a receiving interface is 10697c478bd9Sstevel@tonic-gate * the interface to which a given ICMPv6 message 10707c478bd9Sstevel@tonic-gate * is addressed which may not be necessarily 10717c478bd9Sstevel@tonic-gate * the input interface for the message. 10727c478bd9Sstevel@tonic-gate * 10737c478bd9Sstevel@tonic-gate * Similarly, the sending interface is 10747c478bd9Sstevel@tonic-gate * the interface that sources a given 10757c478bd9Sstevel@tonic-gate * ICMP message which is usually but not 10767c478bd9Sstevel@tonic-gate * necessarily the output interface for the message." 10777c478bd9Sstevel@tonic-gate * AUGMENTS { ipv6IfEntry } 10787c478bd9Sstevel@tonic-gate * ::= { ipv6IfIcmpTable 1 } 10797c478bd9Sstevel@tonic-gate * 10807c478bd9Sstevel@tonic-gate * Per-interface ICMPv6 statistics table 10817c478bd9Sstevel@tonic-gate */ 10827c478bd9Sstevel@tonic-gate 10837c478bd9Sstevel@tonic-gate typedef struct mib2_ipv6IfIcmpEntry { 10847c478bd9Sstevel@tonic-gate /* Local ifindex to identify the interface */ 10857c478bd9Sstevel@tonic-gate DeviceIndex ipv6IfIcmpIfIndex; 10867c478bd9Sstevel@tonic-gate 10877c478bd9Sstevel@tonic-gate int ipv6IfIcmpEntrySize; /* Size of ipv6IfIcmpEntry */ 10887c478bd9Sstevel@tonic-gate 10897c478bd9Sstevel@tonic-gate /* The total # ICMP msgs rcvd includes ipv6IfIcmpInErrors */ 10907c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInMsgs; 10917c478bd9Sstevel@tonic-gate /* # ICMP with ICMP-specific errors (bad checkum, length, etc) */ 10927c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInErrors; 10937c478bd9Sstevel@tonic-gate /* # ICMP Destination Unreachable */ 10947c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInDestUnreachs; 10957c478bd9Sstevel@tonic-gate /* # ICMP destination unreachable/communication admin prohibited */ 10967c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInAdminProhibs; 10977c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInTimeExcds; 10987c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInParmProblems; 10997c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInPktTooBigs; 11007c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInEchos; 11017c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInEchoReplies; 11027c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInRouterSolicits; 11037c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInRouterAdvertisements; 11047c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInNeighborSolicits; 11057c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInNeighborAdvertisements; 11067c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInRedirects; 11077c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInGroupMembQueries; 11087c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInGroupMembResponses; 11097c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInGroupMembReductions; 11107c478bd9Sstevel@tonic-gate /* Total # ICMP messages attempted to send (includes OutErrors) */ 11117c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutMsgs; 11127c478bd9Sstevel@tonic-gate /* # ICMP messages not sent due to ICMP problems (e.g. no buffers) */ 11137c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutErrors; 11147c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutDestUnreachs; 11157c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutAdminProhibs; 11167c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutTimeExcds; 11177c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutParmProblems; 11187c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutPktTooBigs; 11197c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutEchos; 11207c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutEchoReplies; 11217c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutRouterSolicits; 11227c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutRouterAdvertisements; 11237c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutNeighborSolicits; 11247c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutNeighborAdvertisements; 11257c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutRedirects; 11267c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutGroupMembQueries; 11277c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutGroupMembResponses; 11287c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutGroupMembReductions; 11297c478bd9Sstevel@tonic-gate /* Additions beyond the MIB */ 11307c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInOverflows; 11317c478bd9Sstevel@tonic-gate /* recv'd "ICMPv6 redirect" msg's that are bad thus ignored */ 11327c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpBadHoplimit; 11337c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInBadNeighborAdvertisements; 11347c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInBadNeighborSolicitations; 11357c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInBadRedirects; 11367c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInGroupMembTotal; 11377c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInGroupMembBadQueries; 11387c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInGroupMembBadReports; 11397c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInGroupMembOurReports; 11407c478bd9Sstevel@tonic-gate } mib2_ipv6IfIcmpEntry_t; 11417c478bd9Sstevel@tonic-gate 11427c478bd9Sstevel@tonic-gate /* 11437c478bd9Sstevel@tonic-gate * the TCP group 11447c478bd9Sstevel@tonic-gate * 11457c478bd9Sstevel@tonic-gate * Note that instances of object types that represent 11467c478bd9Sstevel@tonic-gate * information about a particular TCP connection are 11477c478bd9Sstevel@tonic-gate * transient; they persist only as long as the connection 11487c478bd9Sstevel@tonic-gate * in question. 11497c478bd9Sstevel@tonic-gate */ 11507c478bd9Sstevel@tonic-gate #define MIB2_TCP_CONN 13 /* tcpConnEntry */ 11517c478bd9Sstevel@tonic-gate #define MIB2_TCP6_CONN 14 /* tcp6ConnEntry */ 11527c478bd9Sstevel@tonic-gate 11537c478bd9Sstevel@tonic-gate /* Old name retained for compatibility */ 11547c478bd9Sstevel@tonic-gate #define MIB2_TCP_13 MIB2_TCP_CONN 11557c478bd9Sstevel@tonic-gate 11563173664eSapersson /* Pack data in mib2_tcp to make struct size the same for 32- and 64-bits */ 11573173664eSapersson #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4 11583173664eSapersson #pragma pack(4) 11593173664eSapersson #endif 11607c478bd9Sstevel@tonic-gate typedef struct mib2_tcp { 11617c478bd9Sstevel@tonic-gate /* algorithm used for transmit timeout value { tcp 1 } */ 11627c478bd9Sstevel@tonic-gate int tcpRtoAlgorithm; 11637c478bd9Sstevel@tonic-gate /* minimum retransmit timeout (ms) { tcp 2 } */ 11647c478bd9Sstevel@tonic-gate int tcpRtoMin; 11657c478bd9Sstevel@tonic-gate /* maximum retransmit timeout (ms) { tcp 3 } */ 11667c478bd9Sstevel@tonic-gate int tcpRtoMax; 11677c478bd9Sstevel@tonic-gate /* maximum # of connections supported { tcp 4 } */ 11687c478bd9Sstevel@tonic-gate int tcpMaxConn; 11697c478bd9Sstevel@tonic-gate /* # of direct transitions CLOSED -> SYN-SENT { tcp 5 } */ 11707c478bd9Sstevel@tonic-gate Counter tcpActiveOpens; 11717c478bd9Sstevel@tonic-gate /* # of direct transitions LISTEN -> SYN-RCVD { tcp 6 } */ 11727c478bd9Sstevel@tonic-gate Counter tcpPassiveOpens; 11737c478bd9Sstevel@tonic-gate /* # of direct SIN-SENT/RCVD -> CLOSED/LISTEN { tcp 7 } */ 11747c478bd9Sstevel@tonic-gate Counter tcpAttemptFails; 11757c478bd9Sstevel@tonic-gate /* # of direct ESTABLISHED/CLOSE-WAIT -> CLOSED { tcp 8 } */ 11767c478bd9Sstevel@tonic-gate Counter tcpEstabResets; 11777c478bd9Sstevel@tonic-gate /* # of connections ESTABLISHED or CLOSE-WAIT { tcp 9 } */ 11787c478bd9Sstevel@tonic-gate Gauge tcpCurrEstab; 11797c478bd9Sstevel@tonic-gate /* total # of segments recv'd { tcp 10 } */ 11807c478bd9Sstevel@tonic-gate Counter tcpInSegs; 11817c478bd9Sstevel@tonic-gate /* total # of segments sent { tcp 11 } */ 11827c478bd9Sstevel@tonic-gate Counter tcpOutSegs; 11837c478bd9Sstevel@tonic-gate /* total # of segments retransmitted { tcp 12 } */ 11847c478bd9Sstevel@tonic-gate Counter tcpRetransSegs; 11857c478bd9Sstevel@tonic-gate /* {tcp 13} */ 11867c478bd9Sstevel@tonic-gate int tcpConnTableSize; /* Size of tcpConnEntry_t */ 11877c478bd9Sstevel@tonic-gate /* in ip {tcp 14} */ 11887c478bd9Sstevel@tonic-gate /* # of segments sent with RST flag { tcp 15 } */ 11897c478bd9Sstevel@tonic-gate Counter tcpOutRsts; 11907c478bd9Sstevel@tonic-gate /* In addition to MIB-II */ 11917c478bd9Sstevel@tonic-gate /* Sender */ 11927c478bd9Sstevel@tonic-gate /* total # of data segments sent */ 11937c478bd9Sstevel@tonic-gate Counter tcpOutDataSegs; 11947c478bd9Sstevel@tonic-gate /* total # of bytes in data segments sent */ 11957c478bd9Sstevel@tonic-gate Counter tcpOutDataBytes; 11967c478bd9Sstevel@tonic-gate /* total # of bytes in segments retransmitted */ 11977c478bd9Sstevel@tonic-gate Counter tcpRetransBytes; 11987c478bd9Sstevel@tonic-gate /* total # of acks sent */ 11997c478bd9Sstevel@tonic-gate Counter tcpOutAck; 12007c478bd9Sstevel@tonic-gate /* total # of delayed acks sent */ 12017c478bd9Sstevel@tonic-gate Counter tcpOutAckDelayed; 12027c478bd9Sstevel@tonic-gate /* total # of segments sent with the urg flag on */ 12037c478bd9Sstevel@tonic-gate Counter tcpOutUrg; 12047c478bd9Sstevel@tonic-gate /* total # of window updates sent */ 12057c478bd9Sstevel@tonic-gate Counter tcpOutWinUpdate; 12067c478bd9Sstevel@tonic-gate /* total # of zero window probes sent */ 12077c478bd9Sstevel@tonic-gate Counter tcpOutWinProbe; 12087c478bd9Sstevel@tonic-gate /* total # of control segments sent (syn, fin, rst) */ 12097c478bd9Sstevel@tonic-gate Counter tcpOutControl; 12107c478bd9Sstevel@tonic-gate /* total # of segments sent due to "fast retransmit" */ 12117c478bd9Sstevel@tonic-gate Counter tcpOutFastRetrans; 12127c478bd9Sstevel@tonic-gate /* Receiver */ 12137c478bd9Sstevel@tonic-gate /* total # of ack segments received */ 12147c478bd9Sstevel@tonic-gate Counter tcpInAckSegs; 12157c478bd9Sstevel@tonic-gate /* total # of bytes acked */ 12167c478bd9Sstevel@tonic-gate Counter tcpInAckBytes; 12177c478bd9Sstevel@tonic-gate /* total # of duplicate acks */ 12187c478bd9Sstevel@tonic-gate Counter tcpInDupAck; 12197c478bd9Sstevel@tonic-gate /* total # of acks acking unsent data */ 12207c478bd9Sstevel@tonic-gate Counter tcpInAckUnsent; 12217c478bd9Sstevel@tonic-gate /* total # of data segments received in order */ 12227c478bd9Sstevel@tonic-gate Counter tcpInDataInorderSegs; 12237c478bd9Sstevel@tonic-gate /* total # of data bytes received in order */ 12247c478bd9Sstevel@tonic-gate Counter tcpInDataInorderBytes; 12257c478bd9Sstevel@tonic-gate /* total # of data segments received out of order */ 12267c478bd9Sstevel@tonic-gate Counter tcpInDataUnorderSegs; 12277c478bd9Sstevel@tonic-gate /* total # of data bytes received out of order */ 12287c478bd9Sstevel@tonic-gate Counter tcpInDataUnorderBytes; 12297c478bd9Sstevel@tonic-gate /* total # of complete duplicate data segments received */ 12307c478bd9Sstevel@tonic-gate Counter tcpInDataDupSegs; 12317c478bd9Sstevel@tonic-gate /* total # of bytes in the complete duplicate data segments received */ 12327c478bd9Sstevel@tonic-gate Counter tcpInDataDupBytes; 12337c478bd9Sstevel@tonic-gate /* total # of partial duplicate data segments received */ 12347c478bd9Sstevel@tonic-gate Counter tcpInDataPartDupSegs; 12357c478bd9Sstevel@tonic-gate /* total # of bytes in the partial duplicate data segments received */ 12367c478bd9Sstevel@tonic-gate Counter tcpInDataPartDupBytes; 12377c478bd9Sstevel@tonic-gate /* total # of data segments received past the window */ 12387c478bd9Sstevel@tonic-gate Counter tcpInDataPastWinSegs; 12397c478bd9Sstevel@tonic-gate /* total # of data bytes received part the window */ 12407c478bd9Sstevel@tonic-gate Counter tcpInDataPastWinBytes; 12417c478bd9Sstevel@tonic-gate /* total # of zero window probes received */ 12427c478bd9Sstevel@tonic-gate Counter tcpInWinProbe; 12437c478bd9Sstevel@tonic-gate /* total # of window updates received */ 12447c478bd9Sstevel@tonic-gate Counter tcpInWinUpdate; 12457c478bd9Sstevel@tonic-gate /* total # of data segments received after the connection has closed */ 12467c478bd9Sstevel@tonic-gate Counter tcpInClosed; 12477c478bd9Sstevel@tonic-gate /* Others */ 12487c478bd9Sstevel@tonic-gate /* total # of failed attempts to update the rtt estimate */ 12497c478bd9Sstevel@tonic-gate Counter tcpRttNoUpdate; 12507c478bd9Sstevel@tonic-gate /* total # of successful attempts to update the rtt estimate */ 12517c478bd9Sstevel@tonic-gate Counter tcpRttUpdate; 12527c478bd9Sstevel@tonic-gate /* total # of retransmit timeouts */ 12537c478bd9Sstevel@tonic-gate Counter tcpTimRetrans; 12547c478bd9Sstevel@tonic-gate /* total # of retransmit timeouts dropping the connection */ 12557c478bd9Sstevel@tonic-gate Counter tcpTimRetransDrop; 12567c478bd9Sstevel@tonic-gate /* total # of keepalive timeouts */ 12577c478bd9Sstevel@tonic-gate Counter tcpTimKeepalive; 12587c478bd9Sstevel@tonic-gate /* total # of keepalive timeouts sending a probe */ 12597c478bd9Sstevel@tonic-gate Counter tcpTimKeepaliveProbe; 12607c478bd9Sstevel@tonic-gate /* total # of keepalive timeouts dropping the connection */ 12617c478bd9Sstevel@tonic-gate Counter tcpTimKeepaliveDrop; 12627c478bd9Sstevel@tonic-gate /* total # of connections refused due to backlog full on listen */ 12637c478bd9Sstevel@tonic-gate Counter tcpListenDrop; 12647c478bd9Sstevel@tonic-gate /* total # of connections refused due to half-open queue (q0) full */ 12657c478bd9Sstevel@tonic-gate Counter tcpListenDropQ0; 12667c478bd9Sstevel@tonic-gate /* total # of connections dropped from a full half-open queue (q0) */ 12677c478bd9Sstevel@tonic-gate Counter tcpHalfOpenDrop; 12687c478bd9Sstevel@tonic-gate /* total # of retransmitted segments by SACK retransmission */ 12697c478bd9Sstevel@tonic-gate Counter tcpOutSackRetransSegs; 12707c478bd9Sstevel@tonic-gate 12717c478bd9Sstevel@tonic-gate int tcp6ConnTableSize; /* Size of tcp6ConnEntry_t */ 12723173664eSapersson 12733173664eSapersson /* 12743173664eSapersson * fields from RFC 4022 12753173664eSapersson */ 12763173664eSapersson 12773173664eSapersson /* total # of segments recv'd { tcp 17 } */ 12783173664eSapersson Counter64 tcpHCInSegs; 12793173664eSapersson /* total # of segments sent { tcp 18 } */ 12803173664eSapersson Counter64 tcpHCOutSegs; 12817c478bd9Sstevel@tonic-gate } mib2_tcp_t; 12827c478bd9Sstevel@tonic-gate 12833173664eSapersson #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4 12843173664eSapersson #pragma pack() 12853173664eSapersson #endif 12863173664eSapersson 12877c478bd9Sstevel@tonic-gate /* 12887c478bd9Sstevel@tonic-gate * The TCP/IPv4 connection table {tcp 13} contains information about this 12897c478bd9Sstevel@tonic-gate * entity's existing TCP connections over IPv4. 12907c478bd9Sstevel@tonic-gate */ 12917c478bd9Sstevel@tonic-gate /* For tcpConnState and tcp6ConnState */ 12927c478bd9Sstevel@tonic-gate #define MIB2_TCP_closed 1 12937c478bd9Sstevel@tonic-gate #define MIB2_TCP_listen 2 12947c478bd9Sstevel@tonic-gate #define MIB2_TCP_synSent 3 12957c478bd9Sstevel@tonic-gate #define MIB2_TCP_synReceived 4 12967c478bd9Sstevel@tonic-gate #define MIB2_TCP_established 5 12977c478bd9Sstevel@tonic-gate #define MIB2_TCP_finWait1 6 12987c478bd9Sstevel@tonic-gate #define MIB2_TCP_finWait2 7 12997c478bd9Sstevel@tonic-gate #define MIB2_TCP_closeWait 8 13007c478bd9Sstevel@tonic-gate #define MIB2_TCP_lastAck 9 13017c478bd9Sstevel@tonic-gate #define MIB2_TCP_closing 10 13027c478bd9Sstevel@tonic-gate #define MIB2_TCP_timeWait 11 13037c478bd9Sstevel@tonic-gate #define MIB2_TCP_deleteTCB 12 /* only writeable value */ 13047c478bd9Sstevel@tonic-gate 13053173664eSapersson /* Pack data to make struct size the same for 32- and 64-bits */ 13063173664eSapersson #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4 13073173664eSapersson #pragma pack(4) 13083173664eSapersson #endif 13097c478bd9Sstevel@tonic-gate typedef struct mib2_tcpConnEntry { 13107c478bd9Sstevel@tonic-gate /* state of tcp connection { tcpConnEntry 1} RW */ 13117c478bd9Sstevel@tonic-gate int tcpConnState; 13127c478bd9Sstevel@tonic-gate /* local ip addr for this connection { tcpConnEntry 2 } */ 13137c478bd9Sstevel@tonic-gate IpAddress tcpConnLocalAddress; 13147c478bd9Sstevel@tonic-gate /* local port for this connection { tcpConnEntry 3 } */ 13157c478bd9Sstevel@tonic-gate int tcpConnLocalPort; /* In host byte order */ 13167c478bd9Sstevel@tonic-gate /* remote ip addr for this connection { tcpConnEntry 4 } */ 13177c478bd9Sstevel@tonic-gate IpAddress tcpConnRemAddress; 13187c478bd9Sstevel@tonic-gate /* remote port for this connection { tcpConnEntry 5 } */ 13197c478bd9Sstevel@tonic-gate int tcpConnRemPort; /* In host byte order */ 13207c478bd9Sstevel@tonic-gate struct tcpConnEntryInfo_s { 13217c478bd9Sstevel@tonic-gate /* seq # of next segment to send */ 13227c478bd9Sstevel@tonic-gate Gauge ce_snxt; 13237c478bd9Sstevel@tonic-gate /* seq # of of last segment unacknowledged */ 13247c478bd9Sstevel@tonic-gate Gauge ce_suna; 13257c478bd9Sstevel@tonic-gate /* currect send window size */ 13267c478bd9Sstevel@tonic-gate Gauge ce_swnd; 13277c478bd9Sstevel@tonic-gate /* seq # of next expected segment */ 13287c478bd9Sstevel@tonic-gate Gauge ce_rnxt; 13297c478bd9Sstevel@tonic-gate /* seq # of last ack'd segment */ 13307c478bd9Sstevel@tonic-gate Gauge ce_rack; 13317c478bd9Sstevel@tonic-gate /* currenct receive window size */ 13327c478bd9Sstevel@tonic-gate Gauge ce_rwnd; 13337c478bd9Sstevel@tonic-gate /* current rto (retransmit timeout) */ 13347c478bd9Sstevel@tonic-gate Gauge ce_rto; 13357c478bd9Sstevel@tonic-gate /* current max segment size */ 13367c478bd9Sstevel@tonic-gate Gauge ce_mss; 13377c478bd9Sstevel@tonic-gate /* actual internal state */ 13387c478bd9Sstevel@tonic-gate int ce_state; 13397c478bd9Sstevel@tonic-gate } tcpConnEntryInfo; 13403173664eSapersson 13413173664eSapersson /* pid of the processes that created this connection */ 13423173664eSapersson uint32_t tcpConnCreationProcess; 13433173664eSapersson /* system uptime when the connection was created */ 13443173664eSapersson uint64_t tcpConnCreationTime; 13457c478bd9Sstevel@tonic-gate } mib2_tcpConnEntry_t; 13463173664eSapersson #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4 13473173664eSapersson #pragma pack() 13483173664eSapersson #endif 13497c478bd9Sstevel@tonic-gate 13507c478bd9Sstevel@tonic-gate 13517c478bd9Sstevel@tonic-gate /* 13527c478bd9Sstevel@tonic-gate * The TCP/IPv6 connection table {tcp 14} contains information about this 13537c478bd9Sstevel@tonic-gate * entity's existing TCP connections over IPv6. 13547c478bd9Sstevel@tonic-gate */ 13557c478bd9Sstevel@tonic-gate 13563173664eSapersson /* Pack data to make struct size the same for 32- and 64-bits */ 13573173664eSapersson #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4 13583173664eSapersson #pragma pack(4) 13593173664eSapersson #endif 13607c478bd9Sstevel@tonic-gate typedef struct mib2_tcp6ConnEntry { 13617c478bd9Sstevel@tonic-gate /* local ip addr for this connection { ipv6TcpConnEntry 1 } */ 13627c478bd9Sstevel@tonic-gate Ip6Address tcp6ConnLocalAddress; 13637c478bd9Sstevel@tonic-gate /* local port for this connection { ipv6TcpConnEntry 2 } */ 13647c478bd9Sstevel@tonic-gate int tcp6ConnLocalPort; 13657c478bd9Sstevel@tonic-gate /* remote ip addr for this connection { ipv6TcpConnEntry 3 } */ 13667c478bd9Sstevel@tonic-gate Ip6Address tcp6ConnRemAddress; 13677c478bd9Sstevel@tonic-gate /* remote port for this connection { ipv6TcpConnEntry 4 } */ 13687c478bd9Sstevel@tonic-gate int tcp6ConnRemPort; 13697c478bd9Sstevel@tonic-gate /* interface index or zero { ipv6TcpConnEntry 5 } */ 13707c478bd9Sstevel@tonic-gate DeviceIndex tcp6ConnIfIndex; 13717c478bd9Sstevel@tonic-gate /* state of tcp6 connection { ipv6TcpConnEntry 6 } RW */ 13727c478bd9Sstevel@tonic-gate int tcp6ConnState; 13737c478bd9Sstevel@tonic-gate struct tcp6ConnEntryInfo_s { 13747c478bd9Sstevel@tonic-gate /* seq # of next segment to send */ 13757c478bd9Sstevel@tonic-gate Gauge ce_snxt; 13767c478bd9Sstevel@tonic-gate /* seq # of of last segment unacknowledged */ 13777c478bd9Sstevel@tonic-gate Gauge ce_suna; 13787c478bd9Sstevel@tonic-gate /* currect send window size */ 13797c478bd9Sstevel@tonic-gate Gauge ce_swnd; 13807c478bd9Sstevel@tonic-gate /* seq # of next expected segment */ 13817c478bd9Sstevel@tonic-gate Gauge ce_rnxt; 13827c478bd9Sstevel@tonic-gate /* seq # of last ack'd segment */ 13837c478bd9Sstevel@tonic-gate Gauge ce_rack; 13847c478bd9Sstevel@tonic-gate /* currenct receive window size */ 13857c478bd9Sstevel@tonic-gate Gauge ce_rwnd; 13867c478bd9Sstevel@tonic-gate /* current rto (retransmit timeout) */ 13877c478bd9Sstevel@tonic-gate Gauge ce_rto; 13887c478bd9Sstevel@tonic-gate /* current max segment size */ 13897c478bd9Sstevel@tonic-gate Gauge ce_mss; 13907c478bd9Sstevel@tonic-gate /* actual internal state */ 13917c478bd9Sstevel@tonic-gate int ce_state; 13927c478bd9Sstevel@tonic-gate } tcp6ConnEntryInfo; 13933173664eSapersson 13943173664eSapersson /* pid of the processes that created this connection */ 13953173664eSapersson uint32_t tcp6ConnCreationProcess; 13963173664eSapersson /* system uptime when the connection was created */ 13973173664eSapersson uint64_t tcp6ConnCreationTime; 13987c478bd9Sstevel@tonic-gate } mib2_tcp6ConnEntry_t; 13993173664eSapersson #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4 14003173664eSapersson #pragma pack() 14013173664eSapersson #endif 14027c478bd9Sstevel@tonic-gate 14037c478bd9Sstevel@tonic-gate /* 14047c478bd9Sstevel@tonic-gate * the UDP group 14057c478bd9Sstevel@tonic-gate */ 14067c478bd9Sstevel@tonic-gate #define MIB2_UDP_ENTRY 5 /* udpEntry */ 14077c478bd9Sstevel@tonic-gate #define MIB2_UDP6_ENTRY 6 /* udp6Entry */ 14087c478bd9Sstevel@tonic-gate 14097c478bd9Sstevel@tonic-gate /* Old name retained for compatibility */ 14107c478bd9Sstevel@tonic-gate #define MIB2_UDP_5 MIB2_UDP_ENTRY 14117c478bd9Sstevel@tonic-gate 14123173664eSapersson /* Pack data to make struct size the same for 32- and 64-bits */ 14133173664eSapersson #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4 14143173664eSapersson #pragma pack(4) 14153173664eSapersson #endif 14167c478bd9Sstevel@tonic-gate typedef struct mib2_udp { 14177c478bd9Sstevel@tonic-gate /* total # of UDP datagrams sent upstream { udp 1 } */ 14187c478bd9Sstevel@tonic-gate Counter udpInDatagrams; 14197c478bd9Sstevel@tonic-gate /* in ip { udp 2 } */ 14207c478bd9Sstevel@tonic-gate /* # of recv'd dg's not deliverable (other) { udp 3 } */ 14217c478bd9Sstevel@tonic-gate Counter udpInErrors; 14227c478bd9Sstevel@tonic-gate /* total # of dg's sent { udp 4 } */ 14237c478bd9Sstevel@tonic-gate Counter udpOutDatagrams; 14247c478bd9Sstevel@tonic-gate /* { udp 5 } */ 14257c478bd9Sstevel@tonic-gate int udpEntrySize; /* Size of udpEntry_t */ 14267c478bd9Sstevel@tonic-gate int udp6EntrySize; /* Size of udp6Entry_t */ 14277c478bd9Sstevel@tonic-gate Counter udpOutErrors; 14283173664eSapersson 14293173664eSapersson /* 14303173664eSapersson * fields from RFC 4113 14313173664eSapersson */ 14323173664eSapersson 14333173664eSapersson /* total # of UDP datagrams sent upstream { udp 8 } */ 14343173664eSapersson Counter64 udpHCInDatagrams; 14353173664eSapersson /* total # of dg's sent { udp 9 } */ 14363173664eSapersson Counter64 udpHCOutDatagrams; 14377c478bd9Sstevel@tonic-gate } mib2_udp_t; 14383173664eSapersson #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4 14393173664eSapersson #pragma pack() 14403173664eSapersson #endif 14417c478bd9Sstevel@tonic-gate 14427c478bd9Sstevel@tonic-gate /* 14437c478bd9Sstevel@tonic-gate * The UDP listener table contains information about this entity's UDP 14447c478bd9Sstevel@tonic-gate * end-points on which a local application is currently accepting datagrams. 14457c478bd9Sstevel@tonic-gate */ 14467c478bd9Sstevel@tonic-gate 14477c478bd9Sstevel@tonic-gate /* For both IPv4 and IPv6 ue_state: */ 14487c478bd9Sstevel@tonic-gate #define MIB2_UDP_unbound 1 14497c478bd9Sstevel@tonic-gate #define MIB2_UDP_idle 2 14507c478bd9Sstevel@tonic-gate #define MIB2_UDP_connected 3 14517c478bd9Sstevel@tonic-gate #define MIB2_UDP_unknown 4 14527c478bd9Sstevel@tonic-gate 14533173664eSapersson /* Pack data to make struct size the same for 32- and 64-bits */ 14543173664eSapersson #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4 14553173664eSapersson #pragma pack(4) 14563173664eSapersson #endif 14577c478bd9Sstevel@tonic-gate typedef struct mib2_udpEntry { 14587c478bd9Sstevel@tonic-gate /* local ip addr of listener { udpEntry 1 } */ 14597c478bd9Sstevel@tonic-gate IpAddress udpLocalAddress; 14607c478bd9Sstevel@tonic-gate /* local port of listener { udpEntry 2 } */ 14617c478bd9Sstevel@tonic-gate int udpLocalPort; /* In host byte order */ 14627c478bd9Sstevel@tonic-gate struct udpEntryInfo_s { 14637c478bd9Sstevel@tonic-gate int ue_state; 14647c478bd9Sstevel@tonic-gate IpAddress ue_RemoteAddress; 14657c478bd9Sstevel@tonic-gate int ue_RemotePort; /* In host byte order */ 14667c478bd9Sstevel@tonic-gate } udpEntryInfo; 14673173664eSapersson 14683173664eSapersson /* 14693173664eSapersson * RFC 4113 14703173664eSapersson */ 14713173664eSapersson 14723173664eSapersson /* Unique id for this 4-tuple { udpEndpointEntry 7 } */ 14733173664eSapersson uint32_t udpInstance; 14743173664eSapersson /* pid of the processes that created this endpoint */ 14753173664eSapersson uint32_t udpCreationProcess; 14763173664eSapersson /* system uptime when the endpoint was created */ 14773173664eSapersson uint64_t udpCreationTime; 14787c478bd9Sstevel@tonic-gate } mib2_udpEntry_t; 14793173664eSapersson #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4 14803173664eSapersson #pragma pack() 14813173664eSapersson #endif 14827c478bd9Sstevel@tonic-gate 14837c478bd9Sstevel@tonic-gate /* 14847c478bd9Sstevel@tonic-gate * The UDP (for IPv6) listener table contains information about this 14857c478bd9Sstevel@tonic-gate * entity's UDP end-points on which a local application is 14867c478bd9Sstevel@tonic-gate * currently accepting datagrams. 14877c478bd9Sstevel@tonic-gate */ 14887c478bd9Sstevel@tonic-gate 14893173664eSapersson /* Pack data to make struct size the same for 32- and 64-bits */ 14903173664eSapersson #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4 14913173664eSapersson #pragma pack(4) 14923173664eSapersson #endif 14937c478bd9Sstevel@tonic-gate typedef struct mib2_udp6Entry { 14947c478bd9Sstevel@tonic-gate /* local ip addr of listener { ipv6UdpEntry 1 } */ 14957c478bd9Sstevel@tonic-gate Ip6Address udp6LocalAddress; 14967c478bd9Sstevel@tonic-gate /* local port of listener { ipv6UdpEntry 2 } */ 14977c478bd9Sstevel@tonic-gate int udp6LocalPort; /* In host byte order */ 14987c478bd9Sstevel@tonic-gate /* interface index or zero { ipv6UdpEntry 3 } */ 14997c478bd9Sstevel@tonic-gate DeviceIndex udp6IfIndex; 15007c478bd9Sstevel@tonic-gate struct udp6EntryInfo_s { 15017c478bd9Sstevel@tonic-gate int ue_state; 15027c478bd9Sstevel@tonic-gate Ip6Address ue_RemoteAddress; 15037c478bd9Sstevel@tonic-gate int ue_RemotePort; /* In host byte order */ 15047c478bd9Sstevel@tonic-gate } udp6EntryInfo; 15053173664eSapersson 15063173664eSapersson /* 15073173664eSapersson * RFC 4113 15083173664eSapersson */ 15093173664eSapersson 15103173664eSapersson /* Unique id for this 4-tuple { udpEndpointEntry 7 } */ 15113173664eSapersson uint32_t udp6Instance; 15123173664eSapersson /* pid of the processes that created this endpoint */ 15133173664eSapersson uint32_t udp6CreationProcess; 15143173664eSapersson /* system uptime when the endpoint was created */ 15153173664eSapersson uint64_t udp6CreationTime; 15167c478bd9Sstevel@tonic-gate } mib2_udp6Entry_t; 15173173664eSapersson #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4 15183173664eSapersson #pragma pack() 15193173664eSapersson #endif 15207c478bd9Sstevel@tonic-gate 15217c478bd9Sstevel@tonic-gate /* 15227c478bd9Sstevel@tonic-gate * the RAWIP group 15237c478bd9Sstevel@tonic-gate */ 15247c478bd9Sstevel@tonic-gate typedef struct mib2_rawip { 15257c478bd9Sstevel@tonic-gate /* total # of RAWIP datagrams sent upstream */ 15267c478bd9Sstevel@tonic-gate Counter rawipInDatagrams; 15277c478bd9Sstevel@tonic-gate /* # of RAWIP packets with bad IPV6_CHECKSUM checksums */ 15287c478bd9Sstevel@tonic-gate Counter rawipInCksumErrs; 15297c478bd9Sstevel@tonic-gate /* # of recv'd dg's not deliverable (other) */ 15307c478bd9Sstevel@tonic-gate Counter rawipInErrors; 15317c478bd9Sstevel@tonic-gate /* total # of dg's sent */ 15327c478bd9Sstevel@tonic-gate Counter rawipOutDatagrams; 15337c478bd9Sstevel@tonic-gate /* total # of dg's not sent (e.g. no memory) */ 15347c478bd9Sstevel@tonic-gate Counter rawipOutErrors; 15357c478bd9Sstevel@tonic-gate } mib2_rawip_t; 15367c478bd9Sstevel@tonic-gate 15377c478bd9Sstevel@tonic-gate /* DVMRP group */ 15387c478bd9Sstevel@tonic-gate #define EXPER_DVMRP_VIF 1 15397c478bd9Sstevel@tonic-gate #define EXPER_DVMRP_MRT 2 15407c478bd9Sstevel@tonic-gate 15417c478bd9Sstevel@tonic-gate 15427c478bd9Sstevel@tonic-gate /* 15437c478bd9Sstevel@tonic-gate * The SCTP group 15447c478bd9Sstevel@tonic-gate */ 15457c478bd9Sstevel@tonic-gate #define MIB2_SCTP_CONN 15 15467c478bd9Sstevel@tonic-gate #define MIB2_SCTP_CONN_LOCAL 16 15477c478bd9Sstevel@tonic-gate #define MIB2_SCTP_CONN_REMOTE 17 15487c478bd9Sstevel@tonic-gate 15497c478bd9Sstevel@tonic-gate #define MIB2_SCTP_closed 1 15507c478bd9Sstevel@tonic-gate #define MIB2_SCTP_cookieWait 2 15517c478bd9Sstevel@tonic-gate #define MIB2_SCTP_cookieEchoed 3 15527c478bd9Sstevel@tonic-gate #define MIB2_SCTP_established 4 15537c478bd9Sstevel@tonic-gate #define MIB2_SCTP_shutdownPending 5 15547c478bd9Sstevel@tonic-gate #define MIB2_SCTP_shutdownSent 6 15557c478bd9Sstevel@tonic-gate #define MIB2_SCTP_shutdownReceived 7 15567c478bd9Sstevel@tonic-gate #define MIB2_SCTP_shutdownAckSent 8 15577c478bd9Sstevel@tonic-gate #define MIB2_SCTP_deleteTCB 9 15587c478bd9Sstevel@tonic-gate #define MIB2_SCTP_listen 10 /* Not in the MIB */ 15597c478bd9Sstevel@tonic-gate 15607c478bd9Sstevel@tonic-gate #define MIB2_SCTP_ACTIVE 1 15617c478bd9Sstevel@tonic-gate #define MIB2_SCTP_INACTIVE 2 15627c478bd9Sstevel@tonic-gate 15637c478bd9Sstevel@tonic-gate #define MIB2_SCTP_ADDR_V4 1 15647c478bd9Sstevel@tonic-gate #define MIB2_SCTP_ADDR_V6 2 15657c478bd9Sstevel@tonic-gate 15667c478bd9Sstevel@tonic-gate #define MIB2_SCTP_RTOALGO_OTHER 1 15677c478bd9Sstevel@tonic-gate #define MIB2_SCTP_RTOALGO_VANJ 2 15687c478bd9Sstevel@tonic-gate 15697c478bd9Sstevel@tonic-gate typedef struct mib2_sctpConnEntry { 15707c478bd9Sstevel@tonic-gate /* connection identifier { sctpAssocEntry 1 } */ 15717c478bd9Sstevel@tonic-gate uint32_t sctpAssocId; 15727c478bd9Sstevel@tonic-gate /* remote hostname (not used) { sctpAssocEntry 2 } */ 15737c478bd9Sstevel@tonic-gate Octet_t sctpAssocRemHostName; 15747c478bd9Sstevel@tonic-gate /* local port number { sctpAssocEntry 3 } */ 15757c478bd9Sstevel@tonic-gate uint32_t sctpAssocLocalPort; 15767c478bd9Sstevel@tonic-gate /* remote port number { sctpAssocEntry 4 } */ 15777c478bd9Sstevel@tonic-gate uint32_t sctpAssocRemPort; 15787c478bd9Sstevel@tonic-gate /* type of primary remote addr { sctpAssocEntry 5 } */ 15797c478bd9Sstevel@tonic-gate int sctpAssocRemPrimAddrType; 15807c478bd9Sstevel@tonic-gate /* primary remote address { sctpAssocEntry 6 } */ 15817c478bd9Sstevel@tonic-gate Ip6Address sctpAssocRemPrimAddr; 15827c478bd9Sstevel@tonic-gate /* local address */ 15837c478bd9Sstevel@tonic-gate Ip6Address sctpAssocLocPrimAddr; 15847c478bd9Sstevel@tonic-gate /* current heartbeat interval { sctpAssocEntry 7 } */ 15857c478bd9Sstevel@tonic-gate uint32_t sctpAssocHeartBeatInterval; 15867c478bd9Sstevel@tonic-gate /* state of this association { sctpAssocEntry 8 } */ 15877c478bd9Sstevel@tonic-gate int sctpAssocState; 15887c478bd9Sstevel@tonic-gate /* # of inbound streams { sctpAssocEntry 9 } */ 15897c478bd9Sstevel@tonic-gate uint32_t sctpAssocInStreams; 15907c478bd9Sstevel@tonic-gate /* # of outbound streams { sctpAssocEntry 10 } */ 15917c478bd9Sstevel@tonic-gate uint32_t sctpAssocOutStreams; 15927c478bd9Sstevel@tonic-gate /* max # of data retans { sctpAssocEntry 11 } */ 15937c478bd9Sstevel@tonic-gate uint32_t sctpAssocMaxRetr; 15947c478bd9Sstevel@tonic-gate /* sysId for assoc owner { sctpAssocEntry 12 } */ 15957c478bd9Sstevel@tonic-gate uint32_t sctpAssocPrimProcess; 15967c478bd9Sstevel@tonic-gate /* # of rxmit timeouts during hanshake */ 15977c478bd9Sstevel@tonic-gate Counter32 sctpAssocT1expired; /* { sctpAssocEntry 13 } */ 15987c478bd9Sstevel@tonic-gate /* # of rxmit timeouts during shutdown */ 15997c478bd9Sstevel@tonic-gate Counter32 sctpAssocT2expired; /* { sctpAssocEntry 14 } */ 16007c478bd9Sstevel@tonic-gate /* # of rxmit timeouts during data transfer */ 16017c478bd9Sstevel@tonic-gate Counter32 sctpAssocRtxChunks; /* { sctpAssocEntry 15 } */ 16027c478bd9Sstevel@tonic-gate /* assoc start-up time { sctpAssocEntry 16 } */ 16037c478bd9Sstevel@tonic-gate uint32_t sctpAssocStartTime; 16047c478bd9Sstevel@tonic-gate struct sctpConnEntryInfo_s { 16057c478bd9Sstevel@tonic-gate /* amount of data in send Q */ 16067c478bd9Sstevel@tonic-gate Gauge ce_sendq; 16077c478bd9Sstevel@tonic-gate /* amount of data in recv Q */ 16087c478bd9Sstevel@tonic-gate Gauge ce_recvq; 16097c478bd9Sstevel@tonic-gate /* currect send window size */ 16107c478bd9Sstevel@tonic-gate Gauge ce_swnd; 16117c478bd9Sstevel@tonic-gate /* currenct receive window size */ 16127c478bd9Sstevel@tonic-gate Gauge ce_rwnd; 16137c478bd9Sstevel@tonic-gate /* current max segment size */ 16147c478bd9Sstevel@tonic-gate Gauge ce_mss; 16157c478bd9Sstevel@tonic-gate } sctpConnEntryInfo; 16167c478bd9Sstevel@tonic-gate } mib2_sctpConnEntry_t; 16177c478bd9Sstevel@tonic-gate 16187c478bd9Sstevel@tonic-gate typedef struct mib2_sctpConnLocalAddrEntry { 16197c478bd9Sstevel@tonic-gate /* connection identifier */ 16207c478bd9Sstevel@tonic-gate uint32_t sctpAssocId; 16217c478bd9Sstevel@tonic-gate /* type of local addr { sctpAssocLocalEntry 1 } */ 16227c478bd9Sstevel@tonic-gate int sctpAssocLocalAddrType; 16237c478bd9Sstevel@tonic-gate /* local address { sctpAssocLocalEntry 2 } */ 16247c478bd9Sstevel@tonic-gate Ip6Address sctpAssocLocalAddr; 16257c478bd9Sstevel@tonic-gate } mib2_sctpConnLocalEntry_t; 16267c478bd9Sstevel@tonic-gate 16277c478bd9Sstevel@tonic-gate typedef struct mib2_sctpConnRemoteAddrEntry { 16287c478bd9Sstevel@tonic-gate /* connection identier */ 16297c478bd9Sstevel@tonic-gate uint32_t sctpAssocId; 16307c478bd9Sstevel@tonic-gate /* remote addr type { sctpAssocRemEntry 1 } */ 16317c478bd9Sstevel@tonic-gate int sctpAssocRemAddrType; 16327c478bd9Sstevel@tonic-gate /* remote address { sctpAssocRemEntry 2 } */ 16337c478bd9Sstevel@tonic-gate Ip6Address sctpAssocRemAddr; 16347c478bd9Sstevel@tonic-gate /* is the address active { sctpAssocRemEntry 3 } */ 16357c478bd9Sstevel@tonic-gate int sctpAssocRemAddrActive; 16367c478bd9Sstevel@tonic-gate /* whether hearbeat is active { sctpAssocRemEntry 4 } */ 16377c478bd9Sstevel@tonic-gate int sctpAssocRemAddrHBActive; 16387c478bd9Sstevel@tonic-gate /* current RTO { sctpAssocRemEntry 5 } */ 16397c478bd9Sstevel@tonic-gate uint32_t sctpAssocRemAddrRTO; 16407c478bd9Sstevel@tonic-gate /* max # of rexmits before becoming inactive */ 16417c478bd9Sstevel@tonic-gate uint32_t sctpAssocRemAddrMaxPathRtx; /* {sctpAssocRemEntry 6} */ 16427c478bd9Sstevel@tonic-gate /* # of rexmits to this dest { sctpAssocRemEntry 7 } */ 16437c478bd9Sstevel@tonic-gate uint32_t sctpAssocRemAddrRtx; 16447c478bd9Sstevel@tonic-gate } mib2_sctpConnRemoteEntry_t; 16457c478bd9Sstevel@tonic-gate 16467c478bd9Sstevel@tonic-gate 16477c478bd9Sstevel@tonic-gate 16487c478bd9Sstevel@tonic-gate /* Pack data in mib2_sctp to make struct size the same for 32- and 64-bits */ 16497c478bd9Sstevel@tonic-gate #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4 16507c478bd9Sstevel@tonic-gate #pragma pack(4) 16517c478bd9Sstevel@tonic-gate #endif 16527c478bd9Sstevel@tonic-gate 16537c478bd9Sstevel@tonic-gate typedef struct mib2_sctp { 16547c478bd9Sstevel@tonic-gate /* algorithm used to determine rto { sctpParams 1 } */ 16557c478bd9Sstevel@tonic-gate int sctpRtoAlgorithm; 16567c478bd9Sstevel@tonic-gate /* min RTO in msecs { sctpParams 2 } */ 16577c478bd9Sstevel@tonic-gate uint32_t sctpRtoMin; 16587c478bd9Sstevel@tonic-gate /* max RTO in msecs { sctpParams 3 } */ 16597c478bd9Sstevel@tonic-gate uint32_t sctpRtoMax; 16607c478bd9Sstevel@tonic-gate /* initial RTO in msecs { sctpParams 4 } */ 16617c478bd9Sstevel@tonic-gate uint32_t sctpRtoInitial; 16627c478bd9Sstevel@tonic-gate /* max # of assocs { sctpParams 5 } */ 16637c478bd9Sstevel@tonic-gate int32_t sctpMaxAssocs; 16647c478bd9Sstevel@tonic-gate /* cookie lifetime in msecs { sctpParams 6 } */ 16657c478bd9Sstevel@tonic-gate uint32_t sctpValCookieLife; 16667c478bd9Sstevel@tonic-gate /* max # of retrans in startup { sctpParams 7 } */ 16677c478bd9Sstevel@tonic-gate uint32_t sctpMaxInitRetr; 16687c478bd9Sstevel@tonic-gate /* # of conns ESTABLISHED, SHUTDOWN-RECEIVED or SHUTDOWN-PENDING */ 16697c478bd9Sstevel@tonic-gate Counter32 sctpCurrEstab; /* { sctpStats 1 } */ 16707c478bd9Sstevel@tonic-gate /* # of active opens { sctpStats 2 } */ 16717c478bd9Sstevel@tonic-gate Counter32 sctpActiveEstab; 16727c478bd9Sstevel@tonic-gate /* # of passive opens { sctpStats 3 } */ 16737c478bd9Sstevel@tonic-gate Counter32 sctpPassiveEstab; 16747c478bd9Sstevel@tonic-gate /* # of aborted conns { sctpStats 4 } */ 16757c478bd9Sstevel@tonic-gate Counter32 sctpAborted; 16767c478bd9Sstevel@tonic-gate /* # of graceful shutdowns { sctpStats 5 } */ 16777c478bd9Sstevel@tonic-gate Counter32 sctpShutdowns; 16787c478bd9Sstevel@tonic-gate /* # of OOB packets { sctpStats 6 } */ 16797c478bd9Sstevel@tonic-gate Counter32 sctpOutOfBlue; 16807c478bd9Sstevel@tonic-gate /* # of packets discarded due to cksum { sctpStats 7 } */ 16817c478bd9Sstevel@tonic-gate Counter32 sctpChecksumError; 16827c478bd9Sstevel@tonic-gate /* # of control chunks sent { sctpStats 8 } */ 16837c478bd9Sstevel@tonic-gate Counter64 sctpOutCtrlChunks; 16847c478bd9Sstevel@tonic-gate /* # of ordered data chunks sent { sctpStats 9 } */ 16857c478bd9Sstevel@tonic-gate Counter64 sctpOutOrderChunks; 16867c478bd9Sstevel@tonic-gate /* # of unordered data chunks sent { sctpStats 10 } */ 16877c478bd9Sstevel@tonic-gate Counter64 sctpOutUnorderChunks; 16887c478bd9Sstevel@tonic-gate /* # of retransmitted data chunks */ 16897c478bd9Sstevel@tonic-gate Counter64 sctpRetransChunks; 16907c478bd9Sstevel@tonic-gate /* # of SACK chunks sent */ 16917c478bd9Sstevel@tonic-gate Counter sctpOutAck; 16927c478bd9Sstevel@tonic-gate /* # of delayed ACK timeouts */ 16937c478bd9Sstevel@tonic-gate Counter sctpOutAckDelayed; 16947c478bd9Sstevel@tonic-gate /* # of SACK chunks sent to update window */ 16957c478bd9Sstevel@tonic-gate Counter sctpOutWinUpdate; 16967c478bd9Sstevel@tonic-gate /* # of fast retransmits */ 16977c478bd9Sstevel@tonic-gate Counter sctpOutFastRetrans; 16987c478bd9Sstevel@tonic-gate /* # of window probes sent */ 16997c478bd9Sstevel@tonic-gate Counter sctpOutWinProbe; 17007c478bd9Sstevel@tonic-gate /* # of control chunks received { sctpStats 11 } */ 17017c478bd9Sstevel@tonic-gate Counter64 sctpInCtrlChunks; 17027c478bd9Sstevel@tonic-gate /* # of ordered data chunks rcvd { sctpStats 12 } */ 17037c478bd9Sstevel@tonic-gate Counter64 sctpInOrderChunks; 17047c478bd9Sstevel@tonic-gate /* # of unord data chunks rcvd { sctpStats 13 } */ 17057c478bd9Sstevel@tonic-gate Counter64 sctpInUnorderChunks; 17067c478bd9Sstevel@tonic-gate /* # of received SACK chunks */ 17077c478bd9Sstevel@tonic-gate Counter sctpInAck; 17087c478bd9Sstevel@tonic-gate /* # of received SACK chunks with duplicate TSN */ 17097c478bd9Sstevel@tonic-gate Counter sctpInDupAck; 17107c478bd9Sstevel@tonic-gate /* # of SACK chunks acking unsent data */ 17117c478bd9Sstevel@tonic-gate Counter sctpInAckUnsent; 17127c478bd9Sstevel@tonic-gate /* # of Fragmented User Messages { sctpStats 14 } */ 17137c478bd9Sstevel@tonic-gate Counter64 sctpFragUsrMsgs; 17147c478bd9Sstevel@tonic-gate /* # of Reassembled User Messages { sctpStats 15 } */ 17157c478bd9Sstevel@tonic-gate Counter64 sctpReasmUsrMsgs; 17167c478bd9Sstevel@tonic-gate /* # of Sent SCTP Packets { sctpStats 16 } */ 17177c478bd9Sstevel@tonic-gate Counter64 sctpOutSCTPPkts; 17187c478bd9Sstevel@tonic-gate /* # of Received SCTP Packets { sctpStats 17 } */ 17197c478bd9Sstevel@tonic-gate Counter64 sctpInSCTPPkts; 17207c478bd9Sstevel@tonic-gate /* # of invalid cookies received */ 17217c478bd9Sstevel@tonic-gate Counter sctpInInvalidCookie; 17227c478bd9Sstevel@tonic-gate /* total # of retransmit timeouts */ 17237c478bd9Sstevel@tonic-gate Counter sctpTimRetrans; 17247c478bd9Sstevel@tonic-gate /* total # of retransmit timeouts dropping the connection */ 17257c478bd9Sstevel@tonic-gate Counter sctpTimRetransDrop; 17267c478bd9Sstevel@tonic-gate /* total # of heartbeat probes */ 17277c478bd9Sstevel@tonic-gate Counter sctpTimHeartBeatProbe; 17287c478bd9Sstevel@tonic-gate /* total # of heartbeat timeouts dropping the connection */ 17297c478bd9Sstevel@tonic-gate Counter sctpTimHeartBeatDrop; 17307c478bd9Sstevel@tonic-gate /* total # of conns refused due to backlog full on listen */ 17317c478bd9Sstevel@tonic-gate Counter sctpListenDrop; 17327c478bd9Sstevel@tonic-gate /* total # of pkts received after the association has closed */ 17337c478bd9Sstevel@tonic-gate Counter sctpInClosed; 17347c478bd9Sstevel@tonic-gate int sctpEntrySize; 17357c478bd9Sstevel@tonic-gate int sctpLocalEntrySize; 17367c478bd9Sstevel@tonic-gate int sctpRemoteEntrySize; 17377c478bd9Sstevel@tonic-gate } mib2_sctp_t; 17387c478bd9Sstevel@tonic-gate 17397c478bd9Sstevel@tonic-gate #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4 17407c478bd9Sstevel@tonic-gate #pragma pack() 17417c478bd9Sstevel@tonic-gate #endif 17427c478bd9Sstevel@tonic-gate 17437c478bd9Sstevel@tonic-gate 17447c478bd9Sstevel@tonic-gate #ifdef __cplusplus 17457c478bd9Sstevel@tonic-gate } 17467c478bd9Sstevel@tonic-gate #endif 17477c478bd9Sstevel@tonic-gate 17487c478bd9Sstevel@tonic-gate #endif /* _INET_MIB2_H */ 1749