From f92156ae2c86cf1b7c2076f2bca88b6fa10ec632 Mon Sep 17 00:00:00 2001 From: Nithin Raju Date: Fri, 19 Sep 2014 14:30:55 -0700 Subject: [PATCH] extract-odp-netlink-windows-dp-h: add definition of IFNAMSIZ The Windows kernel datapath needs the definition of 'IFNAMSIZ' for specifying attribute sizes in netlink policies. Adding the definition of 'IFNAMSIZ' to be part of OvsDpInterface.h similar to ETH_ADDR_LEN. Signed-off-by: Nithin Raju Acked-by: Samuel Ghinet Signed-off-by: Ben Pfaff --- build-aux/extract-odp-netlink-windows-dp-h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-aux/extract-odp-netlink-windows-dp-h b/build-aux/extract-odp-netlink-windows-dp-h index f2d9f0748..70514cbf9 100755 --- a/build-aux/extract-odp-netlink-windows-dp-h +++ b/build-aux/extract-odp-netlink-windows-dp-h @@ -18,7 +18,8 @@ s,,"Types.h", # Add ETH_ADDR_LEN macro to avoid including userspace packet.h s,#include ,\n#ifndef ETH_ADDR_LEN \ -#define ETH_ADDR_LEN 6 \n#endif, +#define ETH_ADDR_LEN 6 \n#endif \ +\n#ifndef IFNAMSIZ \n#define IFNAMSIZ 16 \n#endif, # Use OVS's own ETH_ADDR_LEN instead of Linux-specific ETH_ALEN. s/ETH_ALEN/ETH_ADDR_LEN/