1 /** 2 * @file routprot.h 3 * Copyright 2012, 2013 MinGW.org project 4 * 5 * Permission is hereby granted, free of charge, to any person obtaining a 6 * copy of this software and associated documentation files (the "Software"), 7 * to deal in the Software without restriction, including without limitation 8 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 * and/or sell copies of the Software, and to permit persons to whom the 10 * Software is furnished to do so, subject to the following conditions: 11 * 12 * The above copyright notice and this permission notice (including the next 13 * paragraph) shall be included in all copies or substantial portions of the 14 * Software. 15 * 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22 * DEALINGS IN THE SOFTWARE. 23 */ 24 #ifndef _ROUTPROT_H 25 #define _ROUTPROT_H 26 #pragma GCC system_header 27 #include <_mingw.h> 28 29 #ifdef __cplusplus 30 extern "C" { 31 #endif 32 33 /*--- Router Management MIB Reference - Transport and Protocol Constants */ 34 #define PROTO_IP_OTHER 0x00000001 35 #define PROTO_IP_LOCAL 0x00000002 36 #define PROTO_IP_NETMGMT 0x00000003 37 #define PROTO_IP_ICMP 0x00000004 38 #define PROTO_IP_EGP 0x00000005 39 #define PROTO_IP_GGP 0x00000006 40 #define PROTO_IP_HELLO 0x00000007 41 #define PROTO_IP_RIP 0x00000008 42 #define PROTO_IP_IS_IS 0x00000009 43 #define PROTO_IP_ES_IS 0x0000000A 44 #define PROTO_IP_CISCO 0x0000000B 45 #define PROTO_IP_BBN 0x0000000C 46 #define PROTO_IP_OSPF 0x0000000D 47 #define PROTO_IP_BGP 0x0000000E 48 #define PROTO_IP_BOOTP 0x0000270F 49 #define PROTO_IP_NT_AUTOSTATIC 0x00002712 50 #define PROTO_IP_NT_STATIC 0x00002716 51 #define PROTO_IP_NT_STATIC_NON_DOD 0x00002717 52 #define IPRTRMGR_PID 10000 53 #define IPX_PROTOCOL_BASE 0x0001FFFF 54 #define IPX_PROTOCOL_RIP 0x00020000 55 #define IPX_PROTOCOL_SAP 0x00020001 56 #define IPX_PROTOCOL_NLSP 0x00020002 57 /*--- Router Management Reference - Router Management Structures */ 58 59 #if (_WIN32_WINNT >= _WIN32_WINNT_WIN2K) 60 typedef struct IP_LOCAL_BINDING { 61 DWORD Address; 62 DWORD Mask; 63 } IP_LOCAL_BINDING,*PIP_LOCAL_BINDING; 64 typedef struct IP_ADAPTER_BINDING_INFO { 65 ULONG AddressCount; 66 DWORD RemoteAddress; 67 ULONG Mtu; 68 ULONGLONG Speed; 69 IP_LOCAL_BINDING Address[]; 70 } IP_ADAPTER_BINDING_INFO,*PIP_ADAPTER_BINDING_INFO; 71 typedef struct IPX_ADAPTER_BINDING_INFO { 72 ULONG AdapterIndex; 73 UCHAR Network[4]; 74 UCHAR LocalNode[6]; 75 UCHAR RemoteNode[6]; 76 ULONG MaxPacketSize; 77 ULONG LinkSpeed; 78 } IPX_ADAPTER_BINDING_INFO,*PIPX_ADAPTER_BINDING_INFO; 79 #endif /* (_WIN32_WINNT >= _WIN32_WINNT_WIN2K) */ 80 81 #ifdef __cplusplus 82 } 83 #endif 84 #endif 85