Put back kmod-ebtables for 2.4 kernels
[openwrt.git] / target / linux / generic-2.4 / patches / 622-netfilter_ipset_porthash.patch
1 diff -ruN linux-2.4.34.orig/include/linux/netfilter_ipv4/ip_set_ipporthash.h linux-2.4.34/include/linux/netfilter_ipv4/ip_set_ipporthash.h
2 --- linux-2.4.34.orig/include/linux/netfilter_ipv4/ip_set_ipporthash.h 1970-01-01 01:00:00.000000000 +0100
3 +++ linux-2.4.34/include/linux/netfilter_ipv4/ip_set_ipporthash.h 2006-12-31 18:32:57.183171722 +0100
4 @@ -0,0 +1,34 @@
5 +#ifndef __IP_SET_IPPORTHASH_H
6 +#define __IP_SET_IPPORTHASH_H
7 +
8 +#include <linux/netfilter_ipv4/ip_set.h>
9 +
10 +#define SETTYPE_NAME "ipporthash"
11 +#define MAX_RANGE 0x0000FFFF
12 +#define INVALID_PORT (MAX_RANGE + 1)
13 +
14 +struct ip_set_ipporthash {
15 + ip_set_ip_t *members; /* the ipporthash proper */
16 + uint32_t elements; /* number of elements */
17 + uint32_t hashsize; /* hash size */
18 + uint16_t probes; /* max number of probes */
19 + uint16_t resize; /* resize factor in percent */
20 + ip_set_ip_t first_ip; /* host byte order, included in range */
21 + ip_set_ip_t last_ip; /* host byte order, included in range */
22 + void *initval[0]; /* initvals for jhash_1word */
23 +};
24 +
25 +struct ip_set_req_ipporthash_create {
26 + uint32_t hashsize;
27 + uint16_t probes;
28 + uint16_t resize;
29 + ip_set_ip_t from;
30 + ip_set_ip_t to;
31 +};
32 +
33 +struct ip_set_req_ipporthash {
34 + ip_set_ip_t ip;
35 + ip_set_ip_t port;
36 +};
37 +
38 +#endif /* __IP_SET_IPPORTHASH_H */
This page took 0.040362 seconds and 5 git commands to generate.