Commit 22cb516696304a9b85892b18c483a27d97cfa51b

Authored by Michael S. Tsirkin
Committed by Patrick McHardy
1 parent edf0e1fb0d

netfilter: correct CHECKSUM header and export it

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>

Showing 2 changed files with 6 additions and 3 deletions Side-by-side Diff

include/linux/netfilter/Kbuild
... ... @@ -3,6 +3,7 @@
3 3 header-y += nfnetlink_conntrack.h
4 4 header-y += nfnetlink_log.h
5 5 header-y += nfnetlink_queue.h
  6 +header-y += xt_CHECKSUM.h
6 7 header-y += xt_CLASSIFY.h
7 8 header-y += xt_CONNMARK.h
8 9 header-y += xt_CONNSECMARK.h
include/linux/netfilter/xt_CHECKSUM.h
... ... @@ -6,14 +6,16 @@
6 6 *
7 7 * This software is distributed under GNU GPL v2, 1991
8 8 */
9   -#ifndef _IPT_CHECKSUM_TARGET_H
10   -#define _IPT_CHECKSUM_TARGET_H
  9 +#ifndef _XT_CHECKSUM_TARGET_H
  10 +#define _XT_CHECKSUM_TARGET_H
11 11  
  12 +#include <linux/types.h>
  13 +
12 14 #define XT_CHECKSUM_OP_FILL 0x01 /* fill in checksum in IP header */
13 15  
14 16 struct xt_CHECKSUM_info {
15 17 __u8 operation; /* bitset of operations */
16 18 };
17 19  
18   -#endif /* _IPT_CHECKSUM_TARGET_H */
  20 +#endif /* _XT_CHECKSUM_TARGET_H */