Commits
Evgeny Kravtsunov authored and Pavel Emelianov committed fd711ae7974
[PATCH] VE: virtualize ipt_recent Patch virtualizes ipt_recent module in the following way: 1) Introduced struct ve_ipt_recent and corresponding _ipt_recent entry in ve_struct. ve_ipt_recent contains global variables from ipt_recent module. 2) Functions init_ipt_recent, fini_ipt_recent implemented. Current functions designed to be called from ipt_recent_init/fini and ipt_recent_checkentry/destroy in purpose to alloc ve_ipt_recent structure and initialize/cleanup _ipt_recent entry in ve_struct . 3) Functions ipt_recent_init, ipt_recent_exit updated. Note: ipt_recent match does not need compat function as it is needed for hashlimit for example. It is so because sizeof(struct ipt_recent_info) does not depend on the architecture: struct ipt_recent_info { u_int32_t seconds; u_int32_t hit_count; u_int8_t check_set; u_int8_t invert; char name[IPT_RECENT_NAME_LEN]; u_int8_t side; }; Testing was carried out for both 64- and 32-bit ve on 64-bit HN. http://bugzilla.openvz.org/show_bug.cgi?id=117