diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-05-11 17:29:21 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2011-05-11 17:29:21 +0200 |
commit | d61d46655030100b4c67dfee94b3fa0f4066606e (patch) | |
tree | 6f649eb48267ba57f56dd5053303a44840e97f47 /kernel/net/netfilter/ipset/ip_set_hash_netport.c | |
parent | 32d1d2fa35c6ff61ce376f9f5eb734132599ff44 (diff) |
Set type support with multiple revisions added
A set type may have multiple revisions, for example when syntax is extended.
Support continuous revision ranges in set types.
Diffstat (limited to 'kernel/net/netfilter/ipset/ip_set_hash_netport.c')
-rw-r--r-- | kernel/net/netfilter/ipset/ip_set_hash_netport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/net/netfilter/ipset/ip_set_hash_netport.c b/kernel/net/netfilter/ipset/ip_set_hash_netport.c index 037b829..09f807f 100644 --- a/kernel/net/netfilter/ipset/ip_set_hash_netport.c +++ b/kernel/net/netfilter/ipset/ip_set_hash_netport.c @@ -544,7 +544,8 @@ static struct ip_set_type hash_netport_type __read_mostly = { .features = IPSET_TYPE_IP | IPSET_TYPE_PORT, .dimension = IPSET_DIM_TWO, .family = AF_UNSPEC, - .revision = 1, + .revision_min = 0, + .revision_max = 1, /* SCTP and UDPLITE support added */ .create = hash_netport_create, .create_policy = { [IPSET_ATTR_HASHSIZE] = { .type = NLA_U32 }, |