Skip to content

Commit

Permalink
netfilter: correct CHECKSUM header and export it
Browse files Browse the repository at this point in the history
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
  • Loading branch information
Michael S. Tsirkin authored and Patrick McHardy committed Jul 16, 2010
1 parent edf0e1f commit 22cb516
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions include/linux/netfilter/Kbuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ header-y += nf_conntrack_tuple_common.h
header-y += nfnetlink_conntrack.h
header-y += nfnetlink_log.h
header-y += nfnetlink_queue.h
header-y += xt_CHECKSUM.h
header-y += xt_CLASSIFY.h
header-y += xt_CONNMARK.h
header-y += xt_CONNSECMARK.h
Expand Down
8 changes: 5 additions & 3 deletions include/linux/netfilter/xt_CHECKSUM.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
*
* This software is distributed under GNU GPL v2, 1991
*/
#ifndef _IPT_CHECKSUM_TARGET_H
#define _IPT_CHECKSUM_TARGET_H
#ifndef _XT_CHECKSUM_TARGET_H
#define _XT_CHECKSUM_TARGET_H

#include <linux/types.h>

#define XT_CHECKSUM_OP_FILL 0x01 /* fill in checksum in IP header */

struct xt_CHECKSUM_info {
__u8 operation; /* bitset of operations */
};

#endif /* _IPT_CHECKSUM_TARGET_H */
#endif /* _XT_CHECKSUM_TARGET_H */

0 comments on commit 22cb516

Please sign in to comment.