1 # This is a "sed" script that transforms <linux/openvswitch.h> into a
2 # form that is suitable for inclusion within the Open vSwitch tree on
3 # windows system. The transformed header file can be included by windows
6 # Add a header warning that this is a generated file.
8 /* -*- mode: c; buffer-read-only: t -*- */\
9 /* Generated automatically from <linux/openvswitch.h> -- do not modify! */\
13 # Avoid using reserved names in header guards.
14 s/_LINUX_OPENVSWITCH_H/__OVS_DP_INTERFACE_H_/
16 # and use the appropriate userspace header.
17 s,<linux/types\.h>,"Types.h",
19 # Add ETH_ADDR_LEN macro to avoid including userspace packet.h
20 s,#include <linux/if_ether\.h>,\n#ifndef ETH_ADDR_LEN \
21 #define ETH_ADDR_LEN 6 \n#endif,
23 # Use OVS's own ETH_ADDR_LEN instead of Linux-specific ETH_ALEN.
24 s/ETH_ALEN/ETH_ADDR_LEN/