summaryrefslogtreecommitdiff
path: root/include/windows/netpacket
diff options
context:
space:
mode:
authorAlin Serdean <aserdean@cloudbasesolutions.com>2014-07-29 15:21:16 +0000
committerBen Pfaff <blp@nicira.com>2014-07-29 09:28:31 -0700
commitcafc0664aa93c9baaa75296b1e95f718706dcc28 (patch)
treeee8f8fbf6e99d72e96dfc7d8fe6ff410fddea143 /include/windows/netpacket
parent6bc3bb829c5fbcd77a1fd3ee18dbaea49b464e8f (diff)
downloadopenvswitch-cafc0664aa93c9baaa75296b1e95f718706dcc28.tar.gz
Add defines, enums and headers for MSVC
Add defines needed to compile netlink-socket.c and netlink.c. Add a wrapper and the functionality behind it for syconf. Add the newly created files to the noinst_HEADERS in windows/automake.mk Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'include/windows/netpacket')
-rw-r--r--include/windows/netpacket/packet.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/include/windows/netpacket/packet.h b/include/windows/netpacket/packet.h
new file mode 100644
index 000000000..cf26a70f2
--- /dev/null
+++ b/include/windows/netpacket/packet.h
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2014 Cloudbase Solutions Srl
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __NETPACKET_PACKET_H
+#define __NETPACKET_PACKET_H 1
+
+struct iovec
+{
+ void *iov_base;
+ unsigned int iov_len;
+};
+
+struct msghdr
+ {
+ void *msg_name;
+ socklen_t msg_namelen;
+
+ struct iovec *msg_iov;
+ size_t msg_iovlen;
+
+ void *msg_control;
+ size_t msg_controllen;
+
+ int msg_flags;
+ };
+
+#endif /* netpacket/packet.h */ \ No newline at end of file