1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 10_IPV4OPTSSTRIP_compile.dpatch by Robert S. Edmonds <edmonds@debian.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: compile fixes for 2.6.21
8
diff -urNad netfilter-extensions-20070520+debian~/net/ipv4/netfilter/ipt_IPV4OPTSSTRIP.c netfilter-extensions-20070520+debian/net/ipv4/netfilter/ipt_IPV4OPTSSTRIP.c
9
--- netfilter-extensions-20070520+debian~/net/ipv4/netfilter/ipt_IPV4OPTSSTRIP.c 2007-05-22 00:05:30.000000000 -0400
10
+++ netfilter-extensions-20070520+debian/net/ipv4/netfilter/ipt_IPV4OPTSSTRIP.c 2007-05-22 00:08:27.000000000 -0400
12
const struct net_device *in,
13
const struct net_device *out,
15
- const void *targinfo,
17
+ const struct xt_target *target,
18
+ const void *targinfo)
23
unsigned char *optiph;
26
- if (!skb_ip_make_writable(pskb, (*pskb)->len))
27
+ if (!skb_make_writable(pskb, (*pskb)->len))
34
checkentry(const char *tablename,
35
- const struct ipt_entry *e,
37
+ const struct xt_target *target,
39
- unsigned int targinfosize,
40
unsigned int hook_mask)
42
if (strcmp(tablename, "mangle")) {
47
-static struct ipt_target ipt_ipv4optsstrip_reg = {
48
+static struct xt_target ipt_ipv4optsstrip_reg = {
49
.name = "IPV4OPTSSTRIP",
52
.checkentry = checkentry,
55
static int __init init(void)
57
- return ipt_register_target(&ipt_ipv4optsstrip_reg);
58
+ return xt_register_target(&ipt_ipv4optsstrip_reg);
61
static void __exit fini(void)
63
- ipt_unregister_target(&ipt_ipv4optsstrip_reg);
64
+ xt_unregister_target(&ipt_ipv4optsstrip_reg);