]>
Commit | Line | Data |
---|---|---|
c640e3ce AS |
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 | |
4 | # driver modules. | |
5 | ||
6 | # Add a header warning that this is a generated file. | |
7 | 1i\ | |
8 | /* -*- mode: c; buffer-read-only: t -*- */\ | |
9 | /* Generated automatically from <linux/openvswitch.h> -- do not modify! */\ | |
10 | \ | |
11 | \ | |
12 | ||
13 | # Avoid using reserved names in header guards. | |
14 | s/_LINUX_OPENVSWITCH_H/__OVS_DP_INTERFACE_H_/ | |
15 | ||
16 | # and use the appropriate userspace header. | |
fa1324c9 | 17 | s,<linux/types\.h>,"Types.h", |
c640e3ce AS |
18 | |
19 | # Add ETH_ADDR_LEN macro to avoid including userspace packet.h | |
20 | s,#include <linux/if_ether\.h>,\n#ifndef ETH_ADDR_LEN \ | |
a2ab813b | 21 | #define ETH_ADDR_LEN 6 \n#endif, |
c640e3ce AS |
22 | |
23 | # Use OVS's own ETH_ADDR_LEN instead of Linux-specific ETH_ALEN. | |
24 | s/ETH_ALEN/ETH_ADDR_LEN/ |