# Add ETH_ADDR_LEN macro to avoid including userspace packet.h
s,#include <linux/if_ether\.h>,\n#ifndef ETH_ADDR_LEN \
-#define ETH_ADDR_LEN 6 \n#endif \
-\n#ifndef IFNAMSIZ \n#define IFNAMSIZ 16 \n#endif,
+#define ETH_ADDR_LEN 6 \n#endif,
# Use OVS's own ETH_ADDR_LEN instead of Linux-specific ETH_ALEN.
s/ETH_ALEN/ETH_ADDR_LEN/
OVS_WIN_NETDEV_CMD_GET, /* information about the netdev. */
};
-#define OVS_WIN_NETDEV_ATTR_MAX (__OVS_WIN_NETDEV_ATTR_MAX - 1)
-
/**
* For every vport on the datapath, there is a corresponding netdev. General
* network device attributes of a vport that are not specific to OVS, such as
OVS_WIN_NETDEV_ATTR_IF_FLAGS, /* Interface flags o the vport. */
__OVS_WIN_NETDEV_ATTR_MAX
};
+#define OVS_WIN_NETDEV_ATTR_MAX (__OVS_WIN_NETDEV_ATTR_MAX - 1)
#define OVS_WIN_NETDEV_IFF_UP (1 << 0)
#define OVS_WIN_NETDEV_IFF_PROMISC (1 << 1)
-#define OVS_WIN_NETDEV_ATTR_MAX (__OVS_WIN_NETDEV_ATTR_MAX - 1)
-
typedef struct ovs_dp_stats OVS_DP_STATS;
typedef enum ovs_vport_type OVS_VPORT_TYPE;
#ifndef __OVS_PUB_H_
#define __OVS_PUB_H_ 1
+#include <netioapi.h>
+#define IFNAMSIZ IF_NAMESIZE
#include "../ovsext/Netlink/Netlink.h"
#define OVS_DRIVER_MAJOR_VER 1
uint8_t mnrDrvVer;
} OVS_VERSION, *POVS_VERSION;
-
-
-#define OVS_MAX_PORT_NAME_LENGTH 32
+#define OVS_MAX_PORT_NAME_LENGTH IFNAMSIZ
typedef struct _OVS_VPORT_GET {
uint32_t dpNo;
[Microsoft.HyperV.PowerShell.VMNetworkAdapter]$VMNetworkAdapter,
[parameter(Mandatory=$true)]
- [ValidateLength(1, 16)]
+ [ValidateLength(1, 48)]
[string]$OVSPortName
)
process
(
[parameter(Mandatory=$true)]
- [ValidateLength(1, 16)]
+ [ValidateLength(1, 48)]
[string]$OVSPortName
)
process
param
(
[parameter(Mandatory=$true)]
- [ValidateLength(1, 16)]
+ [ValidateLength(1, 48)]
[string]$OVSPortName
)
process