diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-07-20 07:37:27 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-07-20 07:37:27 +0000 |
commit | 2d33c40879046906afeb3bb4eaefbd4d14c9b503 (patch) | |
tree | 5f4a31a2b4ea39aab41f28580fbf13fc0f7976f8 /target/linux/generic/patches-3.7/604-netfilter_conntrack_flush.patch | |
parent | 5dcd68e0131317e8ffb7980f7c1dd49f34170cce (diff) | |
download | master-187ad058-2d33c40879046906afeb3bb4eaefbd4d14c9b503.tar.gz master-187ad058-2d33c40879046906afeb3bb4eaefbd4d14c9b503.tar.bz2 master-187ad058-2d33c40879046906afeb3bb4eaefbd4d14c9b503.zip |
linux: remove 3.7 support
It is not used by any target.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37469 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/patches-3.7/604-netfilter_conntrack_flush.patch')
-rw-r--r-- | target/linux/generic/patches-3.7/604-netfilter_conntrack_flush.patch | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/target/linux/generic/patches-3.7/604-netfilter_conntrack_flush.patch b/target/linux/generic/patches-3.7/604-netfilter_conntrack_flush.patch deleted file mode 100644 index 3ee5e49829..0000000000 --- a/target/linux/generic/patches-3.7/604-netfilter_conntrack_flush.patch +++ /dev/null @@ -1,46 +0,0 @@ ---- a/net/netfilter/nf_conntrack_standalone.c -+++ b/net/netfilter/nf_conntrack_standalone.c -@@ -267,10 +267,34 @@ static int ct_open(struct inode *inode, - sizeof(struct ct_iter_state)); - } - -+static int kill_all(struct nf_conn *i, void *data) -+{ -+ return 1; -+} -+ -+static ssize_t ct_file_write(struct file *file, const char __user *buf, -+ size_t count, loff_t *ppos) -+{ -+ struct seq_file *seq = file->private_data; -+ struct net *net = seq_file_net(seq); -+ -+ if (count) { -+ char c; -+ -+ if (get_user(c, buf)) -+ return -EFAULT; -+ -+ if (c == 'f') -+ nf_ct_iterate_cleanup(net, kill_all, NULL); -+ } -+ return count; -+} -+ - static const struct file_operations ct_file_ops = { - .owner = THIS_MODULE, - .open = ct_open, - .read = seq_read, -+ .write = ct_file_write, - .llseek = seq_lseek, - .release = seq_release_net, - }; -@@ -372,7 +396,7 @@ static int nf_conntrack_standalone_init_ - { - struct proc_dir_entry *pde; - -- pde = proc_net_fops_create(net, "nf_conntrack", 0440, &ct_file_ops); -+ pde = proc_net_fops_create(net, "nf_conntrack", 0660, &ct_file_ops); - if (!pde) - goto out_nf_conntrack; - |