netdev-dpdk: fix mbuf leaks
[cascardo/ovs.git] / datapath-windows / ovsext / Types.h
1 /*
2  * Copyright (c) 2014 VMware, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at:
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __TYPES_H_
18 #define __TYPES_H_ 1
19
20 /* Defines the userspace specific data types
21  * for files included from user space. */
22 typedef unsigned long long uint64, uint64_t, ovs_be64, u64;
23 typedef long long int64, int64_t;
24 typedef unsigned int uint32, uint32_t, ovs_be32, u32;
25 typedef unsigned short uint16, uint16_t, ovs_be16, u16;
26 typedef unsigned char uint8, uint8_t, u8;
27 typedef uint64 __u64, __be64;
28 typedef uint32 __u32, __be32;
29 typedef uint16 __u16, __be16;
30 typedef uint8 __u8;
31
32 /* Defines the  userspace specific data types for file
33  * included within kernel only. */
34 typedef UINT8 BE8;
35 typedef UINT16 BE16;
36 typedef UINT32 BE32;
37 typedef UINT64 BE64;
38
39 #define ETH_ALEN 6
40
41 #define SIZE_MAX MAXUINT32
42
43 #endif /* __TYPES_H_ */