/* * vlantag_fini() * Module exit function. */ static void __exit vlantag_fini(void) { offload_vlantag_unregister(); xt_unregister_targets(vlantag_post, ARRAY_SIZE(vlantag_post)); xt_unregister_matches(vlantag_pre, ARRAY_SIZE(vlantag_pre)); }
static int __init xt_set_init(void) { int ret = xt_register_matches(set_matches, ARRAY_SIZE(set_matches)); if (!ret) { ret = xt_register_targets(set_targets, ARRAY_SIZE(set_targets)); if (ret) xt_unregister_matches(set_matches, ARRAY_SIZE(set_matches)); } return ret; }
/* * vlantag_init() * Module init function. */ static int __init vlantag_init(void) { int ret; offload_vlantag_register(vlantag_get_target_info); ret = xt_register_matches(vlantag_pre, ARRAY_SIZE(vlantag_pre)); if (ret < 0) { DEBUGP("failed to register vlantag_pre\n"); return ret; } ret = xt_register_targets(vlantag_post, ARRAY_SIZE(vlantag_post)); if (ret < 0) { DEBUGP("failed to register vlantag_post\n"); xt_unregister_matches(vlantag_pre, ARRAY_SIZE(vlantag_pre)); return ret; } DEBUGP("vlantag_tg_init success\n"); return 0; }
static void __exit xt_u32_exit(void) { xt_unregister_matches(u32_reg, ARRAY_SIZE(u32_reg)); }
static void __exit tcpmss_mt_exit(void) { xt_unregister_matches(tcpmss_mt_reg, ARRAY_SIZE(tcpmss_mt_reg)); }
static void __exit xt_tcpmss_fini(void) { xt_unregister_matches(xt_tcpmss_match, ARRAY_SIZE(xt_tcpmss_match)); }
static void __exit bpf_mt_exit(void) { xt_unregister_matches(bpf_mt_reg, ARRAY_SIZE(bpf_mt_reg)); }
static void __exit quota_mt2_exit(void) { xt_unregister_matches(quota_mt2_reg, ARRAY_SIZE(quota_mt2_reg)); remove_proc_entry("xt_quota", init_net.proc_net); }
static void __exit xt_set_fini(void) { xt_unregister_matches(set_matches, ARRAY_SIZE(set_matches)); xt_unregister_targets(set_targets, ARRAY_SIZE(set_targets)); }
static void __exit xt_comment_fini(void) { xt_unregister_matches(xt_comment_match, ARRAY_SIZE(xt_comment_match)); }
static void __exit xt_multiport_fini(void) { xt_unregister_matches(xt_multiport_match, ARRAY_SIZE(xt_multiport_match)); }
static void __exit dccp_mt_exit(void) { xt_unregister_matches(dccp_mt_reg, ARRAY_SIZE(dccp_mt_reg)); kfree(dccp_optbuf); }
static void __exit xt_rateest_mt_fini(void) { xt_unregister_matches(xt_rateest_match, ARRAY_SIZE(xt_rateest_match)); }
static void __exit length_mt_exit(void) { xt_unregister_matches(length_mt_reg, ARRAY_SIZE(length_mt_reg)); }
static void __exit string_mt_exit(void) { xt_unregister_matches(xt_string_mt_reg, ARRAY_SIZE(xt_string_mt_reg)); }
static void __exit dns_mt_exit(void) { xt_unregister_matches(dns_mt_reg, ARRAY_SIZE(dns_mt_reg)); }
static void __exit xt_esp_cleanup(void) { xt_unregister_matches(xt_esp_match, ARRAY_SIZE(xt_esp_match)); }
static void __exit fini(void) { xt_unregister_matches(xt_policy_match, ARRAY_SIZE(xt_policy_match)); }
static void __exit dns_exit(void) { printk("unregistering %s\n", "xt_dns"); xt_unregister_matches(dns_reg, ARRAY_SIZE(dns_reg)); }
static void __exit xt_connbytes_fini(void) { xt_unregister_matches(xt_connbytes_match, ARRAY_SIZE(xt_connbytes_match)); }
static void __exit owner_mt_exit(void) { xt_unregister_matches(owner_mt_reg, ARRAY_SIZE(owner_mt_reg)); }
static void __exit l2tp_mt_exit(void) { xt_unregister_matches(&l2tp_mt_reg[0], ARRAY_SIZE(l2tp_mt_reg)); }
static void __exit xt_length_fini(void) { xt_unregister_matches(xt_length_match, ARRAY_SIZE(xt_length_match)); }
static void __exit multiport_mt_exit(void) { xt_unregister_matches(multiport_mt_reg, ARRAY_SIZE(multiport_mt_reg)); }
static void __exit xt_quota_fini(void) { xt_unregister_matches(xt_quota_match, ARRAY_SIZE(xt_quota_match)); }
static void __exit addrtype_mt_exit(void) { xt_unregister_matches(addrtype_mt_reg, ARRAY_SIZE(addrtype_mt_reg)); }
static void __exit socket_mt_exit(void) { xt_unregister_matches(socket_mt_reg, ARRAY_SIZE(socket_mt_reg)); }
static void __exit policy_mt_exit(void) { xt_unregister_matches(policy_mt_reg, ARRAY_SIZE(policy_mt_reg)); }
static void __exit iprange_mt_exit(void) { xt_unregister_matches(iprange_mt_reg, ARRAY_SIZE(iprange_mt_reg)); }
static void __exit pkttype_mt_exit(void) { xt_unregister_matches(pkttype_mt_reg, ARRAY_SIZE(pkttype_mt_reg)); }