1000 lines
36 KiB
C
1000 lines
36 KiB
C
/*++
|
|
|
|
Copyright (c) 1996 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
|
|
Abstract:
|
|
|
|
|
|
Author:
|
|
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#ifndef __MIBFUNCS_H__
|
|
#define __MIBFUNCS_H__
|
|
|
|
#define MAX_SYS_NAME_LEN 256
|
|
#define MAX_SYS_DESCR_LEN 256
|
|
#define MAX_SYS_CONTACT_LEN 256
|
|
#define MAX_SYS_LOCATION_LEN 256
|
|
|
|
typedef struct _MIB_SYSINFO
|
|
{
|
|
DWORD dwSysServices;
|
|
BYTE rgbySysName[MAX_SYS_NAME_LEN];
|
|
BYTE rgbySysDescr[MAX_SYS_DESCR_LEN];
|
|
BYTE rgbySysContact[MAX_SYS_CONTACT_LEN];
|
|
BYTE rgbySysLocation[MAX_SYS_LOCATION_LEN];
|
|
AsnAny aaSysObjectID;
|
|
} MIB_SYSINFO, *PMIB_SYSINFO;
|
|
|
|
typedef struct _SYS_INFO_GET
|
|
{
|
|
AsnAny sysDescr;
|
|
AsnAny sysObjectID;
|
|
AsnAny sysUpTime;
|
|
AsnAny sysContact;
|
|
AsnAny sysName;
|
|
AsnAny sysLocation;
|
|
AsnAny sysServices;
|
|
BYTE rgbySysNameInfo[MAX_SYS_NAME_LEN];
|
|
BYTE rgbySysDescrInfo[MAX_SYS_DESCR_LEN];
|
|
BYTE rgbySysContactInfo[MAX_SYS_CONTACT_LEN];
|
|
BYTE rgbySysLocationInfo[MAX_SYS_LOCATION_LEN];
|
|
} SYS_INFO_GET, *PSYS_INFO_GET;
|
|
|
|
typedef struct _SYS_INFO_SET
|
|
{
|
|
AsnAny sysContact;
|
|
AsnAny sysName;
|
|
AsnAny sysLocation;
|
|
BOOL bLocked;
|
|
HKEY hkeyMib2;
|
|
BYTE rgbySysNameInfo[MAX_SYS_NAME_LEN];
|
|
BYTE rgbySysContactInfo[MAX_SYS_CONTACT_LEN];
|
|
BYTE rgbySysLocationInfo[MAX_SYS_LOCATION_LEN];
|
|
} SYS_INFO_SET, *PSYS_INFO_SET;
|
|
|
|
UINT
|
|
MibGetSysInfo(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
UINT
|
|
MibSetSysInfo(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define gf_sysDescr MibGetSysInfo
|
|
#define gf_sysObjectID MibGetSysInfo
|
|
#define gf_sysUpTime MibGetSysInfo
|
|
#define gf_sysContact MibGetSysInfo
|
|
#define gf_sysName MibGetSysInfo
|
|
#define gf_sysLocation MibGetSysInfo
|
|
#define gf_sysServices MibGetSysInfo
|
|
|
|
#define gb_sysDescr SYS_INFO_GET
|
|
#define gb_sysObjectID SYS_INFO_GET
|
|
#define gb_sysUpTime SYS_INFO_GET
|
|
#define gb_sysContact SYS_INFO_GET
|
|
#define gb_sysName SYS_INFO_GET
|
|
#define gb_sysLocation SYS_INFO_GET
|
|
#define gb_sysServices SYS_INFO_GET
|
|
|
|
#define sf_sysContact MibSetSysInfo
|
|
#define sf_sysName MibSetSysInfo
|
|
#define sf_sysLocation MibSetSysInfo
|
|
|
|
#define sb_sysContact SYS_INFO_SET
|
|
#define sb_sysName SYS_INFO_SET
|
|
#define sb_sysLocation SYS_INFO_SET
|
|
|
|
#define MAX_PHYS_ADDR_LEN 8
|
|
#define MAX_IF_DESCR_LEN 256
|
|
#define NULL_OID_LEN 2
|
|
|
|
typedef enum _ROW_ACTION
|
|
{
|
|
DELETE_ROW = 0,
|
|
CREATE_ROW,
|
|
SET_ROW,
|
|
NOP
|
|
}ROW_ACTION, *PROW_ACTION;
|
|
|
|
typedef struct _IF_NUMBER_GET
|
|
{
|
|
AsnAny ifNumber;
|
|
}IF_NUMBER_GET,*PIF_NUMBER_GET;
|
|
|
|
UINT
|
|
MibGetIfNumber(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define gf_ifNumber MibGetIfNumber
|
|
|
|
#define gb_ifNumber IF_NUMBER_GET
|
|
|
|
typedef struct _IF_ENTRY_GET
|
|
{
|
|
AsnAny ifIndex;
|
|
AsnAny ifDescr;
|
|
AsnAny ifType;
|
|
AsnAny ifMtu;
|
|
AsnAny ifSpeed;
|
|
AsnAny ifPhysAddress;
|
|
AsnAny ifAdminStatus;
|
|
AsnAny ifOperStatus;
|
|
AsnAny ifLastChange;
|
|
AsnAny ifInOctets;
|
|
AsnAny ifInUcastPkts;
|
|
AsnAny ifInNUcastPkts;
|
|
AsnAny ifInDiscards;
|
|
AsnAny ifInErrors;
|
|
AsnAny ifInUnknownProtos;
|
|
AsnAny ifOutOctets;
|
|
AsnAny ifOutUcastPkts;
|
|
AsnAny ifOutNUcastPkts;
|
|
AsnAny ifOutDiscards;
|
|
AsnAny ifOutErrors;
|
|
AsnAny ifOutQLen;
|
|
AsnAny ifSpecific;
|
|
BYTE rgbyIfPhysAddressInfo[MAX_PHYS_ADDR_LEN];
|
|
BYTE rgbyIfDescrInfo[MAX_IF_DESCR_LEN];
|
|
}IF_ENTRY_GET, *PIF_ENTRY_GET;
|
|
|
|
UINT
|
|
MibGetIfEntry(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define gf_ifEntry MibGetIfEntry
|
|
#define gf_ifIndex MibGetIfEntry
|
|
#define gf_ifDescr MibGetIfEntry
|
|
#define gf_ifType MibGetIfEntry
|
|
#define gf_ifMtu MibGetIfEntry
|
|
#define gf_ifSpeed MibGetIfEntry
|
|
#define gf_ifPhysAddress MibGetIfEntry
|
|
#define gf_ifAdminStatus MibGetIfEntry
|
|
#define gf_ifOperStatus MibGetIfEntry
|
|
#define gf_ifLastChange MibGetIfEntry
|
|
#define gf_ifInOctets MibGetIfEntry
|
|
#define gf_ifInUcastPkts MibGetIfEntry
|
|
#define gf_ifInNUcastPkts MibGetIfEntry
|
|
#define gf_ifInDiscards MibGetIfEntry
|
|
#define gf_ifInErrors MibGetIfEntry
|
|
#define gf_ifInUnknownProtos MibGetIfEntry
|
|
#define gf_ifOutOctets MibGetIfEntry
|
|
#define gf_ifOutUcastPkts MibGetIfEntry
|
|
#define gf_ifOutNUcastPkts MibGetIfEntry
|
|
#define gf_ifOutDiscards MibGetIfEntry
|
|
#define gf_ifOutErrors MibGetIfEntry
|
|
#define gf_ifOutQLen MibGetIfEntry
|
|
#define gf_ifSpecific MibGetIfEntry
|
|
|
|
#define gb_ifEntry IF_ENTRY_GET
|
|
#define gb_ifIndex IF_ENTRY_GET
|
|
#define gb_ifDescr IF_ENTRY_GET
|
|
#define gb_ifType IF_ENTRY_GET
|
|
#define gb_ifMtu IF_ENTRY_GET
|
|
#define gb_ifSpeed IF_ENTRY_GET
|
|
#define gb_ifPhysAddress IF_ENTRY_GET
|
|
#define gb_ifAdminStatus IF_ENTRY_GET
|
|
#define gb_ifOperStatus IF_ENTRY_GET
|
|
#define gb_ifLastChange IF_ENTRY_GET
|
|
#define gb_ifInOctets IF_ENTRY_GET
|
|
#define gb_ifInUcastPkts IF_ENTRY_GET
|
|
#define gb_ifInNUcastPkts IF_ENTRY_GET
|
|
#define gb_ifInDiscards IF_ENTRY_GET
|
|
#define gb_ifInErrors IF_ENTRY_GET
|
|
#define gb_ifInUnknownProtos IF_ENTRY_GET
|
|
#define gb_ifOutOctets IF_ENTRY_GET
|
|
#define gb_ifOutUcastPkts IF_ENTRY_GET
|
|
#define gb_ifOutNUcastPkts IF_ENTRY_GET
|
|
#define gb_ifOutDiscards IF_ENTRY_GET
|
|
#define gb_ifOutErrors IF_ENTRY_GET
|
|
#define gb_ifOutQLen IF_ENTRY_GET
|
|
#define gb_ifSpecific IF_ENTRY_GET
|
|
|
|
typedef struct _IF_ENTRY_SET
|
|
{
|
|
AsnAny ifIndex;
|
|
AsnAny ifAdminStatus;
|
|
BOOL bLocked;
|
|
ROW_ACTION raAction;
|
|
DWORD rgdwSetBuffer[MIB_INFO_SIZE_IN_DWORDS(MIB_IFROW)];
|
|
}IF_ENTRY_SET, *PIF_ENTRY_SET;
|
|
|
|
UINT
|
|
MibSetIfEntry(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define sf_ifAdminStatus MibSetIfEntry
|
|
|
|
#define sb_ifAdminStatus IF_ENTRY_SET
|
|
|
|
typedef struct _IP_STATS_GET
|
|
{
|
|
AsnAny ipForwarding;
|
|
AsnAny ipDefaultTTL;
|
|
AsnAny ipInReceives;
|
|
AsnAny ipInHdrErrors;
|
|
AsnAny ipInAddrErrors;
|
|
AsnAny ipForwDatagrams;
|
|
AsnAny ipInUnknownProtos;
|
|
AsnAny ipInDiscards;
|
|
AsnAny ipInDelivers;
|
|
AsnAny ipOutRequests;
|
|
AsnAny ipOutDiscards;
|
|
AsnAny ipOutNoRoutes;
|
|
AsnAny ipReasmTimeout;
|
|
AsnAny ipReasmReqds;
|
|
AsnAny ipReasmOKs;
|
|
AsnAny ipReasmFails;
|
|
AsnAny ipFragOKs;
|
|
AsnAny ipFragFails;
|
|
AsnAny ipFragCreates;
|
|
AsnAny ipRoutingDiscards;
|
|
}IP_STATS_GET, *PIP_STATS_GET;
|
|
|
|
UINT
|
|
MibGetIpGroup(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define gf_ipForwarding MibGetIpGroup
|
|
#define gf_ipDefaultTTL MibGetIpGroup
|
|
#define gf_ipInReceives MibGetIpGroup
|
|
#define gf_ipInHdrErrors MibGetIpGroup
|
|
#define gf_ipInAddrErrors MibGetIpGroup
|
|
#define gf_ipForwDatagrams MibGetIpGroup
|
|
#define gf_ipInUnknownProtos MibGetIpGroup
|
|
#define gf_ipInDiscards MibGetIpGroup
|
|
#define gf_ipInDelivers MibGetIpGroup
|
|
#define gf_ipOutRequests MibGetIpGroup
|
|
#define gf_ipOutDiscards MibGetIpGroup
|
|
#define gf_ipOutNoRoutes MibGetIpGroup
|
|
#define gf_ipReasmTimeout MibGetIpGroup
|
|
#define gf_ipReasmReqds MibGetIpGroup
|
|
#define gf_ipReasmOKs MibGetIpGroup
|
|
#define gf_ipReasmFails MibGetIpGroup
|
|
#define gf_ipFragOKs MibGetIpGroup
|
|
#define gf_ipFragFails MibGetIpGroup
|
|
#define gf_ipFragCreates MibGetIpGroup
|
|
#define gf_ipRoutingDiscards MibGetIpGroup
|
|
|
|
#define gb_ipForwarding IP_STATS_GET
|
|
#define gb_ipDefaultTTL IP_STATS_GET
|
|
#define gb_ipInReceives IP_STATS_GET
|
|
#define gb_ipInHdrErrors IP_STATS_GET
|
|
#define gb_ipInAddrErrors IP_STATS_GET
|
|
#define gb_ipForwDatagrams IP_STATS_GET
|
|
#define gb_ipInUnknownProtos IP_STATS_GET
|
|
#define gb_ipInDiscards IP_STATS_GET
|
|
#define gb_ipInDelivers IP_STATS_GET
|
|
#define gb_ipOutRequests IP_STATS_GET
|
|
#define gb_ipOutDiscards IP_STATS_GET
|
|
#define gb_ipOutNoRoutes IP_STATS_GET
|
|
#define gb_ipReasmTimeout IP_STATS_GET
|
|
#define gb_ipReasmReqds IP_STATS_GET
|
|
#define gb_ipReasmOKs IP_STATS_GET
|
|
#define gb_ipReasmFails IP_STATS_GET
|
|
#define gb_ipFragOKs IP_STATS_GET
|
|
#define gb_ipFragFails IP_STATS_GET
|
|
#define gb_ipFragCreates IP_STATS_GET
|
|
#define gb_ipRoutingDiscards IP_STATS_GET
|
|
|
|
typedef struct _IP_STATS_SET
|
|
{
|
|
AsnAny ipForwarding;
|
|
AsnAny ipDefaultTTL;
|
|
DWORD rgdwSetBuffer[MIB_INFO_SIZE_IN_DWORDS(MIB_IPSTATS)];
|
|
}IP_STATS_SET, *PIP_STATS_SET;
|
|
|
|
UINT
|
|
MibSetIpGroup(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define sf_ipForwarding MibSetIpGroup
|
|
#define sf_ipDefaultTTL MibSetIpGroup
|
|
|
|
#define sb_ipForwarding IP_STATS_SET
|
|
#define sb_ipDefaultTTL IP_STATS_SET
|
|
|
|
|
|
//
|
|
// The space kept for IP Addresses is a DWORD
|
|
//
|
|
|
|
typedef struct _IP_ADDRESS_ENTRY_GET
|
|
{
|
|
AsnAny ipAdEntAddr;
|
|
AsnAny ipAdEntIfIndex;
|
|
AsnAny ipAdEntNetMask;
|
|
AsnAny ipAdEntBcastAddr;
|
|
AsnAny ipAdEntReasmMaxSize;
|
|
DWORD dwIpAdEntAddrInfo;
|
|
DWORD dwIpAdEntNetMaskInfo;
|
|
}IP_ADDRESS_ENTRY_GET, *PIP_ADDRESS_ENTRY_GET;
|
|
|
|
UINT
|
|
MibGetIpAddressEntry(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define gf_ipAdEntAddr MibGetIpAddressEntry
|
|
#define gf_ipAdEntIfIndex MibGetIpAddressEntry
|
|
#define gf_ipAdEntNetMask MibGetIpAddressEntry
|
|
#define gf_ipAdEntBcastAddr MibGetIpAddressEntry
|
|
#define gf_ipAdEntReasmMaxSize MibGetIpAddressEntry
|
|
|
|
#define gb_ipAdEntAddr IP_ADDRESS_ENTRY_GET
|
|
#define gb_ipAdEntIfIndex IP_ADDRESS_ENTRY_GET
|
|
#define gb_ipAdEntNetMask IP_ADDRESS_ENTRY_GET
|
|
#define gb_ipAdEntBcastAddr IP_ADDRESS_ENTRY_GET
|
|
#define gb_ipAdEntReasmMaxSize IP_ADDRESS_ENTRY_GET
|
|
|
|
typedef struct _IP_ROUTE_ENTRY_GET
|
|
{
|
|
AsnAny ipRouteDest;
|
|
AsnAny ipRouteIfIndex;
|
|
AsnAny ipRouteMetric1;
|
|
AsnAny ipRouteMetric2;
|
|
AsnAny ipRouteMetric3;
|
|
AsnAny ipRouteMetric4;
|
|
AsnAny ipRouteNextHop;
|
|
AsnAny ipRouteType;
|
|
AsnAny ipRouteProto;
|
|
AsnAny ipRouteAge;
|
|
AsnAny ipRouteMask;
|
|
AsnAny ipRouteMetric5;
|
|
AsnAny ipRouteInfo;
|
|
DWORD dwIpRouteDestInfo;
|
|
DWORD dwIpRouteMaskInfo;
|
|
DWORD dwIpRouteNextHopInfo;
|
|
}IP_ROUTE_ENTRY_GET, *PIP_ROUTE_ENTRY_GET;
|
|
|
|
UINT
|
|
MibGetIpRouteEntry(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define gf_ipRouteDest MibGetIpRouteEntry
|
|
#define gf_ipRouteIfIndex MibGetIpRouteEntry
|
|
#define gf_ipRouteMetric1 MibGetIpRouteEntry
|
|
#define gf_ipRouteMetric2 MibGetIpRouteEntry
|
|
#define gf_ipRouteMetric3 MibGetIpRouteEntry
|
|
#define gf_ipRouteMetric4 MibGetIpRouteEntry
|
|
#define gf_ipRouteNextHop MibGetIpRouteEntry
|
|
#define gf_ipRouteType MibGetIpRouteEntry
|
|
#define gf_ipRouteProto MibGetIpRouteEntry
|
|
#define gf_ipRouteAge MibGetIpRouteEntry
|
|
#define gf_ipRouteMask MibGetIpRouteEntry
|
|
#define gf_ipRouteMetric5 MibGetIpRouteEntry
|
|
#define gf_ipRouteInfo MibGetIpRouteEntry
|
|
|
|
#define gb_ipRouteDest IP_ROUTE_ENTRY_GET
|
|
#define gb_ipRouteIfIndex IP_ROUTE_ENTRY_GET
|
|
#define gb_ipRouteMetric1 IP_ROUTE_ENTRY_GET
|
|
#define gb_ipRouteMetric2 IP_ROUTE_ENTRY_GET
|
|
#define gb_ipRouteMetric3 IP_ROUTE_ENTRY_GET
|
|
#define gb_ipRouteMetric4 IP_ROUTE_ENTRY_GET
|
|
#define gb_ipRouteNextHop IP_ROUTE_ENTRY_GET
|
|
#define gb_ipRouteType IP_ROUTE_ENTRY_GET
|
|
#define gb_ipRouteProto IP_ROUTE_ENTRY_GET
|
|
#define gb_ipRouteAge IP_ROUTE_ENTRY_GET
|
|
#define gb_ipRouteMask IP_ROUTE_ENTRY_GET
|
|
#define gb_ipRouteMetric5 IP_ROUTE_ENTRY_GET
|
|
#define gb_ipRouteInfo IP_ROUTE_ENTRY_GET
|
|
|
|
typedef struct _IP_ROUTE_ENTRY_SET
|
|
{
|
|
AsnAny ipRouteDest;
|
|
AsnAny ipRouteIfIndex;
|
|
AsnAny ipRouteMetric1;
|
|
AsnAny ipRouteMetric2;
|
|
AsnAny ipRouteMetric3;
|
|
AsnAny ipRouteMetric4;
|
|
AsnAny ipRouteNextHop;
|
|
AsnAny ipRouteType;
|
|
AsnAny ipRouteProto;
|
|
AsnAny ipRouteAge;
|
|
AsnAny ipRouteMask;
|
|
AsnAny ipRouteMetric5;
|
|
BOOL bLocked;
|
|
DWORD dwIpRouteDestInfo;
|
|
DWORD dwIpRouteMaskInfo;
|
|
DWORD dwIpRouteNextHopInfo;
|
|
ROW_ACTION raAction;
|
|
DWORD rgdwSetBuffer[MIB_INFO_SIZE_IN_DWORDS(MIB_IPFORWARDROW)];
|
|
}IP_ROUTE_ENTRY_SET, *PIP_ROUTE_ENTRY_SET;
|
|
|
|
UINT
|
|
MibSetIpRouteEntry(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define sf_ipRouteDest MibSetIpRouteEntry
|
|
#define sf_ipRouteIfIndex MibSetIpRouteEntry
|
|
#define sf_ipRouteMetric1 MibSetIpRouteEntry
|
|
#define sf_ipRouteMetric2 MibSetIpRouteEntry
|
|
#define sf_ipRouteMetric3 MibSetIpRouteEntry
|
|
#define sf_ipRouteMetric4 MibSetIpRouteEntry
|
|
#define sf_ipRouteNextHop MibSetIpRouteEntry
|
|
#define sf_ipRouteType MibSetIpRouteEntry
|
|
#define sf_ipRouteProto MibSetIpRouteEntry
|
|
#define sf_ipRouteAge MibSetIpRouteEntry
|
|
#define sf_ipRouteMask MibSetIpRouteEntry
|
|
#define sf_ipRouteMetric5 MibSetIpRouteEntry
|
|
|
|
#define sb_ipRouteDest IP_ROUTE_ENTRY_SET
|
|
#define sb_ipRouteIfIndex IP_ROUTE_ENTRY_SET
|
|
#define sb_ipRouteMetric1 IP_ROUTE_ENTRY_SET
|
|
#define sb_ipRouteMetric2 IP_ROUTE_ENTRY_SET
|
|
#define sb_ipRouteMetric3 IP_ROUTE_ENTRY_SET
|
|
#define sb_ipRouteMetric4 IP_ROUTE_ENTRY_SET
|
|
#define sb_ipRouteNextHop IP_ROUTE_ENTRY_SET
|
|
#define sb_ipRouteType IP_ROUTE_ENTRY_SET
|
|
#define sb_ipRouteProto IP_ROUTE_ENTRY_SET
|
|
#define sb_ipRouteAge IP_ROUTE_ENTRY_SET
|
|
#define sb_ipRouteMask IP_ROUTE_ENTRY_SET
|
|
#define sb_ipRouteMetric5 IP_ROUTE_ENTRY_SET
|
|
|
|
|
|
typedef struct _IP_NET_TO_MEDIA_ENTRY_GET
|
|
{
|
|
AsnAny ipNetToMediaIfIndex;
|
|
AsnAny ipNetToMediaPhysAddress;
|
|
AsnAny ipNetToMediaNetAddress;
|
|
AsnAny ipNetToMediaType;
|
|
BYTE rgbyIpNetToMediaPhysAddressInfo[MAX_PHYS_ADDR_LEN];
|
|
DWORD dwIpNetToMediaNetAddressInfo;
|
|
}IP_NET_TO_MEDIA_ENTRY_GET, *PIP_NET_TO_MEDIA_ENTRY_GET;
|
|
|
|
UINT
|
|
MibGetIpNetToMediaEntry(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define gf_ipNetToMediaIfIndex MibGetIpNetToMediaEntry
|
|
#define gf_ipNetToMediaPhysAddress MibGetIpNetToMediaEntry
|
|
#define gf_ipNetToMediaNetAddress MibGetIpNetToMediaEntry
|
|
#define gf_ipNetToMediaType MibGetIpNetToMediaEntry
|
|
|
|
#define gb_ipNetToMediaIfIndex IP_NET_TO_MEDIA_ENTRY_GET
|
|
#define gb_ipNetToMediaPhysAddress IP_NET_TO_MEDIA_ENTRY_GET
|
|
#define gb_ipNetToMediaNetAddress IP_NET_TO_MEDIA_ENTRY_GET
|
|
#define gb_ipNetToMediaType IP_NET_TO_MEDIA_ENTRY_GET
|
|
|
|
typedef struct _IP_NET_TO_MEDIA_ENTRY_SET
|
|
{
|
|
AsnAny ipNetToMediaIfIndex;
|
|
AsnAny ipNetToMediaPhysAddress;
|
|
AsnAny ipNetToMediaNetAddress;
|
|
AsnAny ipNetToMediaType;
|
|
BOOL bLocked;
|
|
BYTE rgbyIpNetToMediaPhysAddressInfo[MAX_PHYS_ADDR_LEN];
|
|
DWORD dwIpNetToMediaNetAddressInfo;
|
|
ROW_ACTION raAction;
|
|
DWORD rgdwSetBuffer[MIB_INFO_SIZE_IN_DWORDS(MIB_IPNETROW)];
|
|
}IP_NET_TO_MEDIA_ENTRY_SET, *PIP_NET_TO_MEDIA_ENTRY_SET;
|
|
|
|
UINT
|
|
MibSetIpNetToMediaEntry(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define sf_ipNetToMediaIfIndex MibSetIpNetToMediaEntry
|
|
#define sf_ipNetToMediaPhysAddress MibSetIpNetToMediaEntry
|
|
#define sf_ipNetToMediaNetAddress MibSetIpNetToMediaEntry
|
|
#define sf_ipNetToMediaType MibSetIpNetToMediaEntry
|
|
|
|
#define sb_ipNetToMediaIfIndex IP_NET_TO_MEDIA_ENTRY_SET
|
|
#define sb_ipNetToMediaPhysAddress IP_NET_TO_MEDIA_ENTRY_SET
|
|
#define sb_ipNetToMediaNetAddress IP_NET_TO_MEDIA_ENTRY_SET
|
|
#define sb_ipNetToMediaType IP_NET_TO_MEDIA_ENTRY_SET
|
|
|
|
typedef struct _ICMP_GROUP_GET
|
|
{
|
|
AsnAny icmpInMsgs;
|
|
AsnAny icmpInErrors;
|
|
AsnAny icmpInDestUnreachs;
|
|
AsnAny icmpInTimeExcds;
|
|
AsnAny icmpInParmProbs;
|
|
AsnAny icmpInSrcQuenchs;
|
|
AsnAny icmpInRedirects;
|
|
AsnAny icmpInEchos;
|
|
AsnAny icmpInEchoReps;
|
|
AsnAny icmpInTimestamps;
|
|
AsnAny icmpInTimestampReps;
|
|
AsnAny icmpInAddrMasks;
|
|
AsnAny icmpInAddrMaskReps;
|
|
AsnAny icmpOutMsgs;
|
|
AsnAny icmpOutErrors;
|
|
AsnAny icmpOutDestUnreachs;
|
|
AsnAny icmpOutTimeExcds;
|
|
AsnAny icmpOutParmProbs;
|
|
AsnAny icmpOutSrcQuenchs;
|
|
AsnAny icmpOutRedirects;
|
|
AsnAny icmpOutEchos;
|
|
AsnAny icmpOutEchoReps;
|
|
AsnAny icmpOutTimestamps;
|
|
AsnAny icmpOutTimestampReps;
|
|
AsnAny icmpOutAddrMasks;
|
|
AsnAny icmpOutAddrMaskReps;
|
|
}ICMP_GROUP_GET, *PICMP_GROUP_GET;
|
|
|
|
UINT
|
|
MibGetIcmpGroup(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define gf_icmpInMsgs MibGetIcmpGroup
|
|
#define gf_icmpInErrors MibGetIcmpGroup
|
|
#define gf_icmpInDestUnreachs MibGetIcmpGroup
|
|
#define gf_icmpInTimeExcds MibGetIcmpGroup
|
|
#define gf_icmpInParmProbs MibGetIcmpGroup
|
|
#define gf_icmpInSrcQuenchs MibGetIcmpGroup
|
|
#define gf_icmpInRedirects MibGetIcmpGroup
|
|
#define gf_icmpInEchos MibGetIcmpGroup
|
|
#define gf_icmpInEchoReps MibGetIcmpGroup
|
|
#define gf_icmpInTimestamps MibGetIcmpGroup
|
|
#define gf_icmpInTimestampReps MibGetIcmpGroup
|
|
#define gf_icmpInAddrMasks MibGetIcmpGroup
|
|
#define gf_icmpInAddrMaskReps MibGetIcmpGroup
|
|
#define gf_icmpOutMsgs MibGetIcmpGroup
|
|
#define gf_icmpOutErrors MibGetIcmpGroup
|
|
#define gf_icmpOutDestUnreachs MibGetIcmpGroup
|
|
#define gf_icmpOutTimeExcds MibGetIcmpGroup
|
|
#define gf_icmpOutParmProbs MibGetIcmpGroup
|
|
#define gf_icmpOutSrcQuenchs MibGetIcmpGroup
|
|
#define gf_icmpOutRedirects MibGetIcmpGroup
|
|
#define gf_icmpOutEchos MibGetIcmpGroup
|
|
#define gf_icmpOutEchoReps MibGetIcmpGroup
|
|
#define gf_icmpOutTimestamps MibGetIcmpGroup
|
|
#define gf_icmpOutTimestampReps MibGetIcmpGroup
|
|
#define gf_icmpOutAddrMasks MibGetIcmpGroup
|
|
#define gf_icmpOutAddrMaskReps MibGetIcmpGroup
|
|
|
|
#define gb_icmpInMsgs ICMP_GROUP_GET
|
|
#define gb_icmpInErrors ICMP_GROUP_GET
|
|
#define gb_icmpInDestUnreachs ICMP_GROUP_GET
|
|
#define gb_icmpInTimeExcds ICMP_GROUP_GET
|
|
#define gb_icmpInParmProbs ICMP_GROUP_GET
|
|
#define gb_icmpInSrcQuenchs ICMP_GROUP_GET
|
|
#define gb_icmpInRedirects ICMP_GROUP_GET
|
|
#define gb_icmpInEchos ICMP_GROUP_GET
|
|
#define gb_icmpInEchoReps ICMP_GROUP_GET
|
|
#define gb_icmpInTimestamps ICMP_GROUP_GET
|
|
#define gb_icmpInTimestampReps ICMP_GROUP_GET
|
|
#define gb_icmpInAddrMasks ICMP_GROUP_GET
|
|
#define gb_icmpInAddrMaskReps ICMP_GROUP_GET
|
|
#define gb_icmpOutMsgs ICMP_GROUP_GET
|
|
#define gb_icmpOutErrors ICMP_GROUP_GET
|
|
#define gb_icmpOutDestUnreachs ICMP_GROUP_GET
|
|
#define gb_icmpOutTimeExcds ICMP_GROUP_GET
|
|
#define gb_icmpOutParmProbs ICMP_GROUP_GET
|
|
#define gb_icmpOutSrcQuenchs ICMP_GROUP_GET
|
|
#define gb_icmpOutRedirects ICMP_GROUP_GET
|
|
#define gb_icmpOutEchos ICMP_GROUP_GET
|
|
#define gb_icmpOutEchoReps ICMP_GROUP_GET
|
|
#define gb_icmpOutTimestamps ICMP_GROUP_GET
|
|
#define gb_icmpOutTimestampReps ICMP_GROUP_GET
|
|
#define gb_icmpOutAddrMasks ICMP_GROUP_GET
|
|
#define gb_icmpOutAddrMaskReps ICMP_GROUP_GET
|
|
|
|
typedef struct _TCP_STATS_GET
|
|
{
|
|
AsnAny tcpRtoAlgorithm;
|
|
AsnAny tcpRtoMin;
|
|
AsnAny tcpRtoMax;
|
|
AsnAny tcpMaxConn;
|
|
AsnAny tcpActiveOpens;
|
|
AsnAny tcpPassiveOpens;
|
|
AsnAny tcpAttemptFails;
|
|
AsnAny tcpEstabResets;
|
|
AsnAny tcpCurrEstab;
|
|
AsnAny tcpInSegs;
|
|
AsnAny tcpOutSegs;
|
|
AsnAny tcpRetransSegs;
|
|
AsnAny tcpInErrs;
|
|
AsnAny tcpOutRsts;
|
|
}TCP_STATS_GET, *PTCP_STATS_GET;
|
|
|
|
UINT
|
|
MibGetTcpGroup(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define gf_tcpRtoAlgorithm MibGetTcpGroup
|
|
#define gf_tcpRtoMin MibGetTcpGroup
|
|
#define gf_tcpRtoMax MibGetTcpGroup
|
|
#define gf_tcpMaxConn MibGetTcpGroup
|
|
#define gf_tcpActiveOpens MibGetTcpGroup
|
|
#define gf_tcpPassiveOpens MibGetTcpGroup
|
|
#define gf_tcpAttemptFails MibGetTcpGroup
|
|
#define gf_tcpEstabResets MibGetTcpGroup
|
|
#define gf_tcpCurrEstab MibGetTcpGroup
|
|
#define gf_tcpInSegs MibGetTcpGroup
|
|
#define gf_tcpOutSegs MibGetTcpGroup
|
|
#define gf_tcpRetransSegs MibGetTcpGroup
|
|
#define gf_tcpInErrs MibGetTcpGroup
|
|
#define gf_tcpOutRsts MibGetTcpGroup
|
|
|
|
#define gb_tcpRtoAlgorithm TCP_STATS_GET
|
|
#define gb_tcpRtoMin TCP_STATS_GET
|
|
#define gb_tcpRtoMax TCP_STATS_GET
|
|
#define gb_tcpMaxConn TCP_STATS_GET
|
|
#define gb_tcpActiveOpens TCP_STATS_GET
|
|
#define gb_tcpPassiveOpens TCP_STATS_GET
|
|
#define gb_tcpAttemptFails TCP_STATS_GET
|
|
#define gb_tcpEstabResets TCP_STATS_GET
|
|
#define gb_tcpCurrEstab TCP_STATS_GET
|
|
#define gb_tcpInSegs TCP_STATS_GET
|
|
#define gb_tcpOutSegs TCP_STATS_GET
|
|
#define gb_tcpRetransSegs TCP_STATS_GET
|
|
#define gb_tcpInErrs TCP_STATS_GET
|
|
#define gb_tcpOutRsts TCP_STATS_GET
|
|
|
|
typedef struct _TCP_CONNECTION_ENTRY_GET
|
|
{
|
|
AsnAny tcpConnState;
|
|
AsnAny tcpConnLocalAddress;
|
|
AsnAny tcpConnLocalPort;
|
|
AsnAny tcpConnRemAddress;
|
|
AsnAny tcpConnRemPort;
|
|
DWORD dwTcpConnLocalAddressInfo;
|
|
DWORD dwTcpConnRemAddressInfo;
|
|
}TCP_CONNECTION_ENTRY_GET, *PTCP_CONNECTION_ENTRY_GET;
|
|
|
|
UINT
|
|
MibGetTcpConnectionEntry(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define gf_tcpConnState MibGetTcpConnectionEntry
|
|
#define gf_tcpConnLocalAddress MibGetTcpConnectionEntry
|
|
#define gf_tcpConnLocalPort MibGetTcpConnectionEntry
|
|
#define gf_tcpConnRemAddress MibGetTcpConnectionEntry
|
|
#define gf_tcpConnRemPort MibGetTcpConnectionEntry
|
|
|
|
#define gb_tcpConnState TCP_CONNECTION_ENTRY_GET
|
|
#define gb_tcpConnLocalAddress TCP_CONNECTION_ENTRY_GET
|
|
#define gb_tcpConnLocalPort TCP_CONNECTION_ENTRY_GET
|
|
#define gb_tcpConnRemAddress TCP_CONNECTION_ENTRY_GET
|
|
#define gb_tcpConnRemPort TCP_CONNECTION_ENTRY_GET
|
|
|
|
typedef struct _TCP_CONNECTION_ENTRY_SET
|
|
{
|
|
AsnAny tcpConnState;
|
|
AsnAny tcpConnLocalAddress;
|
|
AsnAny tcpConnLocalPort;
|
|
AsnAny tcpConnRemAddress;
|
|
AsnAny tcpConnRemPort;
|
|
DWORD dwTcpConnLocalAddressInfo;
|
|
DWORD dwTcpConnRemAddressInfo;
|
|
BOOL bLocked;
|
|
ROW_ACTION raAction;
|
|
DWORD rgdwSetBuffer[MIB_INFO_SIZE_IN_DWORDS(MIB_TCPROW)];
|
|
}TCP_CONNECTION_ENTRY_SET, *PTCP_CONNECTION_ENTRY_SET;
|
|
|
|
UINT
|
|
MibSetTcpConnectionEntry(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define sf_tcpConnState MibSetTcpConnectionEntry
|
|
|
|
#define sb_tcpConnState TCP_CONNECTION_ENTRY_SET
|
|
|
|
typedef struct _TCP_NEW_CONNECTION_ENTRY_GET
|
|
{
|
|
AsnAny tcpNewConnLocalAddressType;
|
|
AsnAny tcpNewConnLocalAddress;
|
|
AsnAny tcpNewConnLocalPort;
|
|
AsnAny tcpNewConnRemAddressType;
|
|
AsnAny tcpNewConnRemAddress;
|
|
AsnAny tcpNewConnRemPort;
|
|
AsnAny tcpNewConnState;
|
|
BYTE rgbyTcpNewConnLocalAddressInfo[20];
|
|
BYTE rgbyTcpNewConnRemAddressInfo[20];
|
|
}TCP_NEW_CONNECTION_ENTRY_GET, *PTCP_NEW_CONNECTION_ENTRY_GET;
|
|
|
|
UINT
|
|
MibGetTcpNewConnectionEntry(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define gf_tcpNewConnLocalAddressType MibGetTcpNewConnectionEntry
|
|
#define gf_tcpNewConnLocalAddress MibGetTcpNewConnectionEntry
|
|
#define gf_tcpNewConnLocalPort MibGetTcpNewConnectionEntry
|
|
#define gf_tcpNewConnRemAddressType MibGetTcpNewConnectionEntry
|
|
#define gf_tcpNewConnRemAddress MibGetTcpNewConnectionEntry
|
|
#define gf_tcpNewConnRemPort MibGetTcpNewConnectionEntry
|
|
#define gf_tcpNewConnState MibGetTcpNewConnectionEntry
|
|
|
|
#define gb_tcpNewConnLocalAddressType TCP_NEW_CONNECTION_ENTRY_GET
|
|
#define gb_tcpNewConnLocalAddress TCP_NEW_CONNECTION_ENTRY_GET
|
|
#define gb_tcpNewConnLocalPort TCP_NEW_CONNECTION_ENTRY_GET
|
|
#define gb_tcpNewConnRemAddressType TCP_NEW_CONNECTION_ENTRY_GET
|
|
#define gb_tcpNewConnRemAddress TCP_NEW_CONNECTION_ENTRY_GET
|
|
#define gb_tcpNewConnRemPort TCP_NEW_CONNECTION_ENTRY_GET
|
|
#define gb_tcpNewConnState TCP_NEW_CONNECTION_ENTRY_GET
|
|
|
|
typedef struct _TCP_NEW_CONNECTION_ENTRY_SET
|
|
{
|
|
AsnAny tcpNewConnLocalAddressType;
|
|
AsnAny tcpNewConnLocalAddress;
|
|
AsnAny tcpNewConnLocalPort;
|
|
AsnAny tcpNewConnRemAddressType;
|
|
AsnAny tcpNewConnRemAddress;
|
|
AsnAny tcpNewConnRemPort;
|
|
AsnAny tcpNewConnState;
|
|
BYTE rgbyTcpNewConnLocalAddressInfo[20];
|
|
BYTE rgbyTcpNewConnRemAddressInfo[20];
|
|
BOOL bLocked;
|
|
ROW_ACTION raAction;
|
|
DWORD rgdwSetBuffer[MIB_INFO_SIZE_IN_DWORDS(TCP6ConnTableEntry)];
|
|
}TCP_NEW_CONNECTION_ENTRY_SET, *PTCP_NEW_CONNECTION_ENTRY_SET;
|
|
|
|
UINT
|
|
MibSetTcpNewConnectionEntry(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define sf_tcpNewConnState MibSetTcpNewConnectionEntry
|
|
|
|
#define sb_tcpNewConnState TCP_NEW_CONNECTION_ENTRY_SET
|
|
|
|
typedef struct _UDP_STATS_GET
|
|
{
|
|
AsnAny udpInDatagrams;
|
|
AsnAny udpNoPorts;
|
|
AsnAny udpInErrors;
|
|
AsnAny udpOutDatagrams;
|
|
}UDP_STATS_GET, *PUDP_STATS_GET;
|
|
|
|
UINT
|
|
MibGetUdpGroup(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define gf_udpInDatagrams MibGetUdpGroup
|
|
#define gf_udpNoPorts MibGetUdpGroup
|
|
#define gf_udpInErrors MibGetUdpGroup
|
|
#define gf_udpOutDatagrams MibGetUdpGroup
|
|
|
|
#define gb_udpInDatagrams UDP_STATS_GET
|
|
#define gb_udpNoPorts UDP_STATS_GET
|
|
#define gb_udpInErrors UDP_STATS_GET
|
|
#define gb_udpOutDatagrams UDP_STATS_GET
|
|
|
|
typedef struct _UDP_ENTRY_GET
|
|
{
|
|
AsnAny udpLocalAddress;
|
|
AsnAny udpLocalPort;
|
|
DWORD dwUdpLocalAddressInfo;
|
|
}UDP_ENTRY_GET, *PUDP_ENTRY_GET;
|
|
|
|
UINT
|
|
MibGetUdpEntry(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define gf_udpLocalAddress MibGetUdpEntry
|
|
#define gf_udpLocalPort MibGetUdpEntry
|
|
|
|
#define gb_udpLocalAddress UDP_ENTRY_GET
|
|
#define gb_udpLocalPort UDP_ENTRY_GET
|
|
|
|
typedef struct _UDP_LISTENER_ENTRY_GET
|
|
{
|
|
AsnAny udpListenerLocalAddressType;
|
|
AsnAny udpListenerLocalAddress;
|
|
AsnAny udpListenerLocalPort;
|
|
BYTE rgbyUdpLocalAddressInfo[20];
|
|
}UDP_LISTENER_ENTRY_GET, *PUDP_LISTENER_ENTRY_GET;
|
|
|
|
UINT
|
|
MibGetUdpListenerEntry(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define gf_udpListenerLocalAddressType MibGetUdpListenerEntry
|
|
#define gf_udpListenerLocalAddress MibGetUdpListenerEntry
|
|
#define gf_udpListenerLocalPort MibGetUdpListenerEntry
|
|
|
|
#define gb_udpListenerLocalAddressType UDP_LISTENER_ENTRY_GET
|
|
#define gb_udpListenerLocalAddress UDP_LISTENER_ENTRY_GET
|
|
#define gb_udpListenerLocalPort UDP_LISTENER_ENTRY_GET
|
|
|
|
typedef struct _IP_FORWARD_NUMBER_GET
|
|
{
|
|
AsnAny ipForwardNumber;
|
|
}IP_FORWARD_NUMBER_GET, *PIP_FORWARD_NUMBER_GET;
|
|
|
|
UINT
|
|
MibGetIpForwardNumber(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define gf_ipForwardNumber MibGetIpForwardNumber
|
|
|
|
#define gb_ipForwardNumber IP_FORWARD_NUMBER_GET
|
|
|
|
typedef struct _IP_FORWARD_ENTRY_GET
|
|
{
|
|
AsnAny ipForwardDest;
|
|
AsnAny ipForwardMask;
|
|
AsnAny ipForwardPolicy;
|
|
AsnAny ipForwardNextHop;
|
|
AsnAny ipForwardIfIndex;
|
|
AsnAny ipForwardType;
|
|
AsnAny ipForwardProto;
|
|
AsnAny ipForwardAge;
|
|
AsnAny ipForwardInfo;
|
|
AsnAny ipForwardNextHopAS;
|
|
AsnAny ipForwardMetric1;
|
|
AsnAny ipForwardMetric2;
|
|
AsnAny ipForwardMetric3;
|
|
AsnAny ipForwardMetric4;
|
|
AsnAny ipForwardMetric5;
|
|
DWORD dwIpForwardDestInfo;
|
|
DWORD dwIpForwardMaskInfo;
|
|
DWORD dwIpForwardNextHopInfo;
|
|
}IP_FORWARD_ENTRY_GET, *PIP_FORWARD_ENTRY_GET;
|
|
|
|
UINT
|
|
MibGetIpForwardEntry(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define gf_ipForwardDest MibGetIpForwardEntry
|
|
#define gf_ipForwardMask MibGetIpForwardEntry
|
|
#define gf_ipForwardPolicy MibGetIpForwardEntry
|
|
#define gf_ipForwardNextHop MibGetIpForwardEntry
|
|
#define gf_ipForwardIfIndex MibGetIpForwardEntry
|
|
#define gf_ipForwardType MibGetIpForwardEntry
|
|
#define gf_ipForwardProto MibGetIpForwardEntry
|
|
#define gf_ipForwardAge MibGetIpForwardEntry
|
|
#define gf_ipForwardInfo MibGetIpForwardEntry
|
|
#define gf_ipForwardNextHopAS MibGetIpForwardEntry
|
|
#define gf_ipForwardMetric1 MibGetIpForwardEntry
|
|
#define gf_ipForwardMetric2 MibGetIpForwardEntry
|
|
#define gf_ipForwardMetric3 MibGetIpForwardEntry
|
|
#define gf_ipForwardMetric4 MibGetIpForwardEntry
|
|
#define gf_ipForwardMetric5 MibGetIpForwardEntry
|
|
|
|
#define gb_ipForwardDest IP_FORWARD_ENTRY_GET
|
|
#define gb_ipForwardMask IP_FORWARD_ENTRY_GET
|
|
#define gb_ipForwardPolicy IP_FORWARD_ENTRY_GET
|
|
#define gb_ipForwardNextHop IP_FORWARD_ENTRY_GET
|
|
#define gb_ipForwardIfIndex IP_FORWARD_ENTRY_GET
|
|
#define gb_ipForwardType IP_FORWARD_ENTRY_GET
|
|
#define gb_ipForwardProto IP_FORWARD_ENTRY_GET
|
|
#define gb_ipForwardAge IP_FORWARD_ENTRY_GET
|
|
#define gb_ipForwardInfo IP_FORWARD_ENTRY_GET
|
|
#define gb_ipForwardNextHopAS IP_FORWARD_ENTRY_GET
|
|
#define gb_ipForwardMetric1 IP_FORWARD_ENTRY_GET
|
|
#define gb_ipForwardMetric2 IP_FORWARD_ENTRY_GET
|
|
#define gb_ipForwardMetric3 IP_FORWARD_ENTRY_GET
|
|
#define gb_ipForwardMetric4 IP_FORWARD_ENTRY_GET
|
|
#define gb_ipForwardMetric5 IP_FORWARD_ENTRY_GET
|
|
|
|
|
|
typedef struct _IP_FORWARD_ENTRY_SET
|
|
{
|
|
AsnAny ipForwardDest;
|
|
AsnAny ipForwardMask;
|
|
AsnAny ipForwardPolicy;
|
|
AsnAny ipForwardNextHop;
|
|
AsnAny ipForwardIfIndex;
|
|
AsnAny ipForwardType;
|
|
AsnAny ipForwardProto;
|
|
AsnAny ipForwardAge;
|
|
AsnAny ipForwardNextHopAS;
|
|
AsnAny ipForwardMetric1;
|
|
AsnAny ipForwardMetric2;
|
|
AsnAny ipForwardMetric3;
|
|
AsnAny ipForwardMetric4;
|
|
AsnAny ipForwardMetric5;
|
|
BOOL bLocked;
|
|
DWORD dwIpForwardDestInfo;
|
|
DWORD dwIpForwardMaskInfo;
|
|
DWORD dwIpForwardNextHopInfo;
|
|
ROW_ACTION raAction;
|
|
DWORD rgdwSetBuffer[MIB_INFO_SIZE_IN_DWORDS(MIB_IPFORWARDROW)];
|
|
}IP_FORWARD_ENTRY_SET, *PIP_FORWARD_ENTRY_SET;
|
|
|
|
UINT
|
|
MibSetIpForwardEntry(
|
|
UINT actionId,
|
|
AsnAny *objectArray,
|
|
UINT *errorIndex
|
|
);
|
|
|
|
#define sf_ipForwardDest MibSetIpForwardEntry
|
|
#define sf_ipForwardMask MibSetIpForwardEntry
|
|
#define sf_ipForwardPolicy MibSetIpForwardEntry
|
|
#define sf_ipForwardNextHop MibSetIpForwardEntry
|
|
#define sf_ipForwardIfIndex MibSetIpForwardEntry
|
|
#define sf_ipForwardType MibSetIpForwardEntry
|
|
#define sf_ipForwardProto MibSetIpForwardEntry
|
|
#define sf_ipForwardAge MibSetIpForwardEntry
|
|
#define sf_ipForwardNextHopAS MibSetIpForwardEntry
|
|
#define sf_ipForwardMetric1 MibSetIpForwardEntry
|
|
#define sf_ipForwardMetric2 MibSetIpForwardEntry
|
|
#define sf_ipForwardMetric3 MibSetIpForwardEntry
|
|
#define sf_ipForwardMetric4 MibSetIpForwardEntry
|
|
#define sf_ipForwardMetric5 MibSetIpForwardEntry
|
|
|
|
#define sb_ipForwardDest IP_FORWARD_ENTRY_SET
|
|
#define sb_ipForwardMask IP_FORWARD_ENTRY_SET
|
|
#define sb_ipForwardPolicy IP_FORWARD_ENTRY_SET
|
|
#define sb_ipForwardNextHop IP_FORWARD_ENTRY_SET
|
|
#define sb_ipForwardIfIndex IP_FORWARD_ENTRY_SET
|
|
#define sb_ipForwardType IP_FORWARD_ENTRY_SET
|
|
#define sb_ipForwardProto IP_FORWARD_ENTRY_SET
|
|
#define sb_ipForwardAge IP_FORWARD_ENTRY_SET
|
|
#define sb_ipForwardNextHopAS IP_FORWARD_ENTRY_SET
|
|
#define sb_ipForwardMetric1 IP_FORWARD_ENTRY_SET
|
|
#define sb_ipForwardMetric2 IP_FORWARD_ENTRY_SET
|
|
#define sb_ipForwardMetric3 IP_FORWARD_ENTRY_SET
|
|
#define sb_ipForwardMetric4 IP_FORWARD_ENTRY_SET
|
|
#define sb_ipForwardMetric5 IP_FORWARD_ENTRY_SET
|
|
|
|
#endif
|