Skip to content

Commit 68c07cb

Browse files
congwangummakynes
authored andcommitted
netfilter: xt_connlimit: remove revision 0
It was scheduled to be removed. Cc: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent 7a74c1a commit 68c07cb

File tree

3 files changed

+13
-38
lines changed

3 files changed

+13
-38
lines changed

Documentation/feature-removal-schedule.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -414,13 +414,6 @@ Who: Jean Delvare <khali@linux-fr.org>
414414

415415
----------------------------
416416

417-
What: xt_connlimit rev 0
418-
When: 2012
419-
Who: Jan Engelhardt <jengelh@medozas.de>
420-
Files: net/netfilter/xt_connlimit.c
421-
422-
----------------------------
423-
424417
What: i2c_driver.attach_adapter
425418
i2c_driver.detach_adapter
426419
When: September 2011

include/linux/netfilter/xt_connlimit.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,8 @@ struct xt_connlimit_info {
2222
#endif
2323
};
2424
unsigned int limit;
25-
union {
26-
/* revision 0 */
27-
unsigned int inverse;
28-
29-
/* revision 1 */
30-
__u32 flags;
31-
};
25+
/* revision 1 */
26+
__u32 flags;
3227

3328
/* Used internally by the kernel */
3429
struct xt_connlimit_data *data __attribute__((aligned(8)));

net/netfilter/xt_connlimit.c

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -274,38 +274,25 @@ static void connlimit_mt_destroy(const struct xt_mtdtor_param *par)
274274
kfree(info->data);
275275
}
276276

277-
static struct xt_match connlimit_mt_reg[] __read_mostly = {
278-
{
279-
.name = "connlimit",
280-
.revision = 0,
281-
.family = NFPROTO_UNSPEC,
282-
.checkentry = connlimit_mt_check,
283-
.match = connlimit_mt,
284-
.matchsize = sizeof(struct xt_connlimit_info),
285-
.destroy = connlimit_mt_destroy,
286-
.me = THIS_MODULE,
287-
},
288-
{
289-
.name = "connlimit",
290-
.revision = 1,
291-
.family = NFPROTO_UNSPEC,
292-
.checkentry = connlimit_mt_check,
293-
.match = connlimit_mt,
294-
.matchsize = sizeof(struct xt_connlimit_info),
295-
.destroy = connlimit_mt_destroy,
296-
.me = THIS_MODULE,
297-
},
277+
static struct xt_match connlimit_mt_reg __read_mostly = {
278+
.name = "connlimit",
279+
.revision = 1,
280+
.family = NFPROTO_UNSPEC,
281+
.checkentry = connlimit_mt_check,
282+
.match = connlimit_mt,
283+
.matchsize = sizeof(struct xt_connlimit_info),
284+
.destroy = connlimit_mt_destroy,
285+
.me = THIS_MODULE,
298286
};
299287

300288
static int __init connlimit_mt_init(void)
301289
{
302-
return xt_register_matches(connlimit_mt_reg,
303-
ARRAY_SIZE(connlimit_mt_reg));
290+
return xt_register_match(&connlimit_mt_reg);
304291
}
305292

306293
static void __exit connlimit_mt_exit(void)
307294
{
308-
xt_unregister_matches(connlimit_mt_reg, ARRAY_SIZE(connlimit_mt_reg));
295+
xt_unregister_match(&connlimit_mt_reg);
309296
}
310297

311298
module_init(connlimit_mt_init);

0 commit comments

Comments
 (0)