]> git.proxmox.com Git - mirror_ovs.git/blame - build-aux/extract-odp-netlink-windows-dp-h
nroff: Fix style of names.
[mirror_ovs.git] / build-aux / extract-odp-netlink-windows-dp-h
CommitLineData
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.
71i\
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.
14s/_LINUX_OPENVSWITCH_H/__OVS_DP_INTERFACE_H_/
15
16# and use the appropriate userspace header.
fa1324c9 17s,<linux/types\.h>,"Types.h",
c640e3ce
AS
18
19# Add ETH_ADDR_LEN macro to avoid including userspace packet.h
20s,#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.
24s/ETH_ALEN/ETH_ADDR_LEN/