source: Daodan/MinGW/include/routprot.h@ 1098

Last change on this file since 1098 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 1.9 KB
Line 
1/*
2 routprot.h - Routing and Remote Access Services
3
4 This file is part of a free library for the Win32 API.
5
6 This library is distributed in the hope that it will be useful,
7 but WITHOUT ANY WARRANTY; without even the implied warranty of
8 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9*/
10#ifndef _ROUTPROT_H
11#define _ROUTPROT_H
12#if __GNUC__ >= 3
13#pragma GCC system_header
14#endif
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20/*--- Router Management MIB Reference - Transport and Protocol Constants */
21#define PROTO_IP_OTHER 0x00000001
22#define PROTO_IP_LOCAL 0x00000002
23#define PROTO_IP_NETMGMT 0x00000003
24#define PROTO_IP_ICMP 0x00000004
25#define PROTO_IP_EGP 0x00000005
26#define PROTO_IP_GGP 0x00000006
27#define PROTO_IP_HELLO 0x00000007
28#define PROTO_IP_RIP 0x00000008
29#define PROTO_IP_IS_IS 0x00000009
30#define PROTO_IP_ES_IS 0x0000000A
31#define PROTO_IP_CISCO 0x0000000B
32#define PROTO_IP_BBN 0x0000000C
33#define PROTO_IP_OSPF 0x0000000D
34#define PROTO_IP_BGP 0x0000000E
35#define PROTO_IP_BOOTP 0x0000270F
36#define PROTO_IP_NT_AUTOSTATIC 0x00002712
37#define PROTO_IP_NT_STATIC 0x00002716
38#define PROTO_IP_NT_STATIC_NON_DOD 0x00002717
39#define IPRTRMGR_PID 10000
40#define IPX_PROTOCOL_BASE 0x0001FFFF
41#define IPX_PROTOCOL_RIP 0x00020000
42#define IPX_PROTOCOL_SAP 0x00020001
43#define IPX_PROTOCOL_NLSP 0x00020002
44/*--- Router Management Reference - Router Management Structures */
45#if (_WIN32_WINNT >= 0x0500)
46typedef struct IP_LOCAL_BINDING {
47 DWORD Address;
48 DWORD Mask;
49} IP_LOCAL_BINDING,*PIP_LOCAL_BINDING;
50typedef struct IP_ADAPTER_BINDING_INFO {
51 ULONG AddressCount;
52 DWORD RemoteAddress;
53 ULONG Mtu;
54 ULONGLONG Speed;
55 IP_LOCAL_BINDING Address[];
56} IP_ADAPTER_BINDING_INFO,*PIP_ADAPTER_BINDING_INFO;
57typedef struct IPX_ADAPTER_BINDING_INFO {
58 ULONG AdapterIndex;
59 UCHAR Network[4];
60 UCHAR LocalNode[6];
61 UCHAR RemoteNode[6];
62 ULONG MaxPacketSize;
63 ULONG LinkSpeed;
64} IPX_ADAPTER_BINDING_INFO,*PIPX_ADAPTER_BINDING_INFO;
65#endif /* (_WIN32_WINNT >= 0x0500) */
66
67#ifdef __cplusplus
68}
69#endif
70#endif
Note: See TracBrowser for help on using the repository browser.