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 5*45916cd2Sjpk * Common Development and Distribution License (the "License"). 6*45916cd2Sjpk * 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 207c478bd9Sstevel@tonic-gate */ 217c478bd9Sstevel@tonic-gate /* 22*45916cd2Sjpk * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate * Use is subject to license terms. 247c478bd9Sstevel@tonic-gate */ 257c478bd9Sstevel@tonic-gate /* Copyright (c) 1990 Mentat Inc. */ 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gate #ifndef _INET_MIB2_H 287c478bd9Sstevel@tonic-gate #define _INET_MIB2_H 297c478bd9Sstevel@tonic-gate 307c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gate #include <netinet/in.h> /* For in6_addr_t */ 33*45916cd2Sjpk #include <sys/tsol/label.h> /* For brange_t */ 34*45916cd2Sjpk #include <sys/tsol/label_macro.h> /* For brange_t */ 357c478bd9Sstevel@tonic-gate 367c478bd9Sstevel@tonic-gate #ifdef __cplusplus 377c478bd9Sstevel@tonic-gate extern "C" { 387c478bd9Sstevel@tonic-gate #endif 397c478bd9Sstevel@tonic-gate 407c478bd9Sstevel@tonic-gate /* 417c478bd9Sstevel@tonic-gate * The IPv6 parts of this are derived from: 427c478bd9Sstevel@tonic-gate * RFC 2465 437c478bd9Sstevel@tonic-gate * RFC 2466 447c478bd9Sstevel@tonic-gate * RFC 2452 457c478bd9Sstevel@tonic-gate * RFC 2454 467c478bd9Sstevel@tonic-gate */ 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gate /* 497c478bd9Sstevel@tonic-gate * SNMP set/get via M_PROTO T_OPTMGMT_REQ. Structure is that used 507c478bd9Sstevel@tonic-gate * for [gs]etsockopt() calls. get uses T_CURRENT, set uses T_NEOGTIATE 517c478bd9Sstevel@tonic-gate * MGMT_flags value. The following definition of opthdr is taken from 527c478bd9Sstevel@tonic-gate * socket.h: 537c478bd9Sstevel@tonic-gate * 547c478bd9Sstevel@tonic-gate * An option specification consists of an opthdr, followed by the value of 557c478bd9Sstevel@tonic-gate * the option. An options buffer contains one or more options. The len 567c478bd9Sstevel@tonic-gate * field of opthdr specifies the length of the option value in bytes. This 577c478bd9Sstevel@tonic-gate * length must be a multiple of sizeof(long) (use OPTLEN macro). 587c478bd9Sstevel@tonic-gate * 597c478bd9Sstevel@tonic-gate * struct opthdr { 607c478bd9Sstevel@tonic-gate * long level; protocol level affected 617c478bd9Sstevel@tonic-gate * long name; option to modify 627c478bd9Sstevel@tonic-gate * long len; length of option value 637c478bd9Sstevel@tonic-gate * }; 647c478bd9Sstevel@tonic-gate * 657c478bd9Sstevel@tonic-gate * #define OPTLEN(x) ((((x) + sizeof(long) - 1) / sizeof(long)) * sizeof(long)) 667c478bd9Sstevel@tonic-gate * #define OPTVAL(opt) ((char *)(opt + 1)) 677c478bd9Sstevel@tonic-gate * 687c478bd9Sstevel@tonic-gate * For get requests (T_NEGOTIATE), any MIB2_xxx value can be used (only 697c478bd9Sstevel@tonic-gate * "get all" is supported, so all modules get a copy of the request to 707c478bd9Sstevel@tonic-gate * return everything it knows. Recommend: Use MIB2_IP 717c478bd9Sstevel@tonic-gate * 727c478bd9Sstevel@tonic-gate * IMPORTANT: some fields are grouped in a different structure than 737c478bd9Sstevel@tonic-gate * suggested by MIB-II, e.g., checksum error counts. The original MIB-2 747c478bd9Sstevel@tonic-gate * field name has been retained. Field names beginning with "mi" are not 757c478bd9Sstevel@tonic-gate * defined in the MIB but contain important & useful information maintained 767c478bd9Sstevel@tonic-gate * by the corresponding module. 777c478bd9Sstevel@tonic-gate */ 787c478bd9Sstevel@tonic-gate #ifndef IPPROTO_MAX 797c478bd9Sstevel@tonic-gate #define IPPROTO_MAX 256 807c478bd9Sstevel@tonic-gate #endif 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gate 837c478bd9Sstevel@tonic-gate #define MIB2_SYSTEM (IPPROTO_MAX+1) 847c478bd9Sstevel@tonic-gate #define MIB2_INTERFACES (IPPROTO_MAX+2) 857c478bd9Sstevel@tonic-gate #define MIB2_AT (IPPROTO_MAX+3) 867c478bd9Sstevel@tonic-gate #define MIB2_IP (IPPROTO_MAX+4) 877c478bd9Sstevel@tonic-gate #define MIB2_ICMP (IPPROTO_MAX+5) 887c478bd9Sstevel@tonic-gate #define MIB2_TCP (IPPROTO_MAX+6) 897c478bd9Sstevel@tonic-gate #define MIB2_UDP (IPPROTO_MAX+7) 907c478bd9Sstevel@tonic-gate #define MIB2_EGP (IPPROTO_MAX+8) 917c478bd9Sstevel@tonic-gate #define MIB2_CMOT (IPPROTO_MAX+9) 927c478bd9Sstevel@tonic-gate #define MIB2_TRANSMISSION (IPPROTO_MAX+10) 937c478bd9Sstevel@tonic-gate #define MIB2_SNMP (IPPROTO_MAX+11) 947c478bd9Sstevel@tonic-gate #define MIB2_IP6 (IPPROTO_MAX+12) 957c478bd9Sstevel@tonic-gate #define MIB2_ICMP6 (IPPROTO_MAX+13) 967c478bd9Sstevel@tonic-gate #define MIB2_TCP6 (IPPROTO_MAX+14) 977c478bd9Sstevel@tonic-gate #define MIB2_UDP6 (IPPROTO_MAX+15) 987c478bd9Sstevel@tonic-gate #define MIB2_SCTP (IPPROTO_MAX+16) 997c478bd9Sstevel@tonic-gate 1007c478bd9Sstevel@tonic-gate /* 1017c478bd9Sstevel@tonic-gate * Define range of levels for use with MIB2_* 1027c478bd9Sstevel@tonic-gate */ 1037c478bd9Sstevel@tonic-gate #define MIB2_RANGE_START (IPPROTO_MAX+1) 1047c478bd9Sstevel@tonic-gate #define MIB2_RANGE_END (IPPROTO_MAX+16) 1057c478bd9Sstevel@tonic-gate 1067c478bd9Sstevel@tonic-gate 1077c478bd9Sstevel@tonic-gate #define EXPER 1024 /* experimental - not part of mib */ 1087c478bd9Sstevel@tonic-gate #define EXPER_IGMP (EXPER+1) 1097c478bd9Sstevel@tonic-gate #define EXPER_DVMRP (EXPER+2) 1107c478bd9Sstevel@tonic-gate #define EXPER_RAWIP (EXPER+3) 1117c478bd9Sstevel@tonic-gate 1127c478bd9Sstevel@tonic-gate /* 1137c478bd9Sstevel@tonic-gate * Define range of levels for experimental use 1147c478bd9Sstevel@tonic-gate */ 1157c478bd9Sstevel@tonic-gate #define EXPER_RANGE_START (EXPER+1) 1167c478bd9Sstevel@tonic-gate #define EXPER_RANGE_END (EXPER+3) 1177c478bd9Sstevel@tonic-gate 1187c478bd9Sstevel@tonic-gate #define BUMP_MIB(s, x) { \ 1197c478bd9Sstevel@tonic-gate extern void __dtrace_probe___mib_##x(int, void *); \ 1207c478bd9Sstevel@tonic-gate void *stataddr = &((s)->x); \ 1217c478bd9Sstevel@tonic-gate __dtrace_probe___mib_##x(1, stataddr); \ 1227c478bd9Sstevel@tonic-gate (s)->x++; \ 1237c478bd9Sstevel@tonic-gate } 1247c478bd9Sstevel@tonic-gate 1257c478bd9Sstevel@tonic-gate #define UPDATE_MIB(s, x, y) { \ 1267c478bd9Sstevel@tonic-gate extern void __dtrace_probe___mib_##x(int, void *); \ 1277c478bd9Sstevel@tonic-gate void *stataddr = &((s)->x); \ 1287c478bd9Sstevel@tonic-gate __dtrace_probe___mib_##x(y, stataddr); \ 1297c478bd9Sstevel@tonic-gate (s)->x += (y); \ 1307c478bd9Sstevel@tonic-gate } 1317c478bd9Sstevel@tonic-gate 1327c478bd9Sstevel@tonic-gate #define SET_MIB(x, y) x = y 1337c478bd9Sstevel@tonic-gate #define BUMP_LOCAL(x) (x)++ 1347c478bd9Sstevel@tonic-gate #define UPDATE_LOCAL(x, y) (x) += (y) 1357c478bd9Sstevel@tonic-gate 1367c478bd9Sstevel@tonic-gate #define OCTET_LENGTH 32 /* Must be at least LIFNAMSIZ */ 1377c478bd9Sstevel@tonic-gate typedef struct Octet_s { 1387c478bd9Sstevel@tonic-gate int o_length; 1397c478bd9Sstevel@tonic-gate char o_bytes[OCTET_LENGTH]; 1407c478bd9Sstevel@tonic-gate } Octet_t; 1417c478bd9Sstevel@tonic-gate 1427c478bd9Sstevel@tonic-gate typedef uint32_t Counter; 1437c478bd9Sstevel@tonic-gate typedef uint32_t Counter32; 1447c478bd9Sstevel@tonic-gate typedef uint64_t Counter64; 1457c478bd9Sstevel@tonic-gate typedef uint32_t Gauge; 1467c478bd9Sstevel@tonic-gate typedef uint32_t IpAddress; 1477c478bd9Sstevel@tonic-gate typedef struct in6_addr Ip6Address; 1487c478bd9Sstevel@tonic-gate typedef Octet_t DeviceName; 1497c478bd9Sstevel@tonic-gate typedef Octet_t PhysAddress; 1507c478bd9Sstevel@tonic-gate typedef uint32_t DeviceIndex; /* Interface index */ 1517c478bd9Sstevel@tonic-gate 1527c478bd9Sstevel@tonic-gate /* 1537c478bd9Sstevel@tonic-gate * IP group 1547c478bd9Sstevel@tonic-gate */ 1557c478bd9Sstevel@tonic-gate #define MIB2_IP_ADDR 20 /* ipAddrEntry */ 1567c478bd9Sstevel@tonic-gate #define MIB2_IP_ROUTE 21 /* ipRouteEntry */ 1577c478bd9Sstevel@tonic-gate #define MIB2_IP_MEDIA 22 /* ipNetToMediaEntry */ 1587c478bd9Sstevel@tonic-gate #define MIB2_IP6_ROUTE 23 /* ipv6RouteEntry */ 1597c478bd9Sstevel@tonic-gate #define MIB2_IP6_MEDIA 24 /* ipv6NetToMediaEntry */ 1607c478bd9Sstevel@tonic-gate #define MIB2_IP6_ADDR 25 /* ipv6AddrEntry */ 1617c478bd9Sstevel@tonic-gate #define EXPER_IP_GROUP_MEMBERSHIP 100 1627c478bd9Sstevel@tonic-gate #define EXPER_IP6_GROUP_MEMBERSHIP 101 1637c478bd9Sstevel@tonic-gate #define EXPER_IP_GROUP_SOURCES 102 1647c478bd9Sstevel@tonic-gate #define EXPER_IP6_GROUP_SOURCES 103 165*45916cd2Sjpk #define EXPER_IP_RTATTR 104 166*45916cd2Sjpk 167*45916cd2Sjpk /* 168*45916cd2Sjpk * There can be one of each of these tables per transport (MIB2_* above). 169*45916cd2Sjpk */ 170*45916cd2Sjpk #define EXPER_XPORT_MLP 105 /* transportMLPEntry */ 1717c478bd9Sstevel@tonic-gate 1727c478bd9Sstevel@tonic-gate /* Old names retained for compatibility */ 1737c478bd9Sstevel@tonic-gate #define MIB2_IP_20 MIB2_IP_ADDR 1747c478bd9Sstevel@tonic-gate #define MIB2_IP_21 MIB2_IP_ROUTE 1757c478bd9Sstevel@tonic-gate #define MIB2_IP_22 MIB2_IP_MEDIA 1767c478bd9Sstevel@tonic-gate 1777c478bd9Sstevel@tonic-gate typedef struct mib2_ip { 1787c478bd9Sstevel@tonic-gate /* forwarder? 1 gateway, 2 NOT gateway {ip 1} RW */ 1797c478bd9Sstevel@tonic-gate int ipForwarding; 1807c478bd9Sstevel@tonic-gate /* default Time-to-Live for iph {ip 2} RW */ 1817c478bd9Sstevel@tonic-gate int ipDefaultTTL; 1827c478bd9Sstevel@tonic-gate /* # of input datagrams {ip 3} */ 1837c478bd9Sstevel@tonic-gate Counter ipInReceives; 1847c478bd9Sstevel@tonic-gate /* # of dg discards for iph error {ip 4} */ 1857c478bd9Sstevel@tonic-gate Counter ipInHdrErrors; 1867c478bd9Sstevel@tonic-gate /* # of dg discards for bad addr {ip 5} */ 1877c478bd9Sstevel@tonic-gate Counter ipInAddrErrors; 1887c478bd9Sstevel@tonic-gate /* # of dg being forwarded {ip 6} */ 1897c478bd9Sstevel@tonic-gate Counter ipForwDatagrams; 1907c478bd9Sstevel@tonic-gate /* # of dg discards for unk protocol {ip 7} */ 1917c478bd9Sstevel@tonic-gate Counter ipInUnknownProtos; 1927c478bd9Sstevel@tonic-gate /* # of dg discards of good dg's {ip 8} */ 1937c478bd9Sstevel@tonic-gate Counter ipInDiscards; 1947c478bd9Sstevel@tonic-gate /* # of dg sent upstream {ip 9} */ 1957c478bd9Sstevel@tonic-gate Counter ipInDelivers; 1967c478bd9Sstevel@tonic-gate /* # of outdgs recv'd from upstream {ip 10} */ 1977c478bd9Sstevel@tonic-gate Counter ipOutRequests; 1987c478bd9Sstevel@tonic-gate /* # of good outdgs discarded {ip 11} */ 1997c478bd9Sstevel@tonic-gate Counter ipOutDiscards; 2007c478bd9Sstevel@tonic-gate /* # of outdg discards: no route found {ip 12} */ 2017c478bd9Sstevel@tonic-gate Counter ipOutNoRoutes; 2027c478bd9Sstevel@tonic-gate /* sec's recv'd frags held for reass. {ip 13} */ 2037c478bd9Sstevel@tonic-gate int ipReasmTimeout; 2047c478bd9Sstevel@tonic-gate /* # of ip frags needing reassembly {ip 14} */ 2057c478bd9Sstevel@tonic-gate Counter ipReasmReqds; 2067c478bd9Sstevel@tonic-gate /* # of dg's reassembled {ip 15} */ 2077c478bd9Sstevel@tonic-gate Counter ipReasmOKs; 2087c478bd9Sstevel@tonic-gate /* # of reassembly failures (not dg cnt){ip 16} */ 2097c478bd9Sstevel@tonic-gate Counter ipReasmFails; 2107c478bd9Sstevel@tonic-gate /* # of dg's fragged {ip 17} */ 2117c478bd9Sstevel@tonic-gate Counter ipFragOKs; 2127c478bd9Sstevel@tonic-gate /* # of dg discards for no frag set {ip 18} */ 2137c478bd9Sstevel@tonic-gate Counter ipFragFails; 2147c478bd9Sstevel@tonic-gate /* # of dg frags from fragmentation {ip 19} */ 2157c478bd9Sstevel@tonic-gate Counter ipFragCreates; 2167c478bd9Sstevel@tonic-gate /* {ip 20} */ 2177c478bd9Sstevel@tonic-gate int ipAddrEntrySize; 2187c478bd9Sstevel@tonic-gate /* {ip 21} */ 2197c478bd9Sstevel@tonic-gate int ipRouteEntrySize; 2207c478bd9Sstevel@tonic-gate /* {ip 22} */ 2217c478bd9Sstevel@tonic-gate int ipNetToMediaEntrySize; 2227c478bd9Sstevel@tonic-gate /* # of valid route entries discarded {ip 23} */ 2237c478bd9Sstevel@tonic-gate Counter ipRoutingDiscards; 2247c478bd9Sstevel@tonic-gate /* 2257c478bd9Sstevel@tonic-gate * following defined in MIB-II as part of TCP & UDP groups: 2267c478bd9Sstevel@tonic-gate */ 2277c478bd9Sstevel@tonic-gate /* total # of segments recv'd with error { tcp 14 } */ 2287c478bd9Sstevel@tonic-gate Counter tcpInErrs; 2297c478bd9Sstevel@tonic-gate /* # of recv'd dg's not deliverable (no appl.) { udp 2 } */ 2307c478bd9Sstevel@tonic-gate Counter udpNoPorts; 2317c478bd9Sstevel@tonic-gate /* 2327c478bd9Sstevel@tonic-gate * In addition to MIB-II 2337c478bd9Sstevel@tonic-gate */ 2347c478bd9Sstevel@tonic-gate /* # of bad IP header checksums */ 2357c478bd9Sstevel@tonic-gate Counter ipInCksumErrs; 2367c478bd9Sstevel@tonic-gate /* # of complete duplicates in reassembly */ 2377c478bd9Sstevel@tonic-gate Counter ipReasmDuplicates; 2387c478bd9Sstevel@tonic-gate /* # of partial duplicates in reassembly */ 2397c478bd9Sstevel@tonic-gate Counter ipReasmPartDups; 2407c478bd9Sstevel@tonic-gate /* # of packets not forwarded due to adminstrative reasons */ 2417c478bd9Sstevel@tonic-gate Counter ipForwProhibits; 2427c478bd9Sstevel@tonic-gate /* # of UDP packets with bad UDP checksums */ 2437c478bd9Sstevel@tonic-gate Counter udpInCksumErrs; 2447c478bd9Sstevel@tonic-gate /* # of UDP packets droped due to queue overflow */ 2457c478bd9Sstevel@tonic-gate Counter udpInOverflows; 2467c478bd9Sstevel@tonic-gate /* 2477c478bd9Sstevel@tonic-gate * # of RAW IP packets (all IP protocols except UDP, TCP 2487c478bd9Sstevel@tonic-gate * and ICMP) droped due to queue overflow 2497c478bd9Sstevel@tonic-gate */ 2507c478bd9Sstevel@tonic-gate Counter rawipInOverflows; 2517c478bd9Sstevel@tonic-gate 2527c478bd9Sstevel@tonic-gate /* 2537c478bd9Sstevel@tonic-gate * Folowing are private IPSEC MIB. 2547c478bd9Sstevel@tonic-gate */ 2557c478bd9Sstevel@tonic-gate /* # of incoming packets that succeeded policy checks */ 2567c478bd9Sstevel@tonic-gate Counter ipsecInSucceeded; 2577c478bd9Sstevel@tonic-gate /* # of incoming packets that failed policy checks */ 2587c478bd9Sstevel@tonic-gate Counter ipsecInFailed; 2597c478bd9Sstevel@tonic-gate /* Compatible extensions added here */ 2607c478bd9Sstevel@tonic-gate int ipMemberEntrySize; /* Size of ip_member_t */ 2617c478bd9Sstevel@tonic-gate int ipGroupSourceEntrySize; /* Size of ip_grpsrc_t */ 2627c478bd9Sstevel@tonic-gate 2637c478bd9Sstevel@tonic-gate /* # of IPv6 packets received by IPv4 and dropped */ 2647c478bd9Sstevel@tonic-gate Counter ipInIPv6; 2657c478bd9Sstevel@tonic-gate /* # of IPv6 packets transmitted by ip_wput */ 2667c478bd9Sstevel@tonic-gate Counter ipOutIPv6; 2677c478bd9Sstevel@tonic-gate /* # of times ip_wput has switched to become ip_wput_v6 */ 2687c478bd9Sstevel@tonic-gate Counter ipOutSwitchIPv6; 269*45916cd2Sjpk 270*45916cd2Sjpk int ipRouteAttributeSize; /* Size of mib2_ipAttributeEntry_t */ 271*45916cd2Sjpk int transportMLPSize; /* Size of mib2_transportMLPEntry_t */ 2727c478bd9Sstevel@tonic-gate } mib2_ip_t; 2737c478bd9Sstevel@tonic-gate 2747c478bd9Sstevel@tonic-gate /* 2757c478bd9Sstevel@tonic-gate * ipv6IfStatsEntry OBJECT-TYPE 2767c478bd9Sstevel@tonic-gate * SYNTAX Ipv6IfStatsEntry 2777c478bd9Sstevel@tonic-gate * MAX-ACCESS not-accessible 2787c478bd9Sstevel@tonic-gate * STATUS current 2797c478bd9Sstevel@tonic-gate * DESCRIPTION 2807c478bd9Sstevel@tonic-gate * "An interface statistics entry containing objects 2817c478bd9Sstevel@tonic-gate * at a particular IPv6 interface." 2827c478bd9Sstevel@tonic-gate * AUGMENTS { ipv6IfEntry } 2837c478bd9Sstevel@tonic-gate * ::= { ipv6IfStatsTable 1 } 2847c478bd9Sstevel@tonic-gate * 2857c478bd9Sstevel@tonic-gate * Per-interface IPv6 statistics table 2867c478bd9Sstevel@tonic-gate */ 2877c478bd9Sstevel@tonic-gate 2887c478bd9Sstevel@tonic-gate typedef struct mib2_ipv6IfStatsEntry { 2897c478bd9Sstevel@tonic-gate /* Local ifindex to identify the interface */ 2907c478bd9Sstevel@tonic-gate DeviceIndex ipv6IfIndex; 2917c478bd9Sstevel@tonic-gate 2927c478bd9Sstevel@tonic-gate /* forwarder? 1 gateway, 2 NOT gateway {ipv6MIBObjects 1} RW */ 2937c478bd9Sstevel@tonic-gate int ipv6Forwarding; 2947c478bd9Sstevel@tonic-gate /* default Hoplimit for IPv6 {ipv6MIBObjects 2} RW */ 2957c478bd9Sstevel@tonic-gate int ipv6DefaultHopLimit; 2967c478bd9Sstevel@tonic-gate 2977c478bd9Sstevel@tonic-gate int ipv6IfStatsEntrySize; 2987c478bd9Sstevel@tonic-gate int ipv6AddrEntrySize; 2997c478bd9Sstevel@tonic-gate int ipv6RouteEntrySize; 3007c478bd9Sstevel@tonic-gate int ipv6NetToMediaEntrySize; 3017c478bd9Sstevel@tonic-gate int ipv6MemberEntrySize; /* Size of ipv6_member_t */ 3027c478bd9Sstevel@tonic-gate int ipv6GroupSourceEntrySize; /* Size of ipv6_grpsrc_t */ 3037c478bd9Sstevel@tonic-gate 3047c478bd9Sstevel@tonic-gate /* # input datagrams (incl errors) { ipv6IfStatsEntry 1 } */ 3057c478bd9Sstevel@tonic-gate Counter ipv6InReceives; 3067c478bd9Sstevel@tonic-gate /* # errors in IPv6 headers and options { ipv6IfStatsEntry 2 } */ 3077c478bd9Sstevel@tonic-gate Counter ipv6InHdrErrors; 3087c478bd9Sstevel@tonic-gate /* # exceeds outgoing link MTU { ipv6IfStatsEntry 3 } */ 3097c478bd9Sstevel@tonic-gate Counter ipv6InTooBigErrors; 3107c478bd9Sstevel@tonic-gate /* # discarded due to no route to dest { ipv6IfStatsEntry 4 } */ 3117c478bd9Sstevel@tonic-gate Counter ipv6InNoRoutes; 3127c478bd9Sstevel@tonic-gate /* # invalid or unsupported addresses { ipv6IfStatsEntry 5 } */ 3137c478bd9Sstevel@tonic-gate Counter ipv6InAddrErrors; 3147c478bd9Sstevel@tonic-gate /* # unknown next header { ipv6IfStatsEntry 6 } */ 3157c478bd9Sstevel@tonic-gate Counter ipv6InUnknownProtos; 3167c478bd9Sstevel@tonic-gate /* # too short packets { ipv6IfStatsEntry 7 } */ 3177c478bd9Sstevel@tonic-gate Counter ipv6InTruncatedPkts; 3187c478bd9Sstevel@tonic-gate /* # discarded e.g. due to no buffers { ipv6IfStatsEntry 8 } */ 3197c478bd9Sstevel@tonic-gate Counter ipv6InDiscards; 3207c478bd9Sstevel@tonic-gate /* # delivered to upper layer protocols { ipv6IfStatsEntry 9 } */ 3217c478bd9Sstevel@tonic-gate Counter ipv6InDelivers; 3227c478bd9Sstevel@tonic-gate /* # forwarded out interface { ipv6IfStatsEntry 10 } */ 3237c478bd9Sstevel@tonic-gate Counter ipv6OutForwDatagrams; 3247c478bd9Sstevel@tonic-gate /* # originated out interface { ipv6IfStatsEntry 11 } */ 3257c478bd9Sstevel@tonic-gate Counter ipv6OutRequests; 3267c478bd9Sstevel@tonic-gate /* # discarded e.g. due to no buffers { ipv6IfStatsEntry 12 } */ 3277c478bd9Sstevel@tonic-gate Counter ipv6OutDiscards; 3287c478bd9Sstevel@tonic-gate /* # sucessfully fragmented packets { ipv6IfStatsEntry 13 } */ 3297c478bd9Sstevel@tonic-gate Counter ipv6OutFragOKs; 3307c478bd9Sstevel@tonic-gate /* # fragmentation failed { ipv6IfStatsEntry 14 } */ 3317c478bd9Sstevel@tonic-gate Counter ipv6OutFragFails; 3327c478bd9Sstevel@tonic-gate /* # fragments created { ipv6IfStatsEntry 15 } */ 3337c478bd9Sstevel@tonic-gate Counter ipv6OutFragCreates; 3347c478bd9Sstevel@tonic-gate /* # fragments to reassemble { ipv6IfStatsEntry 16 } */ 3357c478bd9Sstevel@tonic-gate Counter ipv6ReasmReqds; 3367c478bd9Sstevel@tonic-gate /* # packets after reassembly { ipv6IfStatsEntry 17 } */ 3377c478bd9Sstevel@tonic-gate Counter ipv6ReasmOKs; 3387c478bd9Sstevel@tonic-gate /* # reassembly failed { ipv6IfStatsEntry 18 } */ 3397c478bd9Sstevel@tonic-gate Counter ipv6ReasmFails; 3407c478bd9Sstevel@tonic-gate /* # received multicast packets { ipv6IfStatsEntry 19 } */ 3417c478bd9Sstevel@tonic-gate Counter ipv6InMcastPkts; 3427c478bd9Sstevel@tonic-gate /* # transmitted multicast packets { ipv6IfStatsEntry 20 } */ 3437c478bd9Sstevel@tonic-gate Counter ipv6OutMcastPkts; 3447c478bd9Sstevel@tonic-gate /* 3457c478bd9Sstevel@tonic-gate * In addition to defined MIBs 3467c478bd9Sstevel@tonic-gate */ 3477c478bd9Sstevel@tonic-gate /* # discarded due to no route to dest */ 3487c478bd9Sstevel@tonic-gate Counter ipv6OutNoRoutes; 3497c478bd9Sstevel@tonic-gate /* # of complete duplicates in reassembly */ 3507c478bd9Sstevel@tonic-gate Counter ipv6ReasmDuplicates; 3517c478bd9Sstevel@tonic-gate /* # of partial duplicates in reassembly */ 3527c478bd9Sstevel@tonic-gate Counter ipv6ReasmPartDups; 3537c478bd9Sstevel@tonic-gate /* # of packets not forwarded due to adminstrative reasons */ 3547c478bd9Sstevel@tonic-gate Counter ipv6ForwProhibits; 3557c478bd9Sstevel@tonic-gate /* # of UDP packets with bad UDP checksums */ 3567c478bd9Sstevel@tonic-gate Counter udpInCksumErrs; 3577c478bd9Sstevel@tonic-gate /* # of UDP packets droped due to queue overflow */ 3587c478bd9Sstevel@tonic-gate Counter udpInOverflows; 3597c478bd9Sstevel@tonic-gate /* 3607c478bd9Sstevel@tonic-gate * # of RAW IPv6 packets (all IPv6 protocols except UDP, TCP 3617c478bd9Sstevel@tonic-gate * and ICMPv6) droped due to queue overflow 3627c478bd9Sstevel@tonic-gate */ 3637c478bd9Sstevel@tonic-gate Counter rawipInOverflows; 3647c478bd9Sstevel@tonic-gate 3657c478bd9Sstevel@tonic-gate /* # of IPv4 packets received by IPv6 and dropped */ 3667c478bd9Sstevel@tonic-gate Counter ipv6InIPv4; 3677c478bd9Sstevel@tonic-gate /* # of IPv4 packets transmitted by ip_wput_wput */ 3687c478bd9Sstevel@tonic-gate Counter ipv6OutIPv4; 3697c478bd9Sstevel@tonic-gate /* # of times ip_wput_v6 has switched to become ip_wput */ 3707c478bd9Sstevel@tonic-gate Counter ipv6OutSwitchIPv4; 3717c478bd9Sstevel@tonic-gate } mib2_ipv6IfStatsEntry_t; 3727c478bd9Sstevel@tonic-gate 3737c478bd9Sstevel@tonic-gate /* 3747c478bd9Sstevel@tonic-gate * The IP address table contains this entity's IP addressing information. 3757c478bd9Sstevel@tonic-gate * 3767c478bd9Sstevel@tonic-gate * ipAddrTable OBJECT-TYPE 3777c478bd9Sstevel@tonic-gate * SYNTAX SEQUENCE OF IpAddrEntry 3787c478bd9Sstevel@tonic-gate * ACCESS not-accessible 3797c478bd9Sstevel@tonic-gate * STATUS mandatory 3807c478bd9Sstevel@tonic-gate * DESCRIPTION 3817c478bd9Sstevel@tonic-gate * "The table of addressing information relevant to 3827c478bd9Sstevel@tonic-gate * this entity's IP addresses." 3837c478bd9Sstevel@tonic-gate * ::= { ip 20 } 3847c478bd9Sstevel@tonic-gate */ 3857c478bd9Sstevel@tonic-gate 3867c478bd9Sstevel@tonic-gate typedef struct mib2_ipAddrEntry { 3877c478bd9Sstevel@tonic-gate /* IP address of this entry {ipAddrEntry 1} */ 3887c478bd9Sstevel@tonic-gate IpAddress ipAdEntAddr; 3897c478bd9Sstevel@tonic-gate /* Unique interface index {ipAddrEntry 2} */ 3907c478bd9Sstevel@tonic-gate DeviceName ipAdEntIfIndex; 3917c478bd9Sstevel@tonic-gate /* Subnet mask for this IP addr {ipAddrEntry 3} */ 3927c478bd9Sstevel@tonic-gate IpAddress ipAdEntNetMask; 3937c478bd9Sstevel@tonic-gate /* 2^lsb of IP broadcast addr {ipAddrEntry 4} */ 3947c478bd9Sstevel@tonic-gate int ipAdEntBcastAddr; 3957c478bd9Sstevel@tonic-gate /* max size for dg reassembly {ipAddrEntry 5} */ 3967c478bd9Sstevel@tonic-gate int ipAdEntReasmMaxSize; 3977c478bd9Sstevel@tonic-gate /* additional ipif_t fields */ 3987c478bd9Sstevel@tonic-gate struct ipAdEntInfo_s { 3997c478bd9Sstevel@tonic-gate Gauge ae_mtu; 4007c478bd9Sstevel@tonic-gate /* BSD if metric */ 4017c478bd9Sstevel@tonic-gate int ae_metric; 4027c478bd9Sstevel@tonic-gate /* ipif broadcast addr. relation to above?? */ 4037c478bd9Sstevel@tonic-gate IpAddress ae_broadcast_addr; 4047c478bd9Sstevel@tonic-gate /* point-point dest addr */ 4057c478bd9Sstevel@tonic-gate IpAddress ae_pp_dst_addr; 4067c478bd9Sstevel@tonic-gate int ae_flags; /* IFF_* flags in if.h */ 4077c478bd9Sstevel@tonic-gate Counter ae_ibcnt; /* Inbound packets */ 4087c478bd9Sstevel@tonic-gate Counter ae_obcnt; /* Outbound packets */ 4097c478bd9Sstevel@tonic-gate Counter ae_focnt; /* Forwarded packets */ 4107c478bd9Sstevel@tonic-gate IpAddress ae_subnet; /* Subnet prefix */ 4117c478bd9Sstevel@tonic-gate int ae_subnet_len; /* Subnet prefix length */ 4127c478bd9Sstevel@tonic-gate IpAddress ae_src_addr; /* Source address */ 4137c478bd9Sstevel@tonic-gate } ipAdEntInfo; 4147c478bd9Sstevel@tonic-gate } mib2_ipAddrEntry_t; 4157c478bd9Sstevel@tonic-gate 4167c478bd9Sstevel@tonic-gate /* 4177c478bd9Sstevel@tonic-gate * ipv6AddrTable OBJECT-TYPE 4187c478bd9Sstevel@tonic-gate * SYNTAX SEQUENCE OF Ipv6AddrEntry 4197c478bd9Sstevel@tonic-gate * MAX-ACCESS not-accessible 4207c478bd9Sstevel@tonic-gate * STATUS current 4217c478bd9Sstevel@tonic-gate * DESCRIPTION 4227c478bd9Sstevel@tonic-gate * "The table of addressing information relevant to 4237c478bd9Sstevel@tonic-gate * this node's interface addresses." 4247c478bd9Sstevel@tonic-gate * ::= { ipv6MIBObjects 8 } 4257c478bd9Sstevel@tonic-gate */ 4267c478bd9Sstevel@tonic-gate 4277c478bd9Sstevel@tonic-gate typedef struct mib2_ipv6AddrEntry { 4287c478bd9Sstevel@tonic-gate /* Unique interface index { Part of INDEX } */ 4297c478bd9Sstevel@tonic-gate DeviceName ipv6AddrIfIndex; 4307c478bd9Sstevel@tonic-gate 4317c478bd9Sstevel@tonic-gate /* IPv6 address of this entry { ipv6AddrEntry 1 } */ 4327c478bd9Sstevel@tonic-gate Ip6Address ipv6AddrAddress; 4337c478bd9Sstevel@tonic-gate /* Prefix length { ipv6AddrEntry 2 } */ 4347c478bd9Sstevel@tonic-gate uint_t ipv6AddrPfxLength; 4357c478bd9Sstevel@tonic-gate /* Type: stateless(1), stateful(2), unknown(3) { ipv6AddrEntry 3 } */ 4367c478bd9Sstevel@tonic-gate uint_t ipv6AddrType; 4377c478bd9Sstevel@tonic-gate /* Anycast: true(1), false(2) { ipv6AddrEntry 4 } */ 4387c478bd9Sstevel@tonic-gate uint_t ipv6AddrAnycastFlag; 4397c478bd9Sstevel@tonic-gate /* 4407c478bd9Sstevel@tonic-gate * Address status: preferred(1), deprecated(2), invalid(3), 4417c478bd9Sstevel@tonic-gate * inaccessible(4), unknown(5) { ipv6AddrEntry 5 } 4427c478bd9Sstevel@tonic-gate */ 4437c478bd9Sstevel@tonic-gate uint_t ipv6AddrStatus; 4447c478bd9Sstevel@tonic-gate struct ipv6AddrInfo_s { 4457c478bd9Sstevel@tonic-gate Gauge ae_mtu; 4467c478bd9Sstevel@tonic-gate /* BSD if metric */ 4477c478bd9Sstevel@tonic-gate int ae_metric; 4487c478bd9Sstevel@tonic-gate /* point-point dest addr */ 4497c478bd9Sstevel@tonic-gate Ip6Address ae_pp_dst_addr; 4507c478bd9Sstevel@tonic-gate int ae_flags; /* IFF_* flags in if.h */ 4517c478bd9Sstevel@tonic-gate Counter ae_ibcnt; /* Inbound packets */ 4527c478bd9Sstevel@tonic-gate Counter ae_obcnt; /* Outbound packets */ 4537c478bd9Sstevel@tonic-gate Counter ae_focnt; /* Forwarded packets */ 4547c478bd9Sstevel@tonic-gate Ip6Address ae_subnet; /* Subnet prefix */ 4557c478bd9Sstevel@tonic-gate int ae_subnet_len; /* Subnet prefix length */ 4567c478bd9Sstevel@tonic-gate Ip6Address ae_src_addr; /* Source address */ 4577c478bd9Sstevel@tonic-gate } ipv6AddrInfo; 4587c478bd9Sstevel@tonic-gate } mib2_ipv6AddrEntry_t; 4597c478bd9Sstevel@tonic-gate 4607c478bd9Sstevel@tonic-gate /* 4617c478bd9Sstevel@tonic-gate * The IP routing table contains an entry for each route presently known to 4627c478bd9Sstevel@tonic-gate * this entity. (for IPv4 routes) 4637c478bd9Sstevel@tonic-gate * 4647c478bd9Sstevel@tonic-gate * ipRouteTable OBJECT-TYPE 4657c478bd9Sstevel@tonic-gate * SYNTAX SEQUENCE OF IpRouteEntry 4667c478bd9Sstevel@tonic-gate * ACCESS not-accessible 4677c478bd9Sstevel@tonic-gate * STATUS mandatory 4687c478bd9Sstevel@tonic-gate * DESCRIPTION 4697c478bd9Sstevel@tonic-gate * "This entity's IP Routing table." 4707c478bd9Sstevel@tonic-gate * ::= { ip 21 } 4717c478bd9Sstevel@tonic-gate */ 4727c478bd9Sstevel@tonic-gate 4737c478bd9Sstevel@tonic-gate typedef struct mib2_ipRouteEntry { 4747c478bd9Sstevel@tonic-gate /* dest ip addr for this route {ipRouteEntry 1 } RW */ 4757c478bd9Sstevel@tonic-gate IpAddress ipRouteDest; 4767c478bd9Sstevel@tonic-gate /* unique interface index for this hop {ipRouteEntry 2 } RW */ 4777c478bd9Sstevel@tonic-gate DeviceName ipRouteIfIndex; 4787c478bd9Sstevel@tonic-gate /* primary route metric {ipRouteEntry 3 } RW */ 4797c478bd9Sstevel@tonic-gate int ipRouteMetric1; 4807c478bd9Sstevel@tonic-gate /* alternate route metric {ipRouteEntry 4 } RW */ 4817c478bd9Sstevel@tonic-gate int ipRouteMetric2; 4827c478bd9Sstevel@tonic-gate /* alternate route metric {ipRouteEntry 5 } RW */ 4837c478bd9Sstevel@tonic-gate int ipRouteMetric3; 4847c478bd9Sstevel@tonic-gate /* alternate route metric {ipRouteEntry 6 } RW */ 4857c478bd9Sstevel@tonic-gate int ipRouteMetric4; 4867c478bd9Sstevel@tonic-gate /* ip addr of next hop on this route {ipRouteEntry 7 } RW */ 4877c478bd9Sstevel@tonic-gate IpAddress ipRouteNextHop; 4887c478bd9Sstevel@tonic-gate /* other(1), inval(2), dir(3), indir(4) {ipRouteEntry 8 } RW */ 4897c478bd9Sstevel@tonic-gate int ipRouteType; 4907c478bd9Sstevel@tonic-gate /* mechanism by which route was learned {ipRouteEntry 9 } */ 4917c478bd9Sstevel@tonic-gate int ipRouteProto; 4927c478bd9Sstevel@tonic-gate /* sec's since last update of route {ipRouteEntry 10} RW */ 4937c478bd9Sstevel@tonic-gate int ipRouteAge; 4947c478bd9Sstevel@tonic-gate /* {ipRouteEntry 11} RW */ 4957c478bd9Sstevel@tonic-gate IpAddress ipRouteMask; 4967c478bd9Sstevel@tonic-gate /* alternate route metric {ipRouteEntry 12} RW */ 4977c478bd9Sstevel@tonic-gate int ipRouteMetric5; 4987c478bd9Sstevel@tonic-gate /* additional info from ire's {ipRouteEntry 13 } */ 4997c478bd9Sstevel@tonic-gate struct ipRouteInfo_s { 5007c478bd9Sstevel@tonic-gate Gauge re_max_frag; 5017c478bd9Sstevel@tonic-gate Gauge re_rtt; 5027c478bd9Sstevel@tonic-gate Counter re_ref; 5037c478bd9Sstevel@tonic-gate int re_frag_flag; 5047c478bd9Sstevel@tonic-gate IpAddress re_src_addr; 5057c478bd9Sstevel@tonic-gate int re_ire_type; 5067c478bd9Sstevel@tonic-gate Counter re_obpkt; 5077c478bd9Sstevel@tonic-gate Counter re_ibpkt; 5087c478bd9Sstevel@tonic-gate int re_flags; 5097c478bd9Sstevel@tonic-gate DeviceName re_in_ill; /* Input interface */ 5107c478bd9Sstevel@tonic-gate IpAddress re_in_src_addr; /* Input source address */ 5117c478bd9Sstevel@tonic-gate } ipRouteInfo; 5127c478bd9Sstevel@tonic-gate } mib2_ipRouteEntry_t; 5137c478bd9Sstevel@tonic-gate 5147c478bd9Sstevel@tonic-gate /* 5157c478bd9Sstevel@tonic-gate * The IPv6 routing table contains an entry for each route presently known to 5167c478bd9Sstevel@tonic-gate * this entity. 5177c478bd9Sstevel@tonic-gate * 5187c478bd9Sstevel@tonic-gate * ipv6RouteTable OBJECT-TYPE 5197c478bd9Sstevel@tonic-gate * SYNTAX SEQUENCE OF IpRouteEntry 5207c478bd9Sstevel@tonic-gate * ACCESS not-accessible 5217c478bd9Sstevel@tonic-gate * STATUS current 5227c478bd9Sstevel@tonic-gate * DESCRIPTION 5237c478bd9Sstevel@tonic-gate * "IPv6 Routing table. This table contains 5247c478bd9Sstevel@tonic-gate * an entry for each valid IPv6 unicast route 5257c478bd9Sstevel@tonic-gate * that can be used for packet forwarding 5267c478bd9Sstevel@tonic-gate * determination." 5277c478bd9Sstevel@tonic-gate * ::= { ipv6MIBObjects 11 } 5287c478bd9Sstevel@tonic-gate */ 5297c478bd9Sstevel@tonic-gate 5307c478bd9Sstevel@tonic-gate typedef struct mib2_ipv6RouteEntry { 5317c478bd9Sstevel@tonic-gate /* dest ip addr for this route { ipv6RouteEntry 1 } */ 5327c478bd9Sstevel@tonic-gate Ip6Address ipv6RouteDest; 5337c478bd9Sstevel@tonic-gate /* prefix length { ipv6RouteEntry 2 } */ 5347c478bd9Sstevel@tonic-gate int ipv6RoutePfxLength; 5357c478bd9Sstevel@tonic-gate /* unique route index { ipv6RouteEntry 3 } */ 5367c478bd9Sstevel@tonic-gate unsigned ipv6RouteIndex; 5377c478bd9Sstevel@tonic-gate /* unique interface index for this hop { ipv6RouteEntry 4 } */ 5387c478bd9Sstevel@tonic-gate DeviceName ipv6RouteIfIndex; 5397c478bd9Sstevel@tonic-gate /* IPv6 addr of next hop on this route { ipv6RouteEntry 5 } */ 5407c478bd9Sstevel@tonic-gate Ip6Address ipv6RouteNextHop; 5417c478bd9Sstevel@tonic-gate /* other(1), discard(2), local(3), remote(4) */ 5427c478bd9Sstevel@tonic-gate /* { ipv6RouteEntry 6 } */ 5437c478bd9Sstevel@tonic-gate int ipv6RouteType; 5447c478bd9Sstevel@tonic-gate /* mechanism by which route was learned { ipv6RouteEntry 7 } */ 5457c478bd9Sstevel@tonic-gate /* 5467c478bd9Sstevel@tonic-gate * other(1), local(2), netmgmt(3), ndisc(4), rip(5), ospf(6), 5477c478bd9Sstevel@tonic-gate * bgp(7), idrp(8), igrp(9) 5487c478bd9Sstevel@tonic-gate */ 5497c478bd9Sstevel@tonic-gate int ipv6RouteProtocol; 5507c478bd9Sstevel@tonic-gate /* policy hook or traffic class { ipv6RouteEntry 8 } */ 5517c478bd9Sstevel@tonic-gate unsigned ipv6RoutePolicy; 5527c478bd9Sstevel@tonic-gate /* sec's since last update of route { ipv6RouteEntry 9} */ 5537c478bd9Sstevel@tonic-gate int ipv6RouteAge; 5547c478bd9Sstevel@tonic-gate /* Routing domain ID of the next hop { ipv6RouteEntry 10 } */ 5557c478bd9Sstevel@tonic-gate unsigned ipv6RouteNextHopRDI; 5567c478bd9Sstevel@tonic-gate /* route metric { ipv6RouteEntry 11 } */ 5577c478bd9Sstevel@tonic-gate unsigned ipv6RouteMetric; 5587c478bd9Sstevel@tonic-gate /* preference (impl specific) { ipv6RouteEntry 12 } */ 5597c478bd9Sstevel@tonic-gate unsigned ipv6RouteWeight; 5607c478bd9Sstevel@tonic-gate /* additional info from ire's { } */ 5617c478bd9Sstevel@tonic-gate struct ipv6RouteInfo_s { 5627c478bd9Sstevel@tonic-gate Gauge re_max_frag; 5637c478bd9Sstevel@tonic-gate Gauge re_rtt; 5647c478bd9Sstevel@tonic-gate Counter re_ref; 5657c478bd9Sstevel@tonic-gate int re_frag_flag; 5667c478bd9Sstevel@tonic-gate Ip6Address re_src_addr; 5677c478bd9Sstevel@tonic-gate int re_ire_type; 5687c478bd9Sstevel@tonic-gate Counter re_obpkt; 5697c478bd9Sstevel@tonic-gate Counter re_ibpkt; 5707c478bd9Sstevel@tonic-gate int re_flags; 5717c478bd9Sstevel@tonic-gate } ipv6RouteInfo; 5727c478bd9Sstevel@tonic-gate } mib2_ipv6RouteEntry_t; 5737c478bd9Sstevel@tonic-gate 574*45916cd2Sjpk /* 575*45916cd2Sjpk * The IPv4 and IPv6 routing table entries on a trusted system also have 576*45916cd2Sjpk * security attributes in the form of label ranges. This experimental 577*45916cd2Sjpk * interface provides information about these labels. 578*45916cd2Sjpk * 579*45916cd2Sjpk * Each entry in this table contains a label range and an index that refers 580*45916cd2Sjpk * back to the entry in the routing table to which it applies. There may be 0, 581*45916cd2Sjpk * 1, or many label ranges for each routing table entry. 582*45916cd2Sjpk * 583*45916cd2Sjpk * (opthdr.level is set to MIB2_IP for IPv4 entries and MIB2_IP6 for IPv6. 584*45916cd2Sjpk * opthdr.name is set to EXPER_IP_GWATTR.) 585*45916cd2Sjpk * 586*45916cd2Sjpk * ipRouteAttributeTable OBJECT-TYPE 587*45916cd2Sjpk * SYNTAX SEQUENCE OF IpAttributeEntry 588*45916cd2Sjpk * ACCESS not-accessible 589*45916cd2Sjpk * STATUS current 590*45916cd2Sjpk * DESCRIPTION 591*45916cd2Sjpk * "IPv4 routing attributes table. This table contains 592*45916cd2Sjpk * an entry for each valid trusted label attached to a 593*45916cd2Sjpk * route in the system." 594*45916cd2Sjpk * ::= { ip 102 } 595*45916cd2Sjpk * 596*45916cd2Sjpk * ipv6RouteAttributeTable OBJECT-TYPE 597*45916cd2Sjpk * SYNTAX SEQUENCE OF IpAttributeEntry 598*45916cd2Sjpk * ACCESS not-accessible 599*45916cd2Sjpk * STATUS current 600*45916cd2Sjpk * DESCRIPTION 601*45916cd2Sjpk * "IPv6 routing attributes table. This table contains 602*45916cd2Sjpk * an entry for each valid trusted label attached to a 603*45916cd2Sjpk * route in the system." 604*45916cd2Sjpk * ::= { ip6 102 } 605*45916cd2Sjpk */ 606*45916cd2Sjpk 607*45916cd2Sjpk typedef struct mib2_ipAttributeEntry { 608*45916cd2Sjpk uint_t iae_routeidx; 609*45916cd2Sjpk int iae_doi; 610*45916cd2Sjpk brange_t iae_slrange; 611*45916cd2Sjpk } mib2_ipAttributeEntry_t; 6127c478bd9Sstevel@tonic-gate 6137c478bd9Sstevel@tonic-gate /* 6147c478bd9Sstevel@tonic-gate * The IP address translation table contain the IpAddress to 6157c478bd9Sstevel@tonic-gate * `physical' address equivalences. Some interfaces do not 6167c478bd9Sstevel@tonic-gate * use translation tables for determining address 6177c478bd9Sstevel@tonic-gate * equivalences (e.g., DDN-X.25 has an algorithmic method); 6187c478bd9Sstevel@tonic-gate * if all interfaces are of this type, then the Address 6197c478bd9Sstevel@tonic-gate * Translation table is empty, i.e., has zero entries. 6207c478bd9Sstevel@tonic-gate * 6217c478bd9Sstevel@tonic-gate * ipNetToMediaTable OBJECT-TYPE 6227c478bd9Sstevel@tonic-gate * SYNTAX SEQUENCE OF IpNetToMediaEntry 6237c478bd9Sstevel@tonic-gate * ACCESS not-accessible 6247c478bd9Sstevel@tonic-gate * STATUS mandatory 6257c478bd9Sstevel@tonic-gate * DESCRIPTION 6267c478bd9Sstevel@tonic-gate * "The IP Address Translation table used for mapping 6277c478bd9Sstevel@tonic-gate * from IP addresses to physical addresses." 6287c478bd9Sstevel@tonic-gate * ::= { ip 22 } 6297c478bd9Sstevel@tonic-gate */ 6307c478bd9Sstevel@tonic-gate 6317c478bd9Sstevel@tonic-gate typedef struct mib2_ipNetToMediaEntry { 6327c478bd9Sstevel@tonic-gate /* Unique interface index { ipNetToMediaEntry 1 } RW */ 6337c478bd9Sstevel@tonic-gate DeviceName ipNetToMediaIfIndex; 6347c478bd9Sstevel@tonic-gate /* Media dependent physical addr { ipNetToMediaEntry 2 } RW */ 6357c478bd9Sstevel@tonic-gate PhysAddress ipNetToMediaPhysAddress; 6367c478bd9Sstevel@tonic-gate /* ip addr for this physical addr { ipNetToMediaEntry 3 } RW */ 6377c478bd9Sstevel@tonic-gate IpAddress ipNetToMediaNetAddress; 6387c478bd9Sstevel@tonic-gate /* other(1), inval(2), dyn(3), stat(4) { ipNetToMediaEntry 4 } RW */ 6397c478bd9Sstevel@tonic-gate int ipNetToMediaType; 6407c478bd9Sstevel@tonic-gate struct ipNetToMediaInfo_s { 6417c478bd9Sstevel@tonic-gate PhysAddress ntm_mask; /* subnet mask for entry */ 6427c478bd9Sstevel@tonic-gate int ntm_flags; /* ACE_F_* flags in arp.h */ 6437c478bd9Sstevel@tonic-gate } ipNetToMediaInfo; 6447c478bd9Sstevel@tonic-gate } mib2_ipNetToMediaEntry_t; 6457c478bd9Sstevel@tonic-gate 6467c478bd9Sstevel@tonic-gate /* 6477c478bd9Sstevel@tonic-gate * ipv6NetToMediaTable OBJECT-TYPE 6487c478bd9Sstevel@tonic-gate * SYNTAX SEQUENCE OF Ipv6NetToMediaEntry 6497c478bd9Sstevel@tonic-gate * MAX-ACCESS not-accessible 6507c478bd9Sstevel@tonic-gate * STATUS current 6517c478bd9Sstevel@tonic-gate * DESCRIPTION 6527c478bd9Sstevel@tonic-gate * "The IPv6 Address Translation table used for 6537c478bd9Sstevel@tonic-gate * mapping from IPv6 addresses to physical addresses. 6547c478bd9Sstevel@tonic-gate * 6557c478bd9Sstevel@tonic-gate * The IPv6 address translation table contain the 6567c478bd9Sstevel@tonic-gate * Ipv6Address to `physical' address equivalencies. 6577c478bd9Sstevel@tonic-gate * Some interfaces do not use translation tables 6587c478bd9Sstevel@tonic-gate * for determining address equivalencies; if all 6597c478bd9Sstevel@tonic-gate * interfaces are of this type, then the Address 6607c478bd9Sstevel@tonic-gate * Translation table is empty, i.e., has zero 6617c478bd9Sstevel@tonic-gate * entries." 6627c478bd9Sstevel@tonic-gate * ::= { ipv6MIBObjects 12 } 6637c478bd9Sstevel@tonic-gate */ 6647c478bd9Sstevel@tonic-gate 6657c478bd9Sstevel@tonic-gate typedef struct mib2_ipv6NetToMediaEntry { 6667c478bd9Sstevel@tonic-gate /* Unique interface index { Part of INDEX } */ 6677c478bd9Sstevel@tonic-gate DeviceIndex ipv6NetToMediaIfIndex; 6687c478bd9Sstevel@tonic-gate 6697c478bd9Sstevel@tonic-gate /* ip addr for this physical addr { ipv6NetToMediaEntry 1 } */ 6707c478bd9Sstevel@tonic-gate Ip6Address ipv6NetToMediaNetAddress; 6717c478bd9Sstevel@tonic-gate /* Media dependent physical addr { ipv6NetToMediaEntry 2 } */ 6727c478bd9Sstevel@tonic-gate PhysAddress ipv6NetToMediaPhysAddress; 6737c478bd9Sstevel@tonic-gate /* 6747c478bd9Sstevel@tonic-gate * Type of mapping 6757c478bd9Sstevel@tonic-gate * other(1), dynamic(2), static(3), local(4) 6767c478bd9Sstevel@tonic-gate * { ipv6NetToMediaEntry 3 } 6777c478bd9Sstevel@tonic-gate */ 6787c478bd9Sstevel@tonic-gate int ipv6NetToMediaType; 6797c478bd9Sstevel@tonic-gate /* 6807c478bd9Sstevel@tonic-gate * NUD state 6817c478bd9Sstevel@tonic-gate * reachable(1), stale(2), delay(3), probe(4), invalid(5), unknown(6) 6827c478bd9Sstevel@tonic-gate * Note: The kernel returns ND_* states. 6837c478bd9Sstevel@tonic-gate * { ipv6NetToMediaEntry 4 } 6847c478bd9Sstevel@tonic-gate */ 6857c478bd9Sstevel@tonic-gate int ipv6NetToMediaState; 6867c478bd9Sstevel@tonic-gate /* sysUpTime last time entry was updated { ipv6NetToMediaEntry 5 } */ 6877c478bd9Sstevel@tonic-gate int ipv6NetToMediaLastUpdated; 6887c478bd9Sstevel@tonic-gate } mib2_ipv6NetToMediaEntry_t; 6897c478bd9Sstevel@tonic-gate 6907c478bd9Sstevel@tonic-gate 6917c478bd9Sstevel@tonic-gate /* 6927c478bd9Sstevel@tonic-gate * List of group members per interface 6937c478bd9Sstevel@tonic-gate */ 6947c478bd9Sstevel@tonic-gate typedef struct ip_member { 6957c478bd9Sstevel@tonic-gate /* Interface index */ 6967c478bd9Sstevel@tonic-gate DeviceName ipGroupMemberIfIndex; 6977c478bd9Sstevel@tonic-gate /* IP Multicast address */ 6987c478bd9Sstevel@tonic-gate IpAddress ipGroupMemberAddress; 6997c478bd9Sstevel@tonic-gate /* Number of member sockets */ 7007c478bd9Sstevel@tonic-gate Counter ipGroupMemberRefCnt; 7017c478bd9Sstevel@tonic-gate /* Filter mode: 1 => include, 2 => exclude */ 7027c478bd9Sstevel@tonic-gate int ipGroupMemberFilterMode; 7037c478bd9Sstevel@tonic-gate } ip_member_t; 7047c478bd9Sstevel@tonic-gate 7057c478bd9Sstevel@tonic-gate 7067c478bd9Sstevel@tonic-gate /* 7077c478bd9Sstevel@tonic-gate * List of IPv6 group members per interface 7087c478bd9Sstevel@tonic-gate */ 7097c478bd9Sstevel@tonic-gate typedef struct ipv6_member { 7107c478bd9Sstevel@tonic-gate /* Interface index */ 7117c478bd9Sstevel@tonic-gate DeviceIndex ipv6GroupMemberIfIndex; 7127c478bd9Sstevel@tonic-gate /* IP Multicast address */ 7137c478bd9Sstevel@tonic-gate Ip6Address ipv6GroupMemberAddress; 7147c478bd9Sstevel@tonic-gate /* Number of member sockets */ 7157c478bd9Sstevel@tonic-gate Counter ipv6GroupMemberRefCnt; 7167c478bd9Sstevel@tonic-gate /* Filter mode: 1 => include, 2 => exclude */ 7177c478bd9Sstevel@tonic-gate int ipv6GroupMemberFilterMode; 7187c478bd9Sstevel@tonic-gate } ipv6_member_t; 7197c478bd9Sstevel@tonic-gate 720*45916cd2Sjpk /* 721*45916cd2Sjpk * This is used to mark transport layer entities (e.g., TCP connections) that 722*45916cd2Sjpk * are capable of receiving packets from a range of labels. 'level' is set to 723*45916cd2Sjpk * the protocol of interest (e.g., MIB2_TCP), and 'name' is set to 724*45916cd2Sjpk * EXPER_XPORT_MLP. The tme_connidx refers back to the entry in MIB2_TCP_CONN, 725*45916cd2Sjpk * MIB2_TCP6_CONN, or MIB2_SCTP_CONN. 726*45916cd2Sjpk * 727*45916cd2Sjpk * It is also used to report connections that receive packets at a single label 728*45916cd2Sjpk * that's other than the zone's label. This is the case when a TCP connection 729*45916cd2Sjpk * is accepted from a particular peer using an MLP listener. 730*45916cd2Sjpk */ 731*45916cd2Sjpk typedef struct mib2_transportMLPEntry { 732*45916cd2Sjpk uint_t tme_connidx; 733*45916cd2Sjpk uint_t tme_flags; 734*45916cd2Sjpk int tme_doi; 735*45916cd2Sjpk bslabel_t tme_label; 736*45916cd2Sjpk } mib2_transportMLPEntry_t; 737*45916cd2Sjpk 738*45916cd2Sjpk #define MIB2_TMEF_PRIVATE 0x00000001 /* MLP on private addresses */ 739*45916cd2Sjpk #define MIB2_TMEF_SHARED 0x00000002 /* MLP on shared addresses */ 7407c478bd9Sstevel@tonic-gate 7417c478bd9Sstevel@tonic-gate /* 7427c478bd9Sstevel@tonic-gate * List of IPv4 source addresses being filtered per interface 7437c478bd9Sstevel@tonic-gate */ 7447c478bd9Sstevel@tonic-gate typedef struct ip_grpsrc { 7457c478bd9Sstevel@tonic-gate /* Interface index */ 7467c478bd9Sstevel@tonic-gate DeviceName ipGroupSourceIfIndex; 7477c478bd9Sstevel@tonic-gate /* IP Multicast address */ 7487c478bd9Sstevel@tonic-gate IpAddress ipGroupSourceGroup; 7497c478bd9Sstevel@tonic-gate /* IP Source address */ 7507c478bd9Sstevel@tonic-gate IpAddress ipGroupSourceAddress; 7517c478bd9Sstevel@tonic-gate } ip_grpsrc_t; 7527c478bd9Sstevel@tonic-gate 7537c478bd9Sstevel@tonic-gate 7547c478bd9Sstevel@tonic-gate /* 7557c478bd9Sstevel@tonic-gate * List of IPv6 source addresses being filtered per interface 7567c478bd9Sstevel@tonic-gate */ 7577c478bd9Sstevel@tonic-gate typedef struct ipv6_grpsrc { 7587c478bd9Sstevel@tonic-gate /* Interface index */ 7597c478bd9Sstevel@tonic-gate DeviceIndex ipv6GroupSourceIfIndex; 7607c478bd9Sstevel@tonic-gate /* IP Multicast address */ 7617c478bd9Sstevel@tonic-gate Ip6Address ipv6GroupSourceGroup; 7627c478bd9Sstevel@tonic-gate /* IP Source address */ 7637c478bd9Sstevel@tonic-gate Ip6Address ipv6GroupSourceAddress; 7647c478bd9Sstevel@tonic-gate } ipv6_grpsrc_t; 7657c478bd9Sstevel@tonic-gate 7667c478bd9Sstevel@tonic-gate 7677c478bd9Sstevel@tonic-gate /* 7687c478bd9Sstevel@tonic-gate * ICMP Group 7697c478bd9Sstevel@tonic-gate */ 7707c478bd9Sstevel@tonic-gate typedef struct mib2_icmp { 7717c478bd9Sstevel@tonic-gate /* total # of recv'd ICMP msgs { icmp 1 } */ 7727c478bd9Sstevel@tonic-gate Counter icmpInMsgs; 7737c478bd9Sstevel@tonic-gate /* recv'd ICMP msgs with errors { icmp 2 } */ 7747c478bd9Sstevel@tonic-gate Counter icmpInErrors; 7757c478bd9Sstevel@tonic-gate /* recv'd "dest unreachable" msg's { icmp 3 } */ 7767c478bd9Sstevel@tonic-gate Counter icmpInDestUnreachs; 7777c478bd9Sstevel@tonic-gate /* recv'd "time exceeded" msg's { icmp 4 } */ 7787c478bd9Sstevel@tonic-gate Counter icmpInTimeExcds; 7797c478bd9Sstevel@tonic-gate /* recv'd "parameter problem" msg's { icmp 5 } */ 7807c478bd9Sstevel@tonic-gate Counter icmpInParmProbs; 7817c478bd9Sstevel@tonic-gate /* recv'd "source quench" msg's { icmp 6 } */ 7827c478bd9Sstevel@tonic-gate Counter icmpInSrcQuenchs; 7837c478bd9Sstevel@tonic-gate /* recv'd "ICMP redirect" msg's { icmp 7 } */ 7847c478bd9Sstevel@tonic-gate Counter icmpInRedirects; 7857c478bd9Sstevel@tonic-gate /* recv'd "echo request" msg's { icmp 8 } */ 7867c478bd9Sstevel@tonic-gate Counter icmpInEchos; 7877c478bd9Sstevel@tonic-gate /* recv'd "echo reply" msg's { icmp 9 } */ 7887c478bd9Sstevel@tonic-gate Counter icmpInEchoReps; 7897c478bd9Sstevel@tonic-gate /* recv'd "timestamp" msg's { icmp 10 } */ 7907c478bd9Sstevel@tonic-gate Counter icmpInTimestamps; 7917c478bd9Sstevel@tonic-gate /* recv'd "timestamp reply" msg's { icmp 11 } */ 7927c478bd9Sstevel@tonic-gate Counter icmpInTimestampReps; 7937c478bd9Sstevel@tonic-gate /* recv'd "address mask request" msg's { icmp 12 } */ 7947c478bd9Sstevel@tonic-gate Counter icmpInAddrMasks; 7957c478bd9Sstevel@tonic-gate /* recv'd "address mask reply" msg's { icmp 13 } */ 7967c478bd9Sstevel@tonic-gate Counter icmpInAddrMaskReps; 7977c478bd9Sstevel@tonic-gate /* total # of sent ICMP msg's { icmp 14 } */ 7987c478bd9Sstevel@tonic-gate Counter icmpOutMsgs; 7997c478bd9Sstevel@tonic-gate /* # of msg's not sent for internal icmp errors { icmp 15 } */ 8007c478bd9Sstevel@tonic-gate Counter icmpOutErrors; 8017c478bd9Sstevel@tonic-gate /* # of "dest unreachable" msg's sent { icmp 16 } */ 8027c478bd9Sstevel@tonic-gate Counter icmpOutDestUnreachs; 8037c478bd9Sstevel@tonic-gate /* # of "time exceeded" msg's sent { icmp 17 } */ 8047c478bd9Sstevel@tonic-gate Counter icmpOutTimeExcds; 8057c478bd9Sstevel@tonic-gate /* # of "parameter problme" msg's sent { icmp 18 } */ 8067c478bd9Sstevel@tonic-gate Counter icmpOutParmProbs; 8077c478bd9Sstevel@tonic-gate /* # of "source quench" msg's sent { icmp 19 } */ 8087c478bd9Sstevel@tonic-gate Counter icmpOutSrcQuenchs; 8097c478bd9Sstevel@tonic-gate /* # of "ICMP redirect" msg's sent { icmp 20 } */ 8107c478bd9Sstevel@tonic-gate Counter icmpOutRedirects; 8117c478bd9Sstevel@tonic-gate /* # of "Echo request" msg's sent { icmp 21 } */ 8127c478bd9Sstevel@tonic-gate Counter icmpOutEchos; 8137c478bd9Sstevel@tonic-gate /* # of "Echo reply" msg's sent { icmp 22 } */ 8147c478bd9Sstevel@tonic-gate Counter icmpOutEchoReps; 8157c478bd9Sstevel@tonic-gate /* # of "timestamp request" msg's sent { icmp 23 } */ 8167c478bd9Sstevel@tonic-gate Counter icmpOutTimestamps; 8177c478bd9Sstevel@tonic-gate /* # of "timestamp reply" msg's sent { icmp 24 } */ 8187c478bd9Sstevel@tonic-gate Counter icmpOutTimestampReps; 8197c478bd9Sstevel@tonic-gate /* # of "address mask request" msg's sent { icmp 25 } */ 8207c478bd9Sstevel@tonic-gate Counter icmpOutAddrMasks; 8217c478bd9Sstevel@tonic-gate /* # of "address mask reply" msg's sent { icmp 26 } */ 8227c478bd9Sstevel@tonic-gate Counter icmpOutAddrMaskReps; 8237c478bd9Sstevel@tonic-gate /* 8247c478bd9Sstevel@tonic-gate * In addition to MIB-II 8257c478bd9Sstevel@tonic-gate */ 8267c478bd9Sstevel@tonic-gate /* # of received packets with checksum errors */ 8277c478bd9Sstevel@tonic-gate Counter icmpInCksumErrs; 8287c478bd9Sstevel@tonic-gate /* # of received packets with unknow codes */ 8297c478bd9Sstevel@tonic-gate Counter icmpInUnknowns; 8307c478bd9Sstevel@tonic-gate /* # of received unreachables with "fragmentation needed" */ 8317c478bd9Sstevel@tonic-gate Counter icmpInFragNeeded; 8327c478bd9Sstevel@tonic-gate /* # of sent unreachables with "fragmentation needed" */ 8337c478bd9Sstevel@tonic-gate Counter icmpOutFragNeeded; 8347c478bd9Sstevel@tonic-gate /* 8357c478bd9Sstevel@tonic-gate * # of msg's not sent since original packet was broadcast/multicast 8367c478bd9Sstevel@tonic-gate * or an ICMP error packet 8377c478bd9Sstevel@tonic-gate */ 8387c478bd9Sstevel@tonic-gate Counter icmpOutDrops; 8397c478bd9Sstevel@tonic-gate /* # of ICMP packets droped due to queue overflow */ 8407c478bd9Sstevel@tonic-gate Counter icmpInOverflows; 8417c478bd9Sstevel@tonic-gate /* recv'd "ICMP redirect" msg's that are bad thus ignored */ 8427c478bd9Sstevel@tonic-gate Counter icmpInBadRedirects; 8437c478bd9Sstevel@tonic-gate } mib2_icmp_t; 8447c478bd9Sstevel@tonic-gate 8457c478bd9Sstevel@tonic-gate 8467c478bd9Sstevel@tonic-gate /* 8477c478bd9Sstevel@tonic-gate * ipv6IfIcmpEntry OBJECT-TYPE 8487c478bd9Sstevel@tonic-gate * SYNTAX Ipv6IfIcmpEntry 8497c478bd9Sstevel@tonic-gate * MAX-ACCESS not-accessible 8507c478bd9Sstevel@tonic-gate * STATUS current 8517c478bd9Sstevel@tonic-gate * DESCRIPTION 8527c478bd9Sstevel@tonic-gate * "An ICMPv6 statistics entry containing 8537c478bd9Sstevel@tonic-gate * objects at a particular IPv6 interface. 8547c478bd9Sstevel@tonic-gate * 8557c478bd9Sstevel@tonic-gate * Note that a receiving interface is 8567c478bd9Sstevel@tonic-gate * the interface to which a given ICMPv6 message 8577c478bd9Sstevel@tonic-gate * is addressed which may not be necessarily 8587c478bd9Sstevel@tonic-gate * the input interface for the message. 8597c478bd9Sstevel@tonic-gate * 8607c478bd9Sstevel@tonic-gate * Similarly, the sending interface is 8617c478bd9Sstevel@tonic-gate * the interface that sources a given 8627c478bd9Sstevel@tonic-gate * ICMP message which is usually but not 8637c478bd9Sstevel@tonic-gate * necessarily the output interface for the message." 8647c478bd9Sstevel@tonic-gate * AUGMENTS { ipv6IfEntry } 8657c478bd9Sstevel@tonic-gate * ::= { ipv6IfIcmpTable 1 } 8667c478bd9Sstevel@tonic-gate * 8677c478bd9Sstevel@tonic-gate * Per-interface ICMPv6 statistics table 8687c478bd9Sstevel@tonic-gate */ 8697c478bd9Sstevel@tonic-gate 8707c478bd9Sstevel@tonic-gate typedef struct mib2_ipv6IfIcmpEntry { 8717c478bd9Sstevel@tonic-gate /* Local ifindex to identify the interface */ 8727c478bd9Sstevel@tonic-gate DeviceIndex ipv6IfIcmpIfIndex; 8737c478bd9Sstevel@tonic-gate 8747c478bd9Sstevel@tonic-gate int ipv6IfIcmpEntrySize; /* Size of ipv6IfIcmpEntry */ 8757c478bd9Sstevel@tonic-gate 8767c478bd9Sstevel@tonic-gate /* The total # ICMP msgs rcvd includes ipv6IfIcmpInErrors */ 8777c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInMsgs; 8787c478bd9Sstevel@tonic-gate /* # ICMP with ICMP-specific errors (bad checkum, length, etc) */ 8797c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInErrors; 8807c478bd9Sstevel@tonic-gate /* # ICMP Destination Unreachable */ 8817c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInDestUnreachs; 8827c478bd9Sstevel@tonic-gate /* # ICMP destination unreachable/communication admin prohibited */ 8837c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInAdminProhibs; 8847c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInTimeExcds; 8857c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInParmProblems; 8867c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInPktTooBigs; 8877c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInEchos; 8887c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInEchoReplies; 8897c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInRouterSolicits; 8907c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInRouterAdvertisements; 8917c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInNeighborSolicits; 8927c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInNeighborAdvertisements; 8937c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInRedirects; 8947c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInGroupMembQueries; 8957c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInGroupMembResponses; 8967c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInGroupMembReductions; 8977c478bd9Sstevel@tonic-gate /* Total # ICMP messages attempted to send (includes OutErrors) */ 8987c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutMsgs; 8997c478bd9Sstevel@tonic-gate /* # ICMP messages not sent due to ICMP problems (e.g. no buffers) */ 9007c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutErrors; 9017c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutDestUnreachs; 9027c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutAdminProhibs; 9037c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutTimeExcds; 9047c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutParmProblems; 9057c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutPktTooBigs; 9067c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutEchos; 9077c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutEchoReplies; 9087c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutRouterSolicits; 9097c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutRouterAdvertisements; 9107c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutNeighborSolicits; 9117c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutNeighborAdvertisements; 9127c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutRedirects; 9137c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutGroupMembQueries; 9147c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutGroupMembResponses; 9157c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpOutGroupMembReductions; 9167c478bd9Sstevel@tonic-gate /* Additions beyond the MIB */ 9177c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInOverflows; 9187c478bd9Sstevel@tonic-gate /* recv'd "ICMPv6 redirect" msg's that are bad thus ignored */ 9197c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpBadHoplimit; 9207c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInBadNeighborAdvertisements; 9217c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInBadNeighborSolicitations; 9227c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInBadRedirects; 9237c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInGroupMembTotal; 9247c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInGroupMembBadQueries; 9257c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInGroupMembBadReports; 9267c478bd9Sstevel@tonic-gate Counter32 ipv6IfIcmpInGroupMembOurReports; 9277c478bd9Sstevel@tonic-gate } mib2_ipv6IfIcmpEntry_t; 9287c478bd9Sstevel@tonic-gate 9297c478bd9Sstevel@tonic-gate /* 9307c478bd9Sstevel@tonic-gate * the TCP group 9317c478bd9Sstevel@tonic-gate * 9327c478bd9Sstevel@tonic-gate * Note that instances of object types that represent 9337c478bd9Sstevel@tonic-gate * information about a particular TCP connection are 9347c478bd9Sstevel@tonic-gate * transient; they persist only as long as the connection 9357c478bd9Sstevel@tonic-gate * in question. 9367c478bd9Sstevel@tonic-gate */ 9377c478bd9Sstevel@tonic-gate #define MIB2_TCP_CONN 13 /* tcpConnEntry */ 9387c478bd9Sstevel@tonic-gate #define MIB2_TCP6_CONN 14 /* tcp6ConnEntry */ 9397c478bd9Sstevel@tonic-gate 9407c478bd9Sstevel@tonic-gate /* Old name retained for compatibility */ 9417c478bd9Sstevel@tonic-gate #define MIB2_TCP_13 MIB2_TCP_CONN 9427c478bd9Sstevel@tonic-gate 9437c478bd9Sstevel@tonic-gate typedef struct mib2_tcp { 9447c478bd9Sstevel@tonic-gate /* algorithm used for transmit timeout value { tcp 1 } */ 9457c478bd9Sstevel@tonic-gate int tcpRtoAlgorithm; 9467c478bd9Sstevel@tonic-gate /* minimum retransmit timeout (ms) { tcp 2 } */ 9477c478bd9Sstevel@tonic-gate int tcpRtoMin; 9487c478bd9Sstevel@tonic-gate /* maximum retransmit timeout (ms) { tcp 3 } */ 9497c478bd9Sstevel@tonic-gate int tcpRtoMax; 9507c478bd9Sstevel@tonic-gate /* maximum # of connections supported { tcp 4 } */ 9517c478bd9Sstevel@tonic-gate int tcpMaxConn; 9527c478bd9Sstevel@tonic-gate /* # of direct transitions CLOSED -> SYN-SENT { tcp 5 } */ 9537c478bd9Sstevel@tonic-gate Counter tcpActiveOpens; 9547c478bd9Sstevel@tonic-gate /* # of direct transitions LISTEN -> SYN-RCVD { tcp 6 } */ 9557c478bd9Sstevel@tonic-gate Counter tcpPassiveOpens; 9567c478bd9Sstevel@tonic-gate /* # of direct SIN-SENT/RCVD -> CLOSED/LISTEN { tcp 7 } */ 9577c478bd9Sstevel@tonic-gate Counter tcpAttemptFails; 9587c478bd9Sstevel@tonic-gate /* # of direct ESTABLISHED/CLOSE-WAIT -> CLOSED { tcp 8 } */ 9597c478bd9Sstevel@tonic-gate Counter tcpEstabResets; 9607c478bd9Sstevel@tonic-gate /* # of connections ESTABLISHED or CLOSE-WAIT { tcp 9 } */ 9617c478bd9Sstevel@tonic-gate Gauge tcpCurrEstab; 9627c478bd9Sstevel@tonic-gate /* total # of segments recv'd { tcp 10 } */ 9637c478bd9Sstevel@tonic-gate Counter tcpInSegs; 9647c478bd9Sstevel@tonic-gate /* total # of segments sent { tcp 11 } */ 9657c478bd9Sstevel@tonic-gate Counter tcpOutSegs; 9667c478bd9Sstevel@tonic-gate /* total # of segments retransmitted { tcp 12 } */ 9677c478bd9Sstevel@tonic-gate Counter tcpRetransSegs; 9687c478bd9Sstevel@tonic-gate /* {tcp 13} */ 9697c478bd9Sstevel@tonic-gate int tcpConnTableSize; /* Size of tcpConnEntry_t */ 9707c478bd9Sstevel@tonic-gate /* in ip {tcp 14} */ 9717c478bd9Sstevel@tonic-gate /* # of segments sent with RST flag { tcp 15 } */ 9727c478bd9Sstevel@tonic-gate Counter tcpOutRsts; 9737c478bd9Sstevel@tonic-gate /* In addition to MIB-II */ 9747c478bd9Sstevel@tonic-gate /* Sender */ 9757c478bd9Sstevel@tonic-gate /* total # of data segments sent */ 9767c478bd9Sstevel@tonic-gate Counter tcpOutDataSegs; 9777c478bd9Sstevel@tonic-gate /* total # of bytes in data segments sent */ 9787c478bd9Sstevel@tonic-gate Counter tcpOutDataBytes; 9797c478bd9Sstevel@tonic-gate /* total # of bytes in segments retransmitted */ 9807c478bd9Sstevel@tonic-gate Counter tcpRetransBytes; 9817c478bd9Sstevel@tonic-gate /* total # of acks sent */ 9827c478bd9Sstevel@tonic-gate Counter tcpOutAck; 9837c478bd9Sstevel@tonic-gate /* total # of delayed acks sent */ 9847c478bd9Sstevel@tonic-gate Counter tcpOutAckDelayed; 9857c478bd9Sstevel@tonic-gate /* total # of segments sent with the urg flag on */ 9867c478bd9Sstevel@tonic-gate Counter tcpOutUrg; 9877c478bd9Sstevel@tonic-gate /* total # of window updates sent */ 9887c478bd9Sstevel@tonic-gate Counter tcpOutWinUpdate; 9897c478bd9Sstevel@tonic-gate /* total # of zero window probes sent */ 9907c478bd9Sstevel@tonic-gate Counter tcpOutWinProbe; 9917c478bd9Sstevel@tonic-gate /* total # of control segments sent (syn, fin, rst) */ 9927c478bd9Sstevel@tonic-gate Counter tcpOutControl; 9937c478bd9Sstevel@tonic-gate /* total # of segments sent due to "fast retransmit" */ 9947c478bd9Sstevel@tonic-gate Counter tcpOutFastRetrans; 9957c478bd9Sstevel@tonic-gate /* Receiver */ 9967c478bd9Sstevel@tonic-gate /* total # of ack segments received */ 9977c478bd9Sstevel@tonic-gate Counter tcpInAckSegs; 9987c478bd9Sstevel@tonic-gate /* total # of bytes acked */ 9997c478bd9Sstevel@tonic-gate Counter tcpInAckBytes; 10007c478bd9Sstevel@tonic-gate /* total # of duplicate acks */ 10017c478bd9Sstevel@tonic-gate Counter tcpInDupAck; 10027c478bd9Sstevel@tonic-gate /* total # of acks acking unsent data */ 10037c478bd9Sstevel@tonic-gate Counter tcpInAckUnsent; 10047c478bd9Sstevel@tonic-gate /* total # of data segments received in order */ 10057c478bd9Sstevel@tonic-gate Counter tcpInDataInorderSegs; 10067c478bd9Sstevel@tonic-gate /* total # of data bytes received in order */ 10077c478bd9Sstevel@tonic-gate Counter tcpInDataInorderBytes; 10087c478bd9Sstevel@tonic-gate /* total # of data segments received out of order */ 10097c478bd9Sstevel@tonic-gate Counter tcpInDataUnorderSegs; 10107c478bd9Sstevel@tonic-gate /* total # of data bytes received out of order */ 10117c478bd9Sstevel@tonic-gate Counter tcpInDataUnorderBytes; 10127c478bd9Sstevel@tonic-gate /* total # of complete duplicate data segments received */ 10137c478bd9Sstevel@tonic-gate Counter tcpInDataDupSegs; 10147c478bd9Sstevel@tonic-gate /* total # of bytes in the complete duplicate data segments received */ 10157c478bd9Sstevel@tonic-gate Counter tcpInDataDupBytes; 10167c478bd9Sstevel@tonic-gate /* total # of partial duplicate data segments received */ 10177c478bd9Sstevel@tonic-gate Counter tcpInDataPartDupSegs; 10187c478bd9Sstevel@tonic-gate /* total # of bytes in the partial duplicate data segments received */ 10197c478bd9Sstevel@tonic-gate Counter tcpInDataPartDupBytes; 10207c478bd9Sstevel@tonic-gate /* total # of data segments received past the window */ 10217c478bd9Sstevel@tonic-gate Counter tcpInDataPastWinSegs; 10227c478bd9Sstevel@tonic-gate /* total # of data bytes received part the window */ 10237c478bd9Sstevel@tonic-gate Counter tcpInDataPastWinBytes; 10247c478bd9Sstevel@tonic-gate /* total # of zero window probes received */ 10257c478bd9Sstevel@tonic-gate Counter tcpInWinProbe; 10267c478bd9Sstevel@tonic-gate /* total # of window updates received */ 10277c478bd9Sstevel@tonic-gate Counter tcpInWinUpdate; 10287c478bd9Sstevel@tonic-gate /* total # of data segments received after the connection has closed */ 10297c478bd9Sstevel@tonic-gate Counter tcpInClosed; 10307c478bd9Sstevel@tonic-gate /* Others */ 10317c478bd9Sstevel@tonic-gate /* total # of failed attempts to update the rtt estimate */ 10327c478bd9Sstevel@tonic-gate Counter tcpRttNoUpdate; 10337c478bd9Sstevel@tonic-gate /* total # of successful attempts to update the rtt estimate */ 10347c478bd9Sstevel@tonic-gate Counter tcpRttUpdate; 10357c478bd9Sstevel@tonic-gate /* total # of retransmit timeouts */ 10367c478bd9Sstevel@tonic-gate Counter tcpTimRetrans; 10377c478bd9Sstevel@tonic-gate /* total # of retransmit timeouts dropping the connection */ 10387c478bd9Sstevel@tonic-gate Counter tcpTimRetransDrop; 10397c478bd9Sstevel@tonic-gate /* total # of keepalive timeouts */ 10407c478bd9Sstevel@tonic-gate Counter tcpTimKeepalive; 10417c478bd9Sstevel@tonic-gate /* total # of keepalive timeouts sending a probe */ 10427c478bd9Sstevel@tonic-gate Counter tcpTimKeepaliveProbe; 10437c478bd9Sstevel@tonic-gate /* total # of keepalive timeouts dropping the connection */ 10447c478bd9Sstevel@tonic-gate Counter tcpTimKeepaliveDrop; 10457c478bd9Sstevel@tonic-gate /* total # of connections refused due to backlog full on listen */ 10467c478bd9Sstevel@tonic-gate Counter tcpListenDrop; 10477c478bd9Sstevel@tonic-gate /* total # of connections refused due to half-open queue (q0) full */ 10487c478bd9Sstevel@tonic-gate Counter tcpListenDropQ0; 10497c478bd9Sstevel@tonic-gate /* total # of connections dropped from a full half-open queue (q0) */ 10507c478bd9Sstevel@tonic-gate Counter tcpHalfOpenDrop; 10517c478bd9Sstevel@tonic-gate /* total # of retransmitted segments by SACK retransmission */ 10527c478bd9Sstevel@tonic-gate Counter tcpOutSackRetransSegs; 10537c478bd9Sstevel@tonic-gate 10547c478bd9Sstevel@tonic-gate int tcp6ConnTableSize; /* Size of tcp6ConnEntry_t */ 10557c478bd9Sstevel@tonic-gate } mib2_tcp_t; 10567c478bd9Sstevel@tonic-gate 10577c478bd9Sstevel@tonic-gate /* 10587c478bd9Sstevel@tonic-gate * The TCP/IPv4 connection table {tcp 13} contains information about this 10597c478bd9Sstevel@tonic-gate * entity's existing TCP connections over IPv4. 10607c478bd9Sstevel@tonic-gate */ 10617c478bd9Sstevel@tonic-gate /* For tcpConnState and tcp6ConnState */ 10627c478bd9Sstevel@tonic-gate #define MIB2_TCP_closed 1 10637c478bd9Sstevel@tonic-gate #define MIB2_TCP_listen 2 10647c478bd9Sstevel@tonic-gate #define MIB2_TCP_synSent 3 10657c478bd9Sstevel@tonic-gate #define MIB2_TCP_synReceived 4 10667c478bd9Sstevel@tonic-gate #define MIB2_TCP_established 5 10677c478bd9Sstevel@tonic-gate #define MIB2_TCP_finWait1 6 10687c478bd9Sstevel@tonic-gate #define MIB2_TCP_finWait2 7 10697c478bd9Sstevel@tonic-gate #define MIB2_TCP_closeWait 8 10707c478bd9Sstevel@tonic-gate #define MIB2_TCP_lastAck 9 10717c478bd9Sstevel@tonic-gate #define MIB2_TCP_closing 10 10727c478bd9Sstevel@tonic-gate #define MIB2_TCP_timeWait 11 10737c478bd9Sstevel@tonic-gate #define MIB2_TCP_deleteTCB 12 /* only writeable value */ 10747c478bd9Sstevel@tonic-gate 10757c478bd9Sstevel@tonic-gate typedef struct mib2_tcpConnEntry { 10767c478bd9Sstevel@tonic-gate /* state of tcp connection { tcpConnEntry 1} RW */ 10777c478bd9Sstevel@tonic-gate int tcpConnState; 10787c478bd9Sstevel@tonic-gate /* local ip addr for this connection { tcpConnEntry 2 } */ 10797c478bd9Sstevel@tonic-gate IpAddress tcpConnLocalAddress; 10807c478bd9Sstevel@tonic-gate /* local port for this connection { tcpConnEntry 3 } */ 10817c478bd9Sstevel@tonic-gate int tcpConnLocalPort; /* In host byte order */ 10827c478bd9Sstevel@tonic-gate /* remote ip addr for this connection { tcpConnEntry 4 } */ 10837c478bd9Sstevel@tonic-gate IpAddress tcpConnRemAddress; 10847c478bd9Sstevel@tonic-gate /* remote port for this connection { tcpConnEntry 5 } */ 10857c478bd9Sstevel@tonic-gate int tcpConnRemPort; /* In host byte order */ 10867c478bd9Sstevel@tonic-gate struct tcpConnEntryInfo_s { 10877c478bd9Sstevel@tonic-gate /* seq # of next segment to send */ 10887c478bd9Sstevel@tonic-gate Gauge ce_snxt; 10897c478bd9Sstevel@tonic-gate /* seq # of of last segment unacknowledged */ 10907c478bd9Sstevel@tonic-gate Gauge ce_suna; 10917c478bd9Sstevel@tonic-gate /* currect send window size */ 10927c478bd9Sstevel@tonic-gate Gauge ce_swnd; 10937c478bd9Sstevel@tonic-gate /* seq # of next expected segment */ 10947c478bd9Sstevel@tonic-gate Gauge ce_rnxt; 10957c478bd9Sstevel@tonic-gate /* seq # of last ack'd segment */ 10967c478bd9Sstevel@tonic-gate Gauge ce_rack; 10977c478bd9Sstevel@tonic-gate /* currenct receive window size */ 10987c478bd9Sstevel@tonic-gate Gauge ce_rwnd; 10997c478bd9Sstevel@tonic-gate /* current rto (retransmit timeout) */ 11007c478bd9Sstevel@tonic-gate Gauge ce_rto; 11017c478bd9Sstevel@tonic-gate /* current max segment size */ 11027c478bd9Sstevel@tonic-gate Gauge ce_mss; 11037c478bd9Sstevel@tonic-gate /* actual internal state */ 11047c478bd9Sstevel@tonic-gate int ce_state; 11057c478bd9Sstevel@tonic-gate } tcpConnEntryInfo; 11067c478bd9Sstevel@tonic-gate } mib2_tcpConnEntry_t; 11077c478bd9Sstevel@tonic-gate 11087c478bd9Sstevel@tonic-gate 11097c478bd9Sstevel@tonic-gate /* 11107c478bd9Sstevel@tonic-gate * The TCP/IPv6 connection table {tcp 14} contains information about this 11117c478bd9Sstevel@tonic-gate * entity's existing TCP connections over IPv6. 11127c478bd9Sstevel@tonic-gate */ 11137c478bd9Sstevel@tonic-gate 11147c478bd9Sstevel@tonic-gate typedef struct mib2_tcp6ConnEntry { 11157c478bd9Sstevel@tonic-gate /* local ip addr for this connection { ipv6TcpConnEntry 1 } */ 11167c478bd9Sstevel@tonic-gate Ip6Address tcp6ConnLocalAddress; 11177c478bd9Sstevel@tonic-gate /* local port for this connection { ipv6TcpConnEntry 2 } */ 11187c478bd9Sstevel@tonic-gate int tcp6ConnLocalPort; 11197c478bd9Sstevel@tonic-gate /* remote ip addr for this connection { ipv6TcpConnEntry 3 } */ 11207c478bd9Sstevel@tonic-gate Ip6Address tcp6ConnRemAddress; 11217c478bd9Sstevel@tonic-gate /* remote port for this connection { ipv6TcpConnEntry 4 } */ 11227c478bd9Sstevel@tonic-gate int tcp6ConnRemPort; 11237c478bd9Sstevel@tonic-gate /* interface index or zero { ipv6TcpConnEntry 5 } */ 11247c478bd9Sstevel@tonic-gate DeviceIndex tcp6ConnIfIndex; 11257c478bd9Sstevel@tonic-gate /* state of tcp6 connection { ipv6TcpConnEntry 6 } RW */ 11267c478bd9Sstevel@tonic-gate int tcp6ConnState; 11277c478bd9Sstevel@tonic-gate struct tcp6ConnEntryInfo_s { 11287c478bd9Sstevel@tonic-gate /* seq # of next segment to send */ 11297c478bd9Sstevel@tonic-gate Gauge ce_snxt; 11307c478bd9Sstevel@tonic-gate /* seq # of of last segment unacknowledged */ 11317c478bd9Sstevel@tonic-gate Gauge ce_suna; 11327c478bd9Sstevel@tonic-gate /* currect send window size */ 11337c478bd9Sstevel@tonic-gate Gauge ce_swnd; 11347c478bd9Sstevel@tonic-gate /* seq # of next expected segment */ 11357c478bd9Sstevel@tonic-gate Gauge ce_rnxt; 11367c478bd9Sstevel@tonic-gate /* seq # of last ack'd segment */ 11377c478bd9Sstevel@tonic-gate Gauge ce_rack; 11387c478bd9Sstevel@tonic-gate /* currenct receive window size */ 11397c478bd9Sstevel@tonic-gate Gauge ce_rwnd; 11407c478bd9Sstevel@tonic-gate /* current rto (retransmit timeout) */ 11417c478bd9Sstevel@tonic-gate Gauge ce_rto; 11427c478bd9Sstevel@tonic-gate /* current max segment size */ 11437c478bd9Sstevel@tonic-gate Gauge ce_mss; 11447c478bd9Sstevel@tonic-gate /* actual internal state */ 11457c478bd9Sstevel@tonic-gate int ce_state; 11467c478bd9Sstevel@tonic-gate } tcp6ConnEntryInfo; 11477c478bd9Sstevel@tonic-gate } mib2_tcp6ConnEntry_t; 11487c478bd9Sstevel@tonic-gate 11497c478bd9Sstevel@tonic-gate /* 11507c478bd9Sstevel@tonic-gate * the UDP group 11517c478bd9Sstevel@tonic-gate */ 11527c478bd9Sstevel@tonic-gate #define MIB2_UDP_ENTRY 5 /* udpEntry */ 11537c478bd9Sstevel@tonic-gate #define MIB2_UDP6_ENTRY 6 /* udp6Entry */ 11547c478bd9Sstevel@tonic-gate 11557c478bd9Sstevel@tonic-gate /* Old name retained for compatibility */ 11567c478bd9Sstevel@tonic-gate #define MIB2_UDP_5 MIB2_UDP_ENTRY 11577c478bd9Sstevel@tonic-gate 11587c478bd9Sstevel@tonic-gate typedef struct mib2_udp { 11597c478bd9Sstevel@tonic-gate /* total # of UDP datagrams sent upstream { udp 1 } */ 11607c478bd9Sstevel@tonic-gate Counter udpInDatagrams; 11617c478bd9Sstevel@tonic-gate /* in ip { udp 2 } */ 11627c478bd9Sstevel@tonic-gate /* # of recv'd dg's not deliverable (other) { udp 3 } */ 11637c478bd9Sstevel@tonic-gate Counter udpInErrors; 11647c478bd9Sstevel@tonic-gate /* total # of dg's sent { udp 4 } */ 11657c478bd9Sstevel@tonic-gate Counter udpOutDatagrams; 11667c478bd9Sstevel@tonic-gate /* { udp 5 } */ 11677c478bd9Sstevel@tonic-gate int udpEntrySize; /* Size of udpEntry_t */ 11687c478bd9Sstevel@tonic-gate int udp6EntrySize; /* Size of udp6Entry_t */ 11697c478bd9Sstevel@tonic-gate Counter udpOutErrors; 11707c478bd9Sstevel@tonic-gate } mib2_udp_t; 11717c478bd9Sstevel@tonic-gate 11727c478bd9Sstevel@tonic-gate /* 11737c478bd9Sstevel@tonic-gate * The UDP listener table contains information about this entity's UDP 11747c478bd9Sstevel@tonic-gate * end-points on which a local application is currently accepting datagrams. 11757c478bd9Sstevel@tonic-gate */ 11767c478bd9Sstevel@tonic-gate 11777c478bd9Sstevel@tonic-gate /* For both IPv4 and IPv6 ue_state: */ 11787c478bd9Sstevel@tonic-gate #define MIB2_UDP_unbound 1 11797c478bd9Sstevel@tonic-gate #define MIB2_UDP_idle 2 11807c478bd9Sstevel@tonic-gate #define MIB2_UDP_connected 3 11817c478bd9Sstevel@tonic-gate #define MIB2_UDP_unknown 4 11827c478bd9Sstevel@tonic-gate 11837c478bd9Sstevel@tonic-gate typedef struct mib2_udpEntry { 11847c478bd9Sstevel@tonic-gate /* local ip addr of listener { udpEntry 1 } */ 11857c478bd9Sstevel@tonic-gate IpAddress udpLocalAddress; 11867c478bd9Sstevel@tonic-gate /* local port of listener { udpEntry 2 } */ 11877c478bd9Sstevel@tonic-gate int udpLocalPort; /* In host byte order */ 11887c478bd9Sstevel@tonic-gate struct udpEntryInfo_s { 11897c478bd9Sstevel@tonic-gate int ue_state; 11907c478bd9Sstevel@tonic-gate IpAddress ue_RemoteAddress; 11917c478bd9Sstevel@tonic-gate int ue_RemotePort; /* In host byte order */ 11927c478bd9Sstevel@tonic-gate } udpEntryInfo; 11937c478bd9Sstevel@tonic-gate } mib2_udpEntry_t; 11947c478bd9Sstevel@tonic-gate 11957c478bd9Sstevel@tonic-gate /* 11967c478bd9Sstevel@tonic-gate * The UDP (for IPv6) listener table contains information about this 11977c478bd9Sstevel@tonic-gate * entity's UDP end-points on which a local application is 11987c478bd9Sstevel@tonic-gate * currently accepting datagrams. 11997c478bd9Sstevel@tonic-gate */ 12007c478bd9Sstevel@tonic-gate 12017c478bd9Sstevel@tonic-gate typedef struct mib2_udp6Entry { 12027c478bd9Sstevel@tonic-gate /* local ip addr of listener { ipv6UdpEntry 1 } */ 12037c478bd9Sstevel@tonic-gate Ip6Address udp6LocalAddress; 12047c478bd9Sstevel@tonic-gate /* local port of listener { ipv6UdpEntry 2 } */ 12057c478bd9Sstevel@tonic-gate int udp6LocalPort; /* In host byte order */ 12067c478bd9Sstevel@tonic-gate /* interface index or zero { ipv6UdpEntry 3 } */ 12077c478bd9Sstevel@tonic-gate DeviceIndex udp6IfIndex; 12087c478bd9Sstevel@tonic-gate struct udp6EntryInfo_s { 12097c478bd9Sstevel@tonic-gate int ue_state; 12107c478bd9Sstevel@tonic-gate Ip6Address ue_RemoteAddress; 12117c478bd9Sstevel@tonic-gate int ue_RemotePort; /* In host byte order */ 12127c478bd9Sstevel@tonic-gate } udp6EntryInfo; 12137c478bd9Sstevel@tonic-gate } mib2_udp6Entry_t; 12147c478bd9Sstevel@tonic-gate 12157c478bd9Sstevel@tonic-gate /* 12167c478bd9Sstevel@tonic-gate * the RAWIP group 12177c478bd9Sstevel@tonic-gate */ 12187c478bd9Sstevel@tonic-gate typedef struct mib2_rawip { 12197c478bd9Sstevel@tonic-gate /* total # of RAWIP datagrams sent upstream */ 12207c478bd9Sstevel@tonic-gate Counter rawipInDatagrams; 12217c478bd9Sstevel@tonic-gate /* # of RAWIP packets with bad IPV6_CHECKSUM checksums */ 12227c478bd9Sstevel@tonic-gate Counter rawipInCksumErrs; 12237c478bd9Sstevel@tonic-gate /* # of recv'd dg's not deliverable (other) */ 12247c478bd9Sstevel@tonic-gate Counter rawipInErrors; 12257c478bd9Sstevel@tonic-gate /* total # of dg's sent */ 12267c478bd9Sstevel@tonic-gate Counter rawipOutDatagrams; 12277c478bd9Sstevel@tonic-gate /* total # of dg's not sent (e.g. no memory) */ 12287c478bd9Sstevel@tonic-gate Counter rawipOutErrors; 12297c478bd9Sstevel@tonic-gate } mib2_rawip_t; 12307c478bd9Sstevel@tonic-gate 12317c478bd9Sstevel@tonic-gate /* DVMRP group */ 12327c478bd9Sstevel@tonic-gate #define EXPER_DVMRP_VIF 1 12337c478bd9Sstevel@tonic-gate #define EXPER_DVMRP_MRT 2 12347c478bd9Sstevel@tonic-gate 12357c478bd9Sstevel@tonic-gate 12367c478bd9Sstevel@tonic-gate /* 12377c478bd9Sstevel@tonic-gate * The SCTP group 12387c478bd9Sstevel@tonic-gate */ 12397c478bd9Sstevel@tonic-gate #define MIB2_SCTP_CONN 15 12407c478bd9Sstevel@tonic-gate #define MIB2_SCTP_CONN_LOCAL 16 12417c478bd9Sstevel@tonic-gate #define MIB2_SCTP_CONN_REMOTE 17 12427c478bd9Sstevel@tonic-gate 12437c478bd9Sstevel@tonic-gate #define MIB2_SCTP_closed 1 12447c478bd9Sstevel@tonic-gate #define MIB2_SCTP_cookieWait 2 12457c478bd9Sstevel@tonic-gate #define MIB2_SCTP_cookieEchoed 3 12467c478bd9Sstevel@tonic-gate #define MIB2_SCTP_established 4 12477c478bd9Sstevel@tonic-gate #define MIB2_SCTP_shutdownPending 5 12487c478bd9Sstevel@tonic-gate #define MIB2_SCTP_shutdownSent 6 12497c478bd9Sstevel@tonic-gate #define MIB2_SCTP_shutdownReceived 7 12507c478bd9Sstevel@tonic-gate #define MIB2_SCTP_shutdownAckSent 8 12517c478bd9Sstevel@tonic-gate #define MIB2_SCTP_deleteTCB 9 12527c478bd9Sstevel@tonic-gate #define MIB2_SCTP_listen 10 /* Not in the MIB */ 12537c478bd9Sstevel@tonic-gate 12547c478bd9Sstevel@tonic-gate #define MIB2_SCTP_ACTIVE 1 12557c478bd9Sstevel@tonic-gate #define MIB2_SCTP_INACTIVE 2 12567c478bd9Sstevel@tonic-gate 12577c478bd9Sstevel@tonic-gate #define MIB2_SCTP_ADDR_V4 1 12587c478bd9Sstevel@tonic-gate #define MIB2_SCTP_ADDR_V6 2 12597c478bd9Sstevel@tonic-gate 12607c478bd9Sstevel@tonic-gate #define MIB2_SCTP_RTOALGO_OTHER 1 12617c478bd9Sstevel@tonic-gate #define MIB2_SCTP_RTOALGO_VANJ 2 12627c478bd9Sstevel@tonic-gate 12637c478bd9Sstevel@tonic-gate typedef struct mib2_sctpConnEntry { 12647c478bd9Sstevel@tonic-gate /* connection identifier { sctpAssocEntry 1 } */ 12657c478bd9Sstevel@tonic-gate uint32_t sctpAssocId; 12667c478bd9Sstevel@tonic-gate /* remote hostname (not used) { sctpAssocEntry 2 } */ 12677c478bd9Sstevel@tonic-gate Octet_t sctpAssocRemHostName; 12687c478bd9Sstevel@tonic-gate /* local port number { sctpAssocEntry 3 } */ 12697c478bd9Sstevel@tonic-gate uint32_t sctpAssocLocalPort; 12707c478bd9Sstevel@tonic-gate /* remote port number { sctpAssocEntry 4 } */ 12717c478bd9Sstevel@tonic-gate uint32_t sctpAssocRemPort; 12727c478bd9Sstevel@tonic-gate /* type of primary remote addr { sctpAssocEntry 5 } */ 12737c478bd9Sstevel@tonic-gate int sctpAssocRemPrimAddrType; 12747c478bd9Sstevel@tonic-gate /* primary remote address { sctpAssocEntry 6 } */ 12757c478bd9Sstevel@tonic-gate Ip6Address sctpAssocRemPrimAddr; 12767c478bd9Sstevel@tonic-gate /* local address */ 12777c478bd9Sstevel@tonic-gate Ip6Address sctpAssocLocPrimAddr; 12787c478bd9Sstevel@tonic-gate /* current heartbeat interval { sctpAssocEntry 7 } */ 12797c478bd9Sstevel@tonic-gate uint32_t sctpAssocHeartBeatInterval; 12807c478bd9Sstevel@tonic-gate /* state of this association { sctpAssocEntry 8 } */ 12817c478bd9Sstevel@tonic-gate int sctpAssocState; 12827c478bd9Sstevel@tonic-gate /* # of inbound streams { sctpAssocEntry 9 } */ 12837c478bd9Sstevel@tonic-gate uint32_t sctpAssocInStreams; 12847c478bd9Sstevel@tonic-gate /* # of outbound streams { sctpAssocEntry 10 } */ 12857c478bd9Sstevel@tonic-gate uint32_t sctpAssocOutStreams; 12867c478bd9Sstevel@tonic-gate /* max # of data retans { sctpAssocEntry 11 } */ 12877c478bd9Sstevel@tonic-gate uint32_t sctpAssocMaxRetr; 12887c478bd9Sstevel@tonic-gate /* sysId for assoc owner { sctpAssocEntry 12 } */ 12897c478bd9Sstevel@tonic-gate uint32_t sctpAssocPrimProcess; 12907c478bd9Sstevel@tonic-gate /* # of rxmit timeouts during hanshake */ 12917c478bd9Sstevel@tonic-gate Counter32 sctpAssocT1expired; /* { sctpAssocEntry 13 } */ 12927c478bd9Sstevel@tonic-gate /* # of rxmit timeouts during shutdown */ 12937c478bd9Sstevel@tonic-gate Counter32 sctpAssocT2expired; /* { sctpAssocEntry 14 } */ 12947c478bd9Sstevel@tonic-gate /* # of rxmit timeouts during data transfer */ 12957c478bd9Sstevel@tonic-gate Counter32 sctpAssocRtxChunks; /* { sctpAssocEntry 15 } */ 12967c478bd9Sstevel@tonic-gate /* assoc start-up time { sctpAssocEntry 16 } */ 12977c478bd9Sstevel@tonic-gate uint32_t sctpAssocStartTime; 12987c478bd9Sstevel@tonic-gate struct sctpConnEntryInfo_s { 12997c478bd9Sstevel@tonic-gate /* amount of data in send Q */ 13007c478bd9Sstevel@tonic-gate Gauge ce_sendq; 13017c478bd9Sstevel@tonic-gate /* amount of data in recv Q */ 13027c478bd9Sstevel@tonic-gate Gauge ce_recvq; 13037c478bd9Sstevel@tonic-gate /* currect send window size */ 13047c478bd9Sstevel@tonic-gate Gauge ce_swnd; 13057c478bd9Sstevel@tonic-gate /* currenct receive window size */ 13067c478bd9Sstevel@tonic-gate Gauge ce_rwnd; 13077c478bd9Sstevel@tonic-gate /* current max segment size */ 13087c478bd9Sstevel@tonic-gate Gauge ce_mss; 13097c478bd9Sstevel@tonic-gate } sctpConnEntryInfo; 13107c478bd9Sstevel@tonic-gate } mib2_sctpConnEntry_t; 13117c478bd9Sstevel@tonic-gate 13127c478bd9Sstevel@tonic-gate typedef struct mib2_sctpConnLocalAddrEntry { 13137c478bd9Sstevel@tonic-gate /* connection identifier */ 13147c478bd9Sstevel@tonic-gate uint32_t sctpAssocId; 13157c478bd9Sstevel@tonic-gate /* type of local addr { sctpAssocLocalEntry 1 } */ 13167c478bd9Sstevel@tonic-gate int sctpAssocLocalAddrType; 13177c478bd9Sstevel@tonic-gate /* local address { sctpAssocLocalEntry 2 } */ 13187c478bd9Sstevel@tonic-gate Ip6Address sctpAssocLocalAddr; 13197c478bd9Sstevel@tonic-gate } mib2_sctpConnLocalEntry_t; 13207c478bd9Sstevel@tonic-gate 13217c478bd9Sstevel@tonic-gate typedef struct mib2_sctpConnRemoteAddrEntry { 13227c478bd9Sstevel@tonic-gate /* connection identier */ 13237c478bd9Sstevel@tonic-gate uint32_t sctpAssocId; 13247c478bd9Sstevel@tonic-gate /* remote addr type { sctpAssocRemEntry 1 } */ 13257c478bd9Sstevel@tonic-gate int sctpAssocRemAddrType; 13267c478bd9Sstevel@tonic-gate /* remote address { sctpAssocRemEntry 2 } */ 13277c478bd9Sstevel@tonic-gate Ip6Address sctpAssocRemAddr; 13287c478bd9Sstevel@tonic-gate /* is the address active { sctpAssocRemEntry 3 } */ 13297c478bd9Sstevel@tonic-gate int sctpAssocRemAddrActive; 13307c478bd9Sstevel@tonic-gate /* whether hearbeat is active { sctpAssocRemEntry 4 } */ 13317c478bd9Sstevel@tonic-gate int sctpAssocRemAddrHBActive; 13327c478bd9Sstevel@tonic-gate /* current RTO { sctpAssocRemEntry 5 } */ 13337c478bd9Sstevel@tonic-gate uint32_t sctpAssocRemAddrRTO; 13347c478bd9Sstevel@tonic-gate /* max # of rexmits before becoming inactive */ 13357c478bd9Sstevel@tonic-gate uint32_t sctpAssocRemAddrMaxPathRtx; /* {sctpAssocRemEntry 6} */ 13367c478bd9Sstevel@tonic-gate /* # of rexmits to this dest { sctpAssocRemEntry 7 } */ 13377c478bd9Sstevel@tonic-gate uint32_t sctpAssocRemAddrRtx; 13387c478bd9Sstevel@tonic-gate } mib2_sctpConnRemoteEntry_t; 13397c478bd9Sstevel@tonic-gate 13407c478bd9Sstevel@tonic-gate 13417c478bd9Sstevel@tonic-gate 13427c478bd9Sstevel@tonic-gate /* Pack data in mib2_sctp to make struct size the same for 32- and 64-bits */ 13437c478bd9Sstevel@tonic-gate #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4 13447c478bd9Sstevel@tonic-gate #pragma pack(4) 13457c478bd9Sstevel@tonic-gate #endif 13467c478bd9Sstevel@tonic-gate 13477c478bd9Sstevel@tonic-gate typedef struct mib2_sctp { 13487c478bd9Sstevel@tonic-gate /* algorithm used to determine rto { sctpParams 1 } */ 13497c478bd9Sstevel@tonic-gate int sctpRtoAlgorithm; 13507c478bd9Sstevel@tonic-gate /* min RTO in msecs { sctpParams 2 } */ 13517c478bd9Sstevel@tonic-gate uint32_t sctpRtoMin; 13527c478bd9Sstevel@tonic-gate /* max RTO in msecs { sctpParams 3 } */ 13537c478bd9Sstevel@tonic-gate uint32_t sctpRtoMax; 13547c478bd9Sstevel@tonic-gate /* initial RTO in msecs { sctpParams 4 } */ 13557c478bd9Sstevel@tonic-gate uint32_t sctpRtoInitial; 13567c478bd9Sstevel@tonic-gate /* max # of assocs { sctpParams 5 } */ 13577c478bd9Sstevel@tonic-gate int32_t sctpMaxAssocs; 13587c478bd9Sstevel@tonic-gate /* cookie lifetime in msecs { sctpParams 6 } */ 13597c478bd9Sstevel@tonic-gate uint32_t sctpValCookieLife; 13607c478bd9Sstevel@tonic-gate /* max # of retrans in startup { sctpParams 7 } */ 13617c478bd9Sstevel@tonic-gate uint32_t sctpMaxInitRetr; 13627c478bd9Sstevel@tonic-gate /* # of conns ESTABLISHED, SHUTDOWN-RECEIVED or SHUTDOWN-PENDING */ 13637c478bd9Sstevel@tonic-gate Counter32 sctpCurrEstab; /* { sctpStats 1 } */ 13647c478bd9Sstevel@tonic-gate /* # of active opens { sctpStats 2 } */ 13657c478bd9Sstevel@tonic-gate Counter32 sctpActiveEstab; 13667c478bd9Sstevel@tonic-gate /* # of passive opens { sctpStats 3 } */ 13677c478bd9Sstevel@tonic-gate Counter32 sctpPassiveEstab; 13687c478bd9Sstevel@tonic-gate /* # of aborted conns { sctpStats 4 } */ 13697c478bd9Sstevel@tonic-gate Counter32 sctpAborted; 13707c478bd9Sstevel@tonic-gate /* # of graceful shutdowns { sctpStats 5 } */ 13717c478bd9Sstevel@tonic-gate Counter32 sctpShutdowns; 13727c478bd9Sstevel@tonic-gate /* # of OOB packets { sctpStats 6 } */ 13737c478bd9Sstevel@tonic-gate Counter32 sctpOutOfBlue; 13747c478bd9Sstevel@tonic-gate /* # of packets discarded due to cksum { sctpStats 7 } */ 13757c478bd9Sstevel@tonic-gate Counter32 sctpChecksumError; 13767c478bd9Sstevel@tonic-gate /* # of control chunks sent { sctpStats 8 } */ 13777c478bd9Sstevel@tonic-gate Counter64 sctpOutCtrlChunks; 13787c478bd9Sstevel@tonic-gate /* # of ordered data chunks sent { sctpStats 9 } */ 13797c478bd9Sstevel@tonic-gate Counter64 sctpOutOrderChunks; 13807c478bd9Sstevel@tonic-gate /* # of unordered data chunks sent { sctpStats 10 } */ 13817c478bd9Sstevel@tonic-gate Counter64 sctpOutUnorderChunks; 13827c478bd9Sstevel@tonic-gate /* # of retransmitted data chunks */ 13837c478bd9Sstevel@tonic-gate Counter64 sctpRetransChunks; 13847c478bd9Sstevel@tonic-gate /* # of SACK chunks sent */ 13857c478bd9Sstevel@tonic-gate Counter sctpOutAck; 13867c478bd9Sstevel@tonic-gate /* # of delayed ACK timeouts */ 13877c478bd9Sstevel@tonic-gate Counter sctpOutAckDelayed; 13887c478bd9Sstevel@tonic-gate /* # of SACK chunks sent to update window */ 13897c478bd9Sstevel@tonic-gate Counter sctpOutWinUpdate; 13907c478bd9Sstevel@tonic-gate /* # of fast retransmits */ 13917c478bd9Sstevel@tonic-gate Counter sctpOutFastRetrans; 13927c478bd9Sstevel@tonic-gate /* # of window probes sent */ 13937c478bd9Sstevel@tonic-gate Counter sctpOutWinProbe; 13947c478bd9Sstevel@tonic-gate /* # of control chunks received { sctpStats 11 } */ 13957c478bd9Sstevel@tonic-gate Counter64 sctpInCtrlChunks; 13967c478bd9Sstevel@tonic-gate /* # of ordered data chunks rcvd { sctpStats 12 } */ 13977c478bd9Sstevel@tonic-gate Counter64 sctpInOrderChunks; 13987c478bd9Sstevel@tonic-gate /* # of unord data chunks rcvd { sctpStats 13 } */ 13997c478bd9Sstevel@tonic-gate Counter64 sctpInUnorderChunks; 14007c478bd9Sstevel@tonic-gate /* # of received SACK chunks */ 14017c478bd9Sstevel@tonic-gate Counter sctpInAck; 14027c478bd9Sstevel@tonic-gate /* # of received SACK chunks with duplicate TSN */ 14037c478bd9Sstevel@tonic-gate Counter sctpInDupAck; 14047c478bd9Sstevel@tonic-gate /* # of SACK chunks acking unsent data */ 14057c478bd9Sstevel@tonic-gate Counter sctpInAckUnsent; 14067c478bd9Sstevel@tonic-gate /* # of Fragmented User Messages { sctpStats 14 } */ 14077c478bd9Sstevel@tonic-gate Counter64 sctpFragUsrMsgs; 14087c478bd9Sstevel@tonic-gate /* # of Reassembled User Messages { sctpStats 15 } */ 14097c478bd9Sstevel@tonic-gate Counter64 sctpReasmUsrMsgs; 14107c478bd9Sstevel@tonic-gate /* # of Sent SCTP Packets { sctpStats 16 } */ 14117c478bd9Sstevel@tonic-gate Counter64 sctpOutSCTPPkts; 14127c478bd9Sstevel@tonic-gate /* # of Received SCTP Packets { sctpStats 17 } */ 14137c478bd9Sstevel@tonic-gate Counter64 sctpInSCTPPkts; 14147c478bd9Sstevel@tonic-gate /* # of invalid cookies received */ 14157c478bd9Sstevel@tonic-gate Counter sctpInInvalidCookie; 14167c478bd9Sstevel@tonic-gate /* total # of retransmit timeouts */ 14177c478bd9Sstevel@tonic-gate Counter sctpTimRetrans; 14187c478bd9Sstevel@tonic-gate /* total # of retransmit timeouts dropping the connection */ 14197c478bd9Sstevel@tonic-gate Counter sctpTimRetransDrop; 14207c478bd9Sstevel@tonic-gate /* total # of heartbeat probes */ 14217c478bd9Sstevel@tonic-gate Counter sctpTimHeartBeatProbe; 14227c478bd9Sstevel@tonic-gate /* total # of heartbeat timeouts dropping the connection */ 14237c478bd9Sstevel@tonic-gate Counter sctpTimHeartBeatDrop; 14247c478bd9Sstevel@tonic-gate /* total # of conns refused due to backlog full on listen */ 14257c478bd9Sstevel@tonic-gate Counter sctpListenDrop; 14267c478bd9Sstevel@tonic-gate /* total # of pkts received after the association has closed */ 14277c478bd9Sstevel@tonic-gate Counter sctpInClosed; 14287c478bd9Sstevel@tonic-gate int sctpEntrySize; 14297c478bd9Sstevel@tonic-gate int sctpLocalEntrySize; 14307c478bd9Sstevel@tonic-gate int sctpRemoteEntrySize; 14317c478bd9Sstevel@tonic-gate } mib2_sctp_t; 14327c478bd9Sstevel@tonic-gate 14337c478bd9Sstevel@tonic-gate #if _LONG_LONG_ALIGNMENT == 8 && _LONG_LONG_ALIGNMENT_32 == 4 14347c478bd9Sstevel@tonic-gate #pragma pack() 14357c478bd9Sstevel@tonic-gate #endif 14367c478bd9Sstevel@tonic-gate 14377c478bd9Sstevel@tonic-gate 14387c478bd9Sstevel@tonic-gate #ifdef __cplusplus 14397c478bd9Sstevel@tonic-gate } 14407c478bd9Sstevel@tonic-gate #endif 14417c478bd9Sstevel@tonic-gate 14427c478bd9Sstevel@tonic-gate #endif /* _INET_MIB2_H */ 1443