summaryrefslogtreecommitdiff
path: root/include/windows/automake.mk
Commit message (Collapse)AuthorAgeFilesLines
* ct-dpif, dpif-netlink: Add conntrack timeout policy supportYi-Hung Wei2019-09-261-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch first defines the dpif interface for a datapath to support adding, deleting, getting and dumping conntrack timeout policy. The timeout policy is identified by a 4 bytes unsigned integer in datapath, and it currently support timeout for TCP, UDP, and ICMP protocols. Moreover, this patch provides the implementation for Linux kernel datapath in dpif-netlink. In Linux kernel, the timeout policy is maintained per L3/L4 protocol, and it is identified by 32 bytes null terminated string. On the other hand, in vswitchd, the timeout policy is a generic one that consists of all the supported L4 protocols. Therefore, one of the main task in dpif-netlink is to break down the generic timeout policy into 6 sub policies (ipv4 tcp, udp, icmp, and ipv6 tcp, udp, icmp), and push down the configuration using the netlink API in netlink-conntrack.c. This patch also adds missing symbols in the windows datapath so that the build on windows can pass. Appveyor CI: * https://ci.appveyor.com/project/YiHungWei/ovs/builds/26387754 Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com> Acked-by: Alin Gabriel Serdean <aserdean@ovn.org> Signed-off-by: Justin Pettit <jpettit@ovn.org>
* Windows: Add conntrack netfilter netlink definitions to kernel and userspaceSairam Venugopal2016-07-011-0/+6
| | | | | | | | | | | | Include netfilter-conntrack header definitions. This will be used by Windows userspace for adding debugging support in Conntrack. Few of these files are intentionally left blank to avoid removing #includes in userspace. New file - OvsDpInterfaceCtExt.h has been defined similar to OvsDpInterfaceExt.h to be reused by userspace and kernel. Signed-off-by: Sairam Venugopal <vsairam@vmware.com> Acked-by: Nithin Raju <nithin@vmware.com> Signed-off-by: Gurucharan Shetty <guru@ovn.org>
* Prepare include headersAlin Serdean2014-08-131-0/+3
| | | | | | | Preparing the include headers needed to compile dpif-linux.c with MSVC. Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
* Add defines, enums and headers for MSVCAlin Serdean2014-07-291-0/+1
| | | | | | | | | | | 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>
* system-stats: Port for Windows.Gurucharan Shetty2014-03-171-0/+1
| | | | | | | | This does not provide us all the functionality that is available in Linux. But should be a start. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* windows: Add stub headers for windows.Gurucharan Shetty2014-03-111-0/+18
| | | | | | | | | Windows does not have a bunch of headers that are available in Linux. Instead of littering the code with #ifndef _WIN32, add stub headers. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* getrusage-windows: getrusage() for Windows.Gurucharan Shetty2014-03-061-0/+1
| | | | | | | | | | | | | | | | | | | We use getrusage mainly to get user CPU time and system CPU time. Windows has a GetProcessTimes and GetThreadTimes that does the same job. So use them. We also use getrusage to get page faults. Use GetProcessMemoryInfo() for that. We also get number of context switches, block i/o times and use it for debug information when we wake up from poll_block late. I haven't found functions for that in Windows. We only use it for debug information, so it should be okay not implementing it. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Co-authored-by: Linda Sun <lsun@vmware.com> Signed-off-by: Linda Sun <lsun@vmware.com> Acked-by: Ben Pfaff <blp@nicira.com>
* getopt_long: Copy over the implementation from netbsd.Gurucharan Shetty2014-01-271-2/+3
| | | | | | | | | | | | | | | | | | | Windows does not have a getopt_long function. This commit copies over the getopt_long implementation from netbsd with some minor modifications and is used only on Windows platform. Modifications on top of the version in NetBSD repo. * Remove header files not available in Visual Studio. * Remove some unwanted #defines. * Add Open vSwitch specific header files like config.h, vlog.h, util.h * Add the following #define's define __UNCONST(a) ((void *)(unsigned long)(const void *)(a)) define _DIAGASSERT(q) ovs_assert(q) define warnx VLOG_WARN * Add extern declaration in getopt.h for optarg, optind. Signed-off-by: Gurucharan Shetty <gshetty@nicira.com> Acked-by: Ben Pfaff <blp@nicira.com>
* Add common definitions for Windows builds.Alin Serdean2013-12-271-0/+10
Signed-off-by: Alin Serdean <aserdean at cloudbasesolutions.com> Signed-off-by: Ben Pfaff <blp@nicira.com>