iccvid: Fix calculation of stride and size.
[wine.git] / include / nldef.h
blobef30f7fa4c4d74a2f2a25fd3f597ac5f1c982d0c
1 /*
2 * Copyright (C) 2003 Juan Lang
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 #ifndef __WINE_NLDEF_H
19 #define __WINE_NLDEF_H
21 typedef enum
23 IpPrefixOriginOther = 0,
24 IpPrefixOriginManual,
25 IpPrefixOriginWellKnown,
26 IpPrefixOriginDhcp,
27 IpPrefixOriginRouterAdvertisement,
28 IpPrefixOriginUnchanged = 16,
29 } NL_PREFIX_ORIGIN;
31 typedef enum _NL_ROUTE_ORIGIN
33 NlroManual,
34 NlroWellKnown,
35 NlroDHCP,
36 NlroRouterAdvertisement,
37 Nlro6to4,
38 } NL_ROUTE_ORIGIN, *PNL_ROUTE_ORIGIN;
40 typedef enum
42 IpSuffixOriginOther = 0,
43 IpSuffixOriginManual,
44 IpSuffixOriginWellKnown,
45 IpSuffixOriginDhcp,
46 IpSuffixOriginLinkLayerAddress,
47 IpSuffixOriginRandom,
48 IpSuffixOriginUnchanged = 16,
49 } NL_SUFFIX_ORIGIN;
51 typedef enum
53 IpDadStateInvalid = 0,
54 IpDadStateTentative,
55 IpDadStateDuplicate,
56 IpDadStateDeprecated,
57 IpDadStatePreferred,
58 } NL_DAD_STATE;
60 typedef enum _NL_LINK_LOCAL_ADDRESS_BEHAVIOR
62 LinkLocalAlwaysOff = 0,
63 LinkLocalDelayed,
64 LinkLocalAlwaysOn,
65 LinkLocalUnchanged = -1,
66 } NL_LINK_LOCAL_ADDRESS_BEHAVIOR;
68 typedef enum _NL_ROUTER_DISCOVERY_BEHAVIOR
70 RouterDiscoveryDisabled = 0,
71 RouterDiscoveryEnabled,
72 RouterDiscoveryDhcp,
73 RouterDiscoveryUnchanged = -1,
74 } NL_ROUTER_DISCOVERY_BEHAVIOR;
76 typedef enum
78 #define MAKE_ROUTE_PROTOCOL(name, value) \
79 MIB_IPPROTO_ ## name = value, \
80 PROTO_IP_ ## name = value
82 MAKE_ROUTE_PROTOCOL(OTHER, 1),
83 MAKE_ROUTE_PROTOCOL(LOCAL, 2),
84 MAKE_ROUTE_PROTOCOL(NETMGMT, 3),
85 MAKE_ROUTE_PROTOCOL(ICMP, 4),
86 MAKE_ROUTE_PROTOCOL(EGP, 5),
87 MAKE_ROUTE_PROTOCOL(GGP, 6),
88 MAKE_ROUTE_PROTOCOL(HELLO, 7),
89 MAKE_ROUTE_PROTOCOL(RIP, 8),
90 MAKE_ROUTE_PROTOCOL(IS_IS, 9),
91 MAKE_ROUTE_PROTOCOL(ES_IS, 10),
92 MAKE_ROUTE_PROTOCOL(CISCO, 11),
93 MAKE_ROUTE_PROTOCOL(BBN, 12),
94 MAKE_ROUTE_PROTOCOL(OSPF, 13),
95 MAKE_ROUTE_PROTOCOL(BGP, 14),
97 MAKE_ROUTE_PROTOCOL(NT_AUTOSTATIC, 10002),
98 MAKE_ROUTE_PROTOCOL(NT_STATIC, 10006),
99 MAKE_ROUTE_PROTOCOL(NT_STATIC_NON_DOD, 10007),
100 } NL_ROUTE_PROTOCOL, *PNL_ROUTE_PROTOCOL;
102 typedef struct _NL_INTERFACE_OFFLOAD_ROD
104 BOOLEAN NlChecksumSupported : 1;
105 BOOLEAN NlOptionsSupported : 1;
106 BOOLEAN TlDatagramChecksumSupported : 1;
107 BOOLEAN TlStreamChecksumSupported : 1;
108 BOOLEAN TlStreamOptionsSupported : 1;
109 BOOLEAN FastPathCompatible : 1;
110 BOOLEAN TlLargeSendOffloadSupported : 1;
111 BOOLEAN TlGiantSendOffloadSupported : 1;
112 } NL_INTERFACE_OFFLOAD_ROD, *PNL_INTERFACE_OFFLOAD_ROD;
114 typedef enum _NL_NEIGHBOR_STATE
116 NlnsUnreachable,
117 NlnsIncomplete,
118 NlnsProbe,
119 NlnsDelay,
120 NlnsStale,
121 NlnsReachable,
122 NlnsPermanent,
123 NlnsMaximum,
124 } NL_NEIGHBOR_STATE, *PNL_NEIGHBOR_STATE;
126 #endif /* __WINE_NLDEF_H */