static void __net_exit nf_nat_rule_net_exit(struct net *net) { if (!net_is_ipt_module_set(net, VE_IP_IPTABLE_NAT)) return; ipt_unregister_table(net->ipv4.nat_table); net_ipt_module_clear(net, VE_IP_IPTABLE_NAT); }
static void __net_exit iptable_filter_net_exit(struct net *net) { if (!net_is_ipt_module_set(net, VE_IP_FILTER)) return; ipt_unregister_table(net->ipv4.iptable_filter); net_ipt_module_clear(net, VE_IP_FILTER); }