예제 #1
0
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);
}
예제 #2
0
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);
}