diff mbox

[nft,1/4] include: cache a copy of kernel ebtables.h

Message ID 20150408172249.49bbc646@urahara
State RFC
Delegated to: Pablo Neira
Headers show

Commit Message

Stephen Hemminger April 9, 2015, 12:22 a.m. UTC
On Wed, 08 Apr 2015 19:48:18 +0200
Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> wrote:

> From: Arturo Borrero Gonzalez <aborrero@nfdev2.cica.es>
> 
> Required for next patches.
> 
> Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>

If you are going to import a kernel header, it should be the exact version
produced by doing: 
  $ make headers_install
in the kernel source directory
the result of that make is files in usr/include/linux

And your version differs:


$ diff -up usr/include/linux/netfilter_bridge/ebtables.h /tmp/ebtables.h 
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Arturo Borrero April 9, 2015, 8:18 a.m. UTC | #1
On 9 April 2015 at 02:22, Stephen Hemminger <stephen@networkplumber.org> wrote:
> On Wed, 08 Apr 2015 19:48:18 +0200
> Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> wrote:
>
>> From: Arturo Borrero Gonzalez <aborrero@nfdev2.cica.es>
>>
>> Required for next patches.
>>
>> Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
>
> If you are going to import a kernel header, it should be the exact version
> produced by doing:

Kernel patch: http://patchwork.ozlabs.org/patch/459393/
diff mbox

Patch

--- usr/include/linux/netfilter_bridge/ebtables.h	2015-02-05 10:17:17.865621216 -0800
+++ /tmp/ebtables.h	2015-04-08 17:20:40.265458995 -0700
@@ -12,9 +12,7 @@ 
 
 #ifndef __LINUX_BRIDGE_EFF_H
 #define __LINUX_BRIDGE_EFF_H
-#include <linux/if.h>
 #include <linux/netfilter_bridge.h>
-#include <linux/if_ether.h>
 
 #define EBT_TABLE_MAXNAMELEN 32
 #define EBT_CHAIN_MAXNAMELEN EBT_TABLE_MAXNAMELEN