static struct nf_hook_ops my_netfilter[] = { { .hook =hook_func_in, .owner =THIS_MODULE, .pf =PF_INET, .hooknum =NF_INET_LOCAL_IN, .priority =100 }, { .hook =hook_func_out, .owner =THIS_MODULE, .pf =PF_INET, .hooknum =NF_INET_LOCAL_OUT, .priority =100 } };
基于Netfilter的内核级包过滤防火墙实现
内容版权声明:除非注明,否则皆为本站原创文章。