VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/ipexport.h@ 33223

Last change on this file since 33223 was 19678, checked in by vboxsync, 16 years ago

opengl: update wine to 1.1.21, add d3d9.dll to build list

  • Property svn:eol-style set to native
File size: 4.3 KB
Line 
1/*
2 * Defines the types and macros used by the ICMP API, see icmpapi.h.
3 *
4 * Copyright (C) 1999 Francois Gouget
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21/*
22 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
23 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
24 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
25 * a choice of LGPL license versions is made available with the language indicating
26 * that LGPLv2 or any later version may be used, or where a choice of which version
27 * of the LGPL is applied is otherwise unspecified.
28 */
29
30#ifndef __WINE_IPEXPORT_H
31#define __WINE_IPEXPORT_H
32
33typedef ULONG IPAddr;
34typedef ULONG IPMask;
35typedef ULONG IP_STATUS;
36
37struct ip_option_information
38{
39 unsigned char Ttl;
40 unsigned char Tos;
41 unsigned char Flags;
42 unsigned char OptionsSize;
43 unsigned char* OptionsData;
44};
45
46#define IP_FLAG_DF 0x2
47
48#define IP_OPT_EOL 0
49#define IP_OPT_NOP 1
50#define IP_OPT_SECURITY 0x82
51#define IP_OPT_LSRR 0x83
52#define IP_OPT_SSRR 0x89
53#define IP_OPT_RR 0x7
54#define IP_OPT_TS 0x44
55#define IP_OPT_SID 0x88
56
57#define MAX_OPT_SIZE 40
58
59
60struct icmp_echo_reply
61{
62 IPAddr Address;
63 ULONG Status;
64 ULONG RoundTripTime;
65 unsigned short DataSize;
66 unsigned short Reserved;
67 void* Data;
68 struct ip_option_information Options;
69};
70
71typedef struct ip_option_information IP_OPTION_INFORMATION, *PIP_OPTION_INFORMATION;
72
73typedef struct icmp_echo_reply ICMP_ECHO_REPLY, *PICMP_ECHO_REPLY;
74
75
76#define IP_STATUS_BASE 11000
77
78#define IP_SUCCESS 0
79#define IP_BUF_TOO_SMALL (IP_STATUS_BASE + 1)
80#define IP_DEST_NET_UNREACHABLE (IP_STATUS_BASE + 2)
81#define IP_DEST_HOST_UNREACHABLE (IP_STATUS_BASE + 3)
82#define IP_DEST_PROT_UNREACHABLE (IP_STATUS_BASE + 4)
83#define IP_DEST_PORT_UNREACHABLE (IP_STATUS_BASE + 5)
84#define IP_NO_RESOURCES (IP_STATUS_BASE + 6)
85#define IP_BAD_OPTION (IP_STATUS_BASE + 7)
86#define IP_HW_ERROR (IP_STATUS_BASE + 8)
87#define IP_PACKET_TOO_BIG (IP_STATUS_BASE + 9)
88#define IP_REQ_TIMED_OUT (IP_STATUS_BASE + 10)
89#define IP_BAD_REQ (IP_STATUS_BASE + 11)
90#define IP_BAD_ROUTE (IP_STATUS_BASE + 12)
91#define IP_TTL_EXPIRED_TRANSIT (IP_STATUS_BASE + 13)
92#define IP_TTL_EXPIRED_REASSEM (IP_STATUS_BASE + 14)
93#define IP_PARAM_PROBLEM (IP_STATUS_BASE + 15)
94#define IP_SOURCE_QUENCH (IP_STATUS_BASE + 16)
95#define IP_OPTION_TOO_BIG (IP_STATUS_BASE + 17)
96#define IP_BAD_DESTINATION (IP_STATUS_BASE + 18)
97
98#define IP_ADDR_DELETED (IP_STATUS_BASE + 19)
99#define IP_SPEC_MTU_CHANGE (IP_STATUS_BASE + 20)
100#define IP_MTU_CHANGE (IP_STATUS_BASE + 21)
101#define IP_UNLOAD (IP_STATUS_BASE + 22)
102
103#define IP_GENERAL_FAILURE (IP_STATUS_BASE + 50)
104#define MAX_IP_STATUS IP_GENERAL_FAILURE
105#define IP_PENDING (IP_STATUS_BASE + 255)
106
107
108#define MAX_ADAPTER_NAME 128
109
110typedef struct _IP_ADAPTER_INDEX_MAP {
111 ULONG Index;
112 WCHAR Name[MAX_ADAPTER_NAME];
113} IP_ADAPTER_INDEX_MAP, *PIP_ADAPTER_INDEX_MAP;
114
115typedef struct _IP_INTERFACE_INFO {
116 LONG NumAdapters;
117 IP_ADAPTER_INDEX_MAP Adapter[1];
118} IP_INTERFACE_INFO,*PIP_INTERFACE_INFO;
119
120typedef struct _IP_UNIDIRECTIONAL_ADAPTER_ADDRESS {
121 ULONG NumAdapters;
122 IPAddr Address[1];
123} IP_UNIDIRECTIONAL_ADAPTER_ADDRESS, *PIP_UNIDIRECTIONAL_ADAPTER_ADDRESS;
124
125#endif /* __WINE_IPEXPORT_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette