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

📄 pppmib.h

📁 PPPoE协议在Psos中的实现源代码
💻 H
字号:
/************************************************************************/
/*                                                                      */
/*   MODULE:  pppmib.h                                                  */
/*   PRODUCT: pNA+,  OpEN TCP/IP PPP driver                             */
/*   PURPOSE: PPPMIB  module                                            */
/*   DATE:    28 February, 1996                                         */
/*                                                                      */
/*----------------------------------------------------------------------*/
/*                                                                      */
/*              Copyright 1996, 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.  */
/*                                                                      */
/************************************************************************/
#ifndef __PPPMIB_H__
#define __PPPMIB_H__

struct mib_pppifentry {
    char   *ie_descr;          /* description of the interface */
    long   ie_type;            /* type of the interface */
    long   ie_mtu;             /* Maximum transmission unit */
    long   ie_speed;           /* speed of the interface */
    char   *ie_physaddress;    /* media-specific address */
    long   ie_adminstatus;     /* desired interface state */
    long   ieu_operstatus;     /* current operational status */
    long   ie_lastchange;      /* last change in the interface status */
    long   ie_inoctets;        /* total octets received from media */
    long   ie_inucastpkts;     /* unicast packets delivered above */
    long   ie_innucastpkts;    /* broadcast/muticast pkts delivered above */
    long   ie_indiscards;      /* packets discarded due to resource limit */
    long   ie_inerrors;        /* packets discarded due to format errors */
    long   ie_inunknownprotos; /* packets for unknown protocols */
    long   ie_outoctets;       /* total octets sent on the media */
    long   ie_outucastpkts;    /* unicast packets from above */
    long   ie_outnucastpkts;   /* broadcast/multicast packets from above */
    long   ie_outdiscards;     /* packets discarded due to res. limit */
    long   ie_outerrors;       /* packets discarded due to errors */
    long   ie_outqlen;         /* size of output queue */
    char   *ie_specific;       /* MIB-specific pointer */
};

struct mib_pppLinkStatusEntry {
    long ie_PhysicalIndex;
    long ie_BadAddresses;
    long ie_BadControls;
    long ie_PacketTooLongs;
    long ie_BadFCSs;
    long ie_LocalMru;
    long ie_RemoteMRU;
    long ie_LocalToPeerACCMap;
    long ie_PeerToLocalACCMap;
    long ie_LToRProtComp;
    long ie_RToLProtComp;
    long ie_LToRACCompression;
    long ie_RToLACCompression;
    long ie_TransmitFcsSize;
    long ie_ReceiveFcsSize;
};

struct mib_pppIPEntry {
    long ie_OperStatus;
    long ie_LToRCompProt;
    long ie_RToLCompProt;
    long ie_RemoteMaxSlotId;
    long ie_LocalMaxSlotId;
};

#define     PIOCGIFENTRY          1
#define     PIOCGLINKSTATUS       2
#define     PIOCGIPENTRY          3

#endif /* __PPPMIB_H__ */

⌨️ 快捷键说明

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