Skip to content

Commit

Permalink
extract-odp-netlink-windows-dp-h: add definition of IFNAMSIZ
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Samuel Ghinet <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
nithinrajub authored and blp committed Sep 19, 2014
1 parent 0fd22ae commit f92156a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-aux/extract-odp-netlink-windows-dp-h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ s,<linux/types\.h>,"Types.h",

# 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,
#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/

0 comments on commit f92156a

Please sign in to comment.