📄 pna_mib.h
字号:
/***********************************************************************//* *//* MODULE: pna_mib.h 1.3 *//* DATE: 17:58:27 - 97/12/05 *//* PURPOSE: MIB II variable definitions *//* *//*---------------------------------------------------------------------*//* *//* Copyright 1991-1993, Integrated Systems, Inc. *//* ALL RIGHTS RESERVED *//* *//* Permission is hereby granted to licensees of Integrated Systems, *//* Inc. products to use or abstract this computer program for the *//* sole purpose of implementing a product based on Integrated *//* Systems, Inc. products. No other rights to reproduce, use, *//* or disseminate this computer program, whether in part or in *//* whole, are granted. *//* *//* Integrated Systems, Inc. makes no representation or warranties *//* with respect to the performance of this computer program, and *//* specifically disclaims any responsibility for any damages, *//* special or consequential, connected with the use of this program. *//* *//***********************************************************************//*---------------------------------------------------------------------*//* Don't allow this file to be included more than once. *//*---------------------------------------------------------------------*/#ifndef _PNA_MIB_H#define _PNA_MIB_H#if defined(__cplusplus)extern "C" {#endif#include <pna.h>/*----------------------------------------------------------------------*//* Definitions for Interface Group MIB variables *//* GET command definitions *//*----------------------------------------------------------------------*/#define SIOCGIFNUMBER 0x40016D01 /* get interface number */#define SIOCGIFTABLE 0x40016D02 /* get Interface table */#define SIOCGIFINDEX 0x40016D03 /* get NI index */#define SIOCGIFDESCR 0x40016D04 /* Get ni descr */#define SIOCGIFTYPE 0x40016D05 /* Get NI type */#define SIOCGIFMTUNIT 0x40016D06 /* Get NI mtu */#define SIOCGIFSPEED 0x40016D07 /* Get NI speed */#define SIOCGIFPHYSADDRESS 0x40016D08 /* Get ni Phy. Address */#define SIOCGIFADMINSTATUS 0x40016D09 /* Get ni admin status */#define SIOCGIFOPERSTATUS 0x40016D0A /* Get NI operatioanl status */#define SIOCGIFLASTCHANGE 0x40016D0B /* Get last change in status */#define SIOCGIFINOCTETS 0x40016D0C /* Get no of octets rcvd. */#define SIOCGIFINUCASTPKTS 0x40016D0D /* Get no. of unicast pkts rcvd */#define SIOCGIFINNUCASTPKTS 0x40016D0E /* Get no. of multi. pkts rcvd */#define SIOCGIFINDISCARDS 0x40016D0F /* Get no of pckts discarded */#define SIOCGIFINERRORS 0x40016D10 /* Get no of error pckts */#define SIOCGIFINUNKNOWNPROTOS 0x40016D11 /* No of pckts for unk. protocol */#define SIOCGIFOUTOCTETS 0x40016D12 /* No of octets rcvd */#define SIOCGIFOUTUCASTPKTS 0x40016D13 /* No of unicast pkts sent */#define SIOCGIFOUTNUCASTPKTS 0x40016D14 /* No of multi. pkts sent */#define SIOCGIFOUTDISCARDS 0x40016D15 /* No of out pkts discarded */#define SIOCGIFOUTERRORS 0x40016D16 /* No of outbounds pkts errors */#define SIOCGIFOUTQLEN 0x40016D17 /* Length of output Q length */#define SIOCGIFSPECIFIC 0x40016D18 /* NI specific parameter *//*----------------------------------------------------------------------*//* set command definitions *//*----------------------------------------------------------------------*/#define SIOCSIFADMINSTATUS 0x80016D09 /* set Interface admin. status *//*----------------------------------------------------------------------*//* Definitions for IP Group MIB variables *//* GET command definitions *//*----------------------------------------------------------------------*/#define SIOCGIPFORWARDING 0x40026D01 /* IP forwarding var. */#define SIOCGIPDEFAULTTTL 0x40026D02 /* IP def. Time-to-Live var */#define SIOCGIPINRECEIVES 0x40026D03 /* IP dgrams rec. from below */#define SIOCGIPINHDRERRORS 0x40026D04 /* IP dgrams format errs drops */#define SIOCGIPINADDRERRORS 0x40026D05 /* IP dgrams misdelivery drops */#define SIOCGIPFORWDATAGRAMS 0x40026D06 /* IP dgrams forwarded */#define SIOCGIPINUNKNOWNPROTOS 0x40026D07 /* IP unknown proto. dgrams */#define SIOCGIPINDISCARDS 0x40026D08 /* IP disc. dgrms for resources */#define SIOCGIPINDELIVERS 0x40026D09 /* IP dgrams delivered above */#define SIOCGIPOUTREQUESTS 0x40026D0A /* IP dgrams sent out */#define SIOCGIPOUTDISCARDS 0x40026D0B /* IP out dgrams discarded */#define SIOCGIPOUTNOROUTES 0x40026D0C /* IP dgrams drops for no routes */#define SIOCGIPREASMTIMEOUT 0x40026D0D /* IP retrans. queue timeout */#define SIOCGIPREASMREQDS 0x40026D0E /* IP frags. needing reass. */#define SIOCGIPREASMOKS 0x40026D0F /* IP frags. reassembled */#define SIOCGIPREASMFAILS 0x40026D10 /* IP frag reassembly fails */#define SIOCGIPFRAGOKS 0x40026D11 /* IP dgrams fragmented */#define SIOCGIPFRAGFAILS 0x40026D12 /* IP dgrams fragmentation fails */#define SIOCGIPFRAGCREATES 0x40026D13 /* IP frags. created */#define SIOCGIPROUTINGDISCARDS 0x40026D14 /* IP Routing ent. discarded *//*----------------------------------------------------------------------*//* SET command definitions *//*----------------------------------------------------------------------*/#define SIOCSIPFORWARDING 0x80026D01 /* IP forwarding variable */#define SIOCSIPDEFAULTTTL 0x80026D02 /* IP Defautl time-to-live */#define SIOCSIPREASMTIMEOUT 0x80026D0D /* IP retrans. queue timeout *//*----------------------------------------------------------------------*//* Definitions for IP NI address table *//* GET commands definitions *//*----------------------------------------------------------------------*/#define SIOCGIPADDRTABLE 0x40036D01 /* IP Address table */#define SIOCGIPADDRENTADDR 0x40036D03 /* IP Address of the addr entry */#define SIOCGIPADDRENTIFINDEX 0x40036D04 /* NI number of the interface */#define SIOCGIPADDRENTNETMASK 0x40036D05 /* Netmask of the NI */#define SIOCGIPADDRENTBCASTADDR 0x40036D06 /* IP Broadcast Address of the NI*/#define SIOCGIPADDRENTREASMMAXSIZE 0x40036D07 /* IP max. reassm. size *//*----------------------------------------------------------------------*//* Definitions for IP route table *//* GET command definitions *//*----------------------------------------------------------------------*/#define SIOCGIPROUTETABLE 0x40046D01 /* IP routing table */#define SIOCGIPROUTEDEST 0x40046D03 /* Route destination */#define SIOCGIPROUTEIFINDEX 0x40046D04 /* Interface Index of the route */#define SIOCGIPROUTENEXTHOP 0x40046D05 /* Next hop of the route */#define SIOCGIPROUTETYPE 0x40046D06 /* Type of the route */#define SIOCGIPROUTEPROTO 0x40046D07 /* Protocol used by the route */#define SIOCGIPROUTEAGE 0x40046D08 /* Age of the Route */#define SIOCGIPROUTEMASK 0x40046D09 /* Mask used by the route *//*----------------------------------------------------------------------*//* SET command definitions *//*----------------------------------------------------------------------*/#define SIOCSIPROUTEDEST 0x80046D03 /* Route destination */#define SIOCSIPROUTENEXTHOP 0x80046D05 /* Next hop of the route */#define SIOCSIPROUTETYPE 0x80046D06 /* Type of the route *//*----------------------------------------------------------------------*//* Definitions for IP NET-TO-MEDIA table *//* GET command definitions *//*----------------------------------------------------------------------*/#define SIOCGIPNETTOMEDIATABLE 0x40056D01 /* IP Net-to-Media table */#define SIOCGIPNETTOMEDIAIFINDEX 0x40056D03 /* Index of the Entry */#define SIOCGIPNETTOMEDIAPHYSADDRESS 0x40056D04 /* Physical add. of entry */#define SIOCGIPNETTOMEDIANETADDRESS 0x40056D05 /* IP address of entry */#define SIOCGIPNETTOMEDIATYPE 0x40056D06 /* Type of the entry *//*----------------------------------------------------------------------*//* SET command definitions *//*----------------------------------------------------------------------*/#define SIOCSIPNETTOMEDIAPHYSADDRESS 0x80056D04 /* Physical add. of entry */#define SIOCSIPNETTOMEDIANETADDRESS 0x80056D05 /* IP address of entry */#define SIOCSIPNETTOMEDIATYPE 0x80056D06/*----------------------------------------------------------------------*//* Definitions for ICMP Group MIB variables *//* GET command definitions *//*----------------------------------------------------------------------*/#define SIOCGICMPINMSGS 0x40066D01 /* ICMP msgs. received */#define SIOCGICMPINERRORS 0x40066D02 /* ICMP msgs. with format errs */#define SIOCGICMPINDESTUNREACHS 0x40066D03 /* ICMP dest. Unreach. msgs rcvd*/#define SIOCGICMPINTIMEEXCDS 0x40066D04 /* ICMP time excds. msgs. rcvd. */#define SIOCGICMPINPARAMPROBS 0x40066D05 /* ICMP param. prob. msgs rcvd */#define SIOCGICMPINSRCQUENCHS 0x40066D06 /*ICMP src. quench msgs rcvd */#define SIOCGICMPINREDIRECTS 0x40066D07 /* ICMP src quenchs rcvd */#define SIOCGICMPINECHOS 0x40066D08 /* ICMP echo msgs rcvd */#define SIOCGICMPINECHOREPS 0x40066D09 /* ICMP echo reply msgs rcvd */#define SIOCGICMPINTIMESTAMPS 0x40066D0A /* ICMP time stamp msgs rcvd */#define SIOCGICMPINTIMESTAMPREPS 0x40066D0B /* ICMP time stp rep msgs rcvd */#define SIOCGICMPINADDRMASKS 0x40066D0C /* ICMP address masks msgs rcvd */#define SIOCGICMPINADDRMASKREPS 0x40066D0D /*ICMP addr masks reps msgs rcvd */#define SIOCGICMPOUTMSGS 0x40066D0E /* ICMP messages sent */#define SIOCGICMPOUTERRORS 0x40066D0F /* ICMP out error msgs. */#define SIOCGICMPOUTDESTUNREACHS 0x40066D10 /* ICMP dest unreach msgs sent */#define SIOCGICMPOUTTIMEEXCDS 0x40066D11 /* ICMP time exceed msgs sent */#define SIOCGICMPOUTPARAMPROBS 0x40066D12 /* ICMP param prob. msgs sent */#define SIOCGICMPOUTSRCQUENCHS 0x40066D13 /* ICMP src quench msgs sent */#define SIOCGICMPOUTREDIRECTS 0x40066D14 /* ICMP redirect msgs sent */#define SIOCGICMPOUTECHOS 0x40066D15 /* ICMP echo msgs sent */#define SIOCGICMPOUTECHOREPS 0x40066D16 /* ICMP echo reply msgs sent */#define SIOCGICMPOUTTIMESTAMPS 0x40066D17 /* ICMP time stamps msgs sent */#define SIOCGICMPOUTTIMESTAMPREPS 0x40066D18 /* ICMP time stps reps sent */#define SIOCGICMPOUTADDRMASKS 0x40066D19 /* ICMP addr mask msgs sent */#define SIOCGICMPOUTADDRMASKREPS 0x40066D1A /* ICMP addr mask rep msgs sent *//*----------------------------------------------------------------------*//* Definitions for TCP Group MIB variables *//* GET command definitions *//*----------------------------------------------------------------------*/#define SIOCGTCPRTOALGORITHM 0x40076D01 /* TCP retransmission algorithm */#define SIOCGTCPRTOMIN 0x40076D02 /* TCP min. retrans. timeout */#define SIOCGTCPRTOMAX 0x40076D03 /* TCP max. retrans. timeout */#define SIOCGTCPMAXCONN 0x40076D04 /* TCP max. simul. connections */#define SIOCGTCPACTIVEOPENS 0x40076D05 /* TCP active opens */#define SIOCGTCPPASSIVEOPENS 0x40076D06 /* TCP number of passive opens */#define SIOCGTCPATTEMPTFAILS 0x40076D07 /* TCP no. of failed conn. attempts*/#define SIOCGTCPESTABRESETS 0x40076D08 /* TCP no. connections reset */#define SIOCGTCPCURRESTAB 0x40076D09 /* TCP no. of curr. connections */#define SIOCGTCPINSEGS 0x40076D0A /* TCP no. of segs. received */#define SIOCGTCPOUTSEGS 0x40076D0B /* TCP no. of segs. sent */#define SIOCGTCPRETRANSSEGS 0x40076D0C /* TCP no. of segs retransmitted */#define SIOCGTCPCONNTABLE 0x40076D0D /* TCP connection table */#define SIOCGTCPCONNSTATE 0x40076D0E /* TCP connection entry */#define SIOCGTCPINERRS 0x40076D0F /* TCP no. of segs. disc. due to errs*/#define SIOCGTCPOUTRSTS 0x40076D10 /* TCP no. of reset segs. sent *//*----------------------------------------------------------------------*//* SET command definitions *//*----------------------------------------------------------------------*/#define SIOCSTCPCONNSTATE 0x80076D0E /* TCP connection entry *//*----------------------------------------------------------------------*//* Definitions for UDP MIB variables *//* GET command definitions *//*----------------------------------------------------------------------*/#define SIOCGUDPINDATAGRAMS 0x40086D01 /* UDP dgrams delivered */#define SIOCGUDPNOPORTS 0x40086D02 /* UDP dgrams rcvd for unkown ports*/#define SIOCGUDPINERRORS 0x40086D03 /* UDP dgrams dropped to format errs*/#define SIOCGUDPOUTDATAGRAMS 0x40086D04 /* UDP dgrms sent from appls. */#define SIOCGUDPTABLE 0x40086D05 /* UDP table */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -