cf26a70f25b59a3f6274b8b9440d17e1befa0570
[cascardo/ovs.git] / include / windows / netpacket / packet.h
1 /*
2  * Copyright 2014 Cloudbase Solutions Srl
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 __NETPACKET_PACKET_H
18 #define __NETPACKET_PACKET_H 1
19
20 struct iovec
21 {
22     void *iov_base;
23     unsigned int iov_len;
24 };
25
26 struct msghdr
27   {
28     void *msg_name;
29     socklen_t msg_namelen;
30
31     struct iovec *msg_iov;
32     size_t msg_iovlen;
33
34     void *msg_control;
35     size_t msg_controllen;
36
37     int msg_flags;
38   };
39
40 #endif /* netpacket/packet.h */