diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2013-09-06 16:31:40 -0400 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2013-09-30 15:33:27 -0400 |
commit | f925f7056920213889c5e61445f9529f1a86ae41 (patch) | |
tree | 0246e0bf367d08bc37f18beb03c168c678e0023b /include | |
parent | a04d8b6bd9113f3e7f0c216dcaa3c1ad498f2a96 (diff) |
netfilter: ipset: Rename extension offset ids to extension ids
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netfilter/ipset/ip_set.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/linux/netfilter/ipset/ip_set.h b/include/linux/netfilter/ipset/ip_set.h index 56012a3431b2..b4db7912bf0d 100644 --- a/include/linux/netfilter/ipset/ip_set.h +++ b/include/linux/netfilter/ipset/ip_set.h | |||
@@ -56,20 +56,20 @@ enum ip_set_extension { | |||
56 | IPSET_EXT_COUNTER = (1 << IPSET_EXT_BIT_COUNTER), | 56 | IPSET_EXT_COUNTER = (1 << IPSET_EXT_BIT_COUNTER), |
57 | }; | 57 | }; |
58 | 58 | ||
59 | /* Extension offsets */ | ||
60 | enum ip_set_offset { | ||
61 | IPSET_OFFSET_TIMEOUT = 0, | ||
62 | IPSET_OFFSET_COUNTER, | ||
63 | IPSET_OFFSET_MAX, | ||
64 | }; | ||
65 | |||
66 | #define SET_WITH_TIMEOUT(s) ((s)->extensions & IPSET_EXT_TIMEOUT) | 59 | #define SET_WITH_TIMEOUT(s) ((s)->extensions & IPSET_EXT_TIMEOUT) |
67 | #define SET_WITH_COUNTER(s) ((s)->extensions & IPSET_EXT_COUNTER) | 60 | #define SET_WITH_COUNTER(s) ((s)->extensions & IPSET_EXT_COUNTER) |
68 | 61 | ||
62 | /* Extension id, in size order */ | ||
63 | enum ip_set_ext_id { | ||
64 | IPSET_EXT_ID_COUNTER = 0, | ||
65 | IPSET_EXT_ID_TIMEOUT, | ||
66 | IPSET_EXT_ID_MAX, | ||
67 | }; | ||
68 | |||
69 | struct ip_set_ext { | 69 | struct ip_set_ext { |
70 | u32 timeout; | ||
71 | u64 packets; | 70 | u64 packets; |
72 | u64 bytes; | 71 | u64 bytes; |
72 | u32 timeout; | ||
73 | }; | 73 | }; |
74 | 74 | ||
75 | struct ip_set; | 75 | struct ip_set; |