2014-08-11 11:43:22 -07:00
|
|
|
# This is a "sed" script that transforms <linux/openvswitch.h> into a
|
|
|
|
# form that is suitable for inclusion within the Open vSwitch tree on
|
|
|
|
# windows system. The transformed header file can be included by windows
|
|
|
|
# driver modules.
|
|
|
|
|
|
|
|
# Add a header warning that this is a generated file.
|
|
|
|
1i\
|
|
|
|
/* -*- mode: c; buffer-read-only: t -*- */\
|
|
|
|
/* Generated automatically from <linux/openvswitch.h> -- do not modify! */\
|
|
|
|
\
|
|
|
|
\
|
|
|
|
|
|
|
|
# Avoid using reserved names in header guards.
|
|
|
|
s/_LINUX_OPENVSWITCH_H/__OVS_DP_INTERFACE_H_/
|
|
|
|
|
|
|
|
# and use the appropriate userspace header.
|
2014-08-29 04:06:48 +00:00
|
|
|
s,<linux/types\.h>,"Types.h",
|
2014-08-11 11:43:22 -07:00
|
|
|
|
|
|
|
# Add ETH_ADDR_LEN macro to avoid including userspace packet.h
|
|
|
|
s,#include <linux/if_ether\.h>,\n#ifndef ETH_ADDR_LEN \
|
2014-10-29 15:18:19 -07:00
|
|
|
#define ETH_ADDR_LEN 6 \n#endif,
|
2014-08-11 11:43:22 -07:00
|
|
|
|
|
|
|
# Use OVS's own ETH_ADDR_LEN instead of Linux-specific ETH_ALEN.
|
|
|
|
s/ETH_ALEN/ETH_ADDR_LEN/
|