1 /** 2 * This file has no copyright assigned and is placed in the Public Domain. 3 * This file is part of the mingw-w64 runtime package. 4 * No warranty is given; refer to the file DISCLAIMER.PD within this package. 5 */ 6 #ifndef _IPXSAP_ 7 #define _IPXSAP_ 8 9 #include <ipxconst.h> 10 11 typedef struct _SAP_GLOBAL_INFO { 12 DWORD EventLogMask; 13 } SAP_GLOBAL_INFO,*PSAP_GLOBAL_INFO; 14 15 typedef struct _SAP_IF_INFO { 16 ULONG AdminState; 17 ULONG UpdateMode; 18 ULONG PacketType; 19 ULONG Supply; 20 ULONG Listen; 21 ULONG GetNearestServerReply; 22 ULONG PeriodicUpdateInterval; 23 ULONG AgeIntervalMultiplier; 24 } SAP_IF_INFO,*PSAP_IF_INFO; 25 26 typedef struct _SAP_SERVICE_FILTER_INFO { 27 __C89_NAMELESS union { 28 USHORT ServiceType; 29 ULONG ServiceType_align; 30 }; 31 UCHAR ServiceName[48]; 32 } SAP_SERVICE_FILTER_INFO,*PSAP_SERVICE_FILTER_INFO; 33 34 typedef struct _SAP_IF_FILTERS { 35 ULONG SupplyFilterAction; 36 ULONG SupplyFilterCount; 37 ULONG ListenFilterAction; 38 ULONG ListenFilterCount; 39 SAP_SERVICE_FILTER_INFO ServiceFilter[1]; 40 } SAP_IF_FILTERS,*PSAP_IF_FILTERS; 41 42 #define IPX_SERVICE_FILTER_PERMIT 1 43 #define IPX_SERVICE_FILTER_DENY 2 44 45 typedef struct _SAP_IF_CONFIG { 46 SAP_IF_INFO SapIfInfo; 47 SAP_IF_FILTERS SapIfFilters; 48 } SAP_IF_CONFIG,*PSAP_IF_CONFIG; 49 50 #define SAP_BASE_ENTRY 0 51 #define SAP_INTERFACE_TABLE 1 52 53 typedef struct _SAP_MIB_BASE { 54 ULONG SapOperState; 55 } SAP_MIB_BASE,*PSAP_MIB_BASE; 56 57 typedef struct _SAP_IF_STATS { 58 ULONG SapIfOperState; 59 ULONG SapIfInputPackets; 60 ULONG SapIfOutputPackets; 61 } SAP_IF_STATS,*PSAP_IF_STATS; 62 63 typedef struct _SAP_INTERFACE { 64 ULONG InterfaceIndex; 65 SAP_IF_INFO SapIfInfo; 66 SAP_IF_STATS SapIfStats; 67 } SAP_INTERFACE,*PSAP_INTERFACE; 68 69 typedef struct _SAP_MIB_GET_INPUT_DATA { 70 ULONG TableId; 71 ULONG InterfaceIndex; 72 } SAP_MIB_GET_INPUT_DATA,*PSAP_MIB_GET_INPUT_DATA; 73 74 typedef struct _SAP_MIB_SET_INPUT_DATA { 75 ULONG TableId; 76 SAP_INTERFACE SapInterface; 77 } SAP_MIB_SET_INPUT_DATA,*PSAP_MIB_SET_INPUT_DATA; 78 #endif 79