SVN-Revision: 17844master
parent
c9b0c63f07
commit
0e43e71159
@ -1,48 +0,0 @@ |
||||
#
|
||||
# Copyright (C) 2007 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
#
|
||||
include $(TOPDIR)/rules.mk |
||||
include $(INCLUDE_DIR)/kernel.mk |
||||
|
||||
PKG_NAME:=ipset
|
||||
PKG_VERSION:=3.2
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||
PKG_SOURCE_URL:=http://ipset.netfilter.org
|
||||
PKG_MD5SUM:=0fd83af3efae5f72f5e5b55d07582941
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk |
||||
|
||||
define Package/ipset |
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=@!TARGET_etrax @LINUX_2_6
|
||||
TITLE:=Netfilter ip sets administration utility
|
||||
URL:=http://ipset.netfilter.org/
|
||||
endef |
||||
|
||||
define Build/Compile |
||||
$(call Build/Compile/Default, \
|
||||
COPT_FLAGS="$(TARGET_CFLAGS)" \
|
||||
LDFLAGS="-rdynamic -static-libgcc" \
|
||||
KERNEL_DIR="$(LINUX_DIR)" \
|
||||
PREFIX="/usr" \
|
||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||
binaries \
|
||||
)
|
||||
endef |
||||
|
||||
define Package/ipset/install |
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
DESTDIR="$(1)" \
|
||||
PREFIX="/usr" \
|
||||
binaries_install
|
||||
rm -rf $(1)/usr/man
|
||||
endef |
||||
|
||||
$(eval $(call BuildPackage,ipset)) |
File diff suppressed because it is too large
Load Diff
@ -1,37 +0,0 @@ |
||||
--- /dev/null
|
||||
+++ b/include/linux/netfilter_ipv4/ip_set_ipporthash.h
|
||||
@@ -0,0 +1,34 @@
|
||||
+#ifndef __IP_SET_IPPORTHASH_H
|
||||
+#define __IP_SET_IPPORTHASH_H
|
||||
+
|
||||
+#include <linux/netfilter_ipv4/ip_set.h>
|
||||
+
|
||||
+#define SETTYPE_NAME "ipporthash"
|
||||
+#define MAX_RANGE 0x0000FFFF
|
||||
+#define INVALID_PORT (MAX_RANGE + 1)
|
||||
+
|
||||
+struct ip_set_ipporthash {
|
||||
+ ip_set_ip_t *members; /* the ipporthash proper */
|
||||
+ uint32_t elements; /* number of elements */
|
||||
+ uint32_t hashsize; /* hash size */
|
||||
+ uint16_t probes; /* max number of probes */
|
||||
+ uint16_t resize; /* resize factor in percent */
|
||||
+ ip_set_ip_t first_ip; /* host byte order, included in range */
|
||||
+ ip_set_ip_t last_ip; /* host byte order, included in range */
|
||||
+ void *initval[0]; /* initvals for jhash_1word */
|
||||
+};
|
||||
+
|
||||
+struct ip_set_req_ipporthash_create {
|
||||
+ uint32_t hashsize;
|
||||
+ uint16_t probes;
|
||||
+ uint16_t resize;
|
||||
+ ip_set_ip_t from;
|
||||
+ ip_set_ip_t to;
|
||||
+};
|
||||
+
|
||||
+struct ip_set_req_ipporthash {
|
||||
+ ip_set_ip_t ip;
|
||||
+ ip_set_ip_t port;
|
||||
+};
|
||||
+
|
||||
+#endif /* __IP_SET_IPPORTHASH_H */
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue