]> granicus.if.org Git - ipset/commitdiff
Fifth stage to ipset-5
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 22 Apr 2010 15:00:42 +0000 (17:00 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 22 Apr 2010 15:00:42 +0000 (17:00 +0200)
Rename files in kernel/ and get rid of old ones (2.4.x kernel tree support).

34 files changed:
kernel/Config.in.ipset [deleted file]
kernel/Makefile.export.ipset [deleted file]
kernel/Makefile.ipset [deleted file]
kernel/expand_macros.pl [deleted file]
kernel/include/linux/netfilter/ip_set.h [moved from kernel/include/linux/netfilter_ipv4/ip_set.h with 100% similarity]
kernel/include/linux/netfilter/ip_set_bitmaps.h [moved from kernel/include/linux/netfilter_ipv4/ip_set_bitmaps.h with 100% similarity]
kernel/include/linux/netfilter/ip_set_compat.h [moved from kernel/include/linux/netfilter_ipv4/ip_set_compat.h with 100% similarity]
kernel/include/linux/netfilter/ip_set_getport.h [moved from kernel/include/linux/netfilter_ipv4/ip_set_getport.h with 100% similarity]
kernel/include/linux/netfilter/ip_set_hashes.h [moved from kernel/include/linux/netfilter_ipv4/ip_set_hashes.h with 100% similarity]
kernel/include/linux/netfilter/ip_set_iphash.h [moved from kernel/include/linux/netfilter_ipv4/ip_set_iphash.h with 100% similarity]
kernel/include/linux/netfilter/ip_set_ipmap.h [moved from kernel/include/linux/netfilter_ipv4/ip_set_ipmap.h with 100% similarity]
kernel/include/linux/netfilter/ip_set_ipporthash.h [moved from kernel/include/linux/netfilter_ipv4/ip_set_ipporthash.h with 100% similarity]
kernel/include/linux/netfilter/ip_set_ipportiphash.h [moved from kernel/include/linux/netfilter_ipv4/ip_set_ipportiphash.h with 100% similarity]
kernel/include/linux/netfilter/ip_set_ipportnethash.h [moved from kernel/include/linux/netfilter_ipv4/ip_set_ipportnethash.h with 100% similarity]
kernel/include/linux/netfilter/ip_set_iptree.h [moved from kernel/include/linux/netfilter_ipv4/ip_set_iptree.h with 100% similarity]
kernel/include/linux/netfilter/ip_set_iptreemap.h [moved from kernel/include/linux/netfilter_ipv4/ip_set_iptreemap.h with 100% similarity]
kernel/include/linux/netfilter/ip_set_jhash.h [moved from kernel/include/linux/netfilter_ipv4/ip_set_jhash.h with 100% similarity]
kernel/include/linux/netfilter/ip_set_macipmap.h [moved from kernel/include/linux/netfilter_ipv4/ip_set_macipmap.h with 100% similarity]
kernel/include/linux/netfilter/ip_set_malloc.h [moved from kernel/include/linux/netfilter_ipv4/ip_set_malloc.h with 100% similarity]
kernel/include/linux/netfilter/ip_set_nethash.h [moved from kernel/include/linux/netfilter_ipv4/ip_set_nethash.h with 100% similarity]
kernel/include/linux/netfilter/ip_set_portmap.h [moved from kernel/include/linux/netfilter_ipv4/ip_set_portmap.h with 100% similarity]
kernel/include/linux/netfilter/ip_set_setlist.h [moved from kernel/include/linux/netfilter_ipv4/ip_set_setlist.h with 100% similarity]
kernel/include/linux/netfilter/ipt_set.h [moved from kernel/include/linux/netfilter_ipv4/ipt_set.h with 100% similarity]
kernel/ip_set_bitmap_ip.c [moved from kernel/ip_set_ipmap.c with 100% similarity]
kernel/ip_set_bitmap_ipmac.c [moved from kernel/ip_set_macipmap.c with 100% similarity]
kernel/ip_set_bitmap_port.c [moved from kernel/ip_set_portmap.c with 100% similarity]
kernel/ip_set_hash_ip.c [moved from kernel/ip_set_iphash.c with 100% similarity]
kernel/ip_set_hash_ipport.c [moved from kernel/ip_set_ipporthash.c with 100% similarity]
kernel/ip_set_hash_ipportip.c [moved from kernel/ip_set_ipportiphash.c with 100% similarity]
kernel/ip_set_hash_ipportnet.c [moved from kernel/ip_set_ipportnethash.c with 100% similarity]
kernel/ip_set_hash_net.c [moved from kernel/ip_set_nethash.c with 100% similarity]
kernel/ip_set_list_set.c [moved from kernel/ip_set_setlist.c with 100% similarity]
kernel/ip_set_tree_ip.c [moved from kernel/ip_set_iptree.c with 100% similarity]
kernel/patch_kernel [deleted file]

diff --git a/kernel/Config.in.ipset b/kernel/Config.in.ipset
deleted file mode 100644 (file)
index 0f442e7..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-  dep_tristate '  IP set support' CONFIG_IP_NF_SET $CONFIG_IP_NF_IPTABLES
-  if [ "$CONFIG_IP_NF_SET" != "n" ]; then
-    int '     Maximum number of sets' CONFIG_IP_NF_SET_MAX 256
-    int '     Hash size for bindings of IP sets' CONFIG_IP_NF_SET_HASHSIZE 1024
-    dep_tristate '    set match support' CONFIG_IP_NF_MATCH_SET $CONFIG_IP_NF_SET
-    dep_tristate '    SET target support' CONFIG_IP_NF_TARGET_SET $CONFIG_IP_NF_SET
-    dep_tristate '    ipmap set type support' CONFIG_IP_NF_SET_IPMAP $CONFIG_IP_NF_SET
-    dep_tristate '    macipmap set type support' CONFIG_IP_NF_SET_MACIPMAP $CONFIG_IP_NF_SET
-    dep_tristate '    portmap set type support' CONFIG_IP_NF_SET_PORTMAP $CONFIG_IP_NF_SET
-    dep_tristate '    iphash set type support' CONFIG_IP_NF_SET_IPHASH $CONFIG_IP_NF_SET
-    dep_tristate '    nethash set type support' CONFIG_IP_NF_SET_NETHASH $CONFIG_IP_NF_SET
-    dep_tristate '    ipporthash set type support' CONFIG_IP_NF_SET_IPPORTHASH $CONFIG_IP_NF_SET
-    dep_tristate '    ipportiphash set type support' CONFIG_IP_NF_SET_IPPORTIPHASH $CONFIG_IP_NF_SET
-    dep_tristate '    ipportnethash set type support' CONFIG_IP_NF_SET_IPPORTNETHASH $CONFIG_IP_NF_SET
-    dep_tristate '    iptree set type support' CONFIG_IP_NF_SET_IPTREE $CONFIG_IP_NF_SET
-    dep_tristate '    iptreemap set type support' CONFIG_IP_NF_SET_IPTREEMAP $CONFIG_IP_NF_SET
-    dep_tristate '    setlist set type support' CONFIG_IP_NF_SET_SETLIST $CONFIG_IP_NF_SET
-  fi
diff --git a/kernel/Makefile.export.ipset b/kernel/Makefile.export.ipset
deleted file mode 100644 (file)
index 1a971df..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-ifdef CONFIG_IP_NF_SET
-       export-objs += ip_set.o
-endif
diff --git a/kernel/Makefile.ipset b/kernel/Makefile.ipset
deleted file mode 100644 (file)
index fe42cc1..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-# ipset
-obj-$(CONFIG_IP_NF_SET) += ip_set.o
-obj-$(CONFIG_IP_NF_SET_IPMAP) += ip_set_ipmap.o
-obj-$(CONFIG_IP_NF_SET_PORTMAP) += ip_set_portmap.o
-obj-$(CONFIG_IP_NF_SET_MACIPMAP) += ip_set_macipmap.o
-obj-$(CONFIG_IP_NF_SET_IPHASH) += ip_set_iphash.o
-obj-$(CONFIG_IP_NF_SET_NETHASH) += ip_set_nethash.o
-obj-$(CONFIG_IP_NF_SET_IPPORTHASH) += ip_set_ipporthash.o
-obj-$(CONFIG_IP_NF_SET_IPPORTIPHASH) += ip_set_ipportiphash.o
-obj-$(CONFIG_IP_NF_SET_IPPORTNETHASH) += ip_set_ipportnethash.o
-obj-$(CONFIG_IP_NF_SET_IPTREE) += ip_set_iptree.o
-obj-$(CONFIG_IP_NF_SET_IPTREEMAP) += ip_set_iptreemap.o
-obj-$(CONFIG_IP_NF_SET_SETLIST) += ip_set_setlist.o
-
-# match and target
-obj-$(CONFIG_IP_NF_MATCH_SET) += ipt_set.o
-obj-$(CONFIG_IP_NF_TARGET_SET) += ipt_SET.o
diff --git a/kernel/expand_macros.pl b/kernel/expand_macros.pl
deleted file mode 100755 (executable)
index ea0f4b6..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/perl
-
-my $expand = 0;
-
-while (<STDIN>) {
-  if ($expand) {
-    print C;
-  } elsif (m,include \<(linux/netfilter_ipv4/ip_set\.h)\>,) {
-      $expand = 1;
-      open(C, "|gcc -D__KERNEL__ -Iinclude -E - 2>/dev/null| indent -kr -i8") || die "Can't run gcc: $!\n";
-      print C;
-  } else {
-    print;
-  }
-}
-close C;
\ No newline at end of file
diff --git a/kernel/patch_kernel b/kernel/patch_kernel
deleted file mode 100755 (executable)
index a3f96f0..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/bash
-
-# set -e
-
-kconfig() {
-       file=$1/net/ipv4/netfilter/Kconfig
-       if [ "`grep 'config IP_NF_SET' $file`" ]; then
-               return
-       fi
-       mv $file $file.orig
-       grep -v endmenu $file.orig > $file
-       cat Kconfig.ipset >> $file
-       echo "endmenu" >> $file
-}
-
-config() {
-       file=$1/net/ipv4/netfilter/Config.in
-       if [ "`grep 'CONFIG_IP_NF_SET' $file`" ]; then
-               return
-       fi
-       mv $file $file.orig
-       grep -v endmenu $file.orig > $file
-       cat Config.in.ipset >> $file
-       echo "endmenu" >> $file
-}
-
-makefile() {
-       file=$1/net/ipv4/netfilter/Makefile
-       if [ "`grep CONFIG_IP_NF_SET $file`" ]; then
-               return
-       fi
-       cp $file $file.orig
-       cat Makefile.ipset >> $file
-}
-
-oldmakefile() {
-       file=$1/net/ipv4/netfilter/Makefile
-       if [ "`grep CONFIG_IP_NF_SET $file`" ]; then
-               return
-       fi
-       lineno=`grep -n Rules.make $file | cut -f1 -d:`
-       lineno=$((lineno-1))
-       head -n $lineno $file > $file.head
-       lineno=$((lineno+1))
-       tail +$lineno $file > $file.tail
-       cp $file $file.orig
-       cat $file.head Makefile.ipset Makefile.export.ipset $file.tail > $file
-}
-
-tree() {
-       cp include/linux/netfilter_ipv4/* $1/include/linux/netfilter_ipv4/
-       cp *.c $1/net/ipv4/netfilter/
-}
-
-if [ -z "$1" ]; then
-       echo "Error: missing kernel directory parameter."
-       exit 1
-fi
-if [ -f $1/net/ipv4/netfilter/Kconfig ]; then
-       tree $1
-       kconfig $1
-       makefile $1
-elif [ -f $1/net/ipv4/netfilter/Config.in ]; then
-       tree $1
-       config $1
-       oldmakefile $1
-else
-       echo "Error: The directory $1 doesn't look like a Linux 2.4/2.6 kernel source tree."
-       exit 1
-fi