search for: nf_ip_pri_filter

Displaying 1 result from an estimated 1 matches for "nf_ip_pri_filter".

2003 Apr 25
0
[Bug 85] New: couldn't write file ,call syscall ,ex. sys_open
...e,O_WRONLY|O_CREAT,S_IRUSR|S_IWUSR); printk("fd is [%d]",fd); sys_write(fd,"Mail has develope sucesses , ",20) ; sys_close(fd); set_fs(old_fs) ; return NF_ACCEPT; } static struct nf_hook_ops iplimitfilter= { {NULL,NULL}, myfirewall, PF_INET, NF_IP_PRE_ROUTING, NF_IP_PRI_FILTER }; int init_module(void) { mm_segment_t old_fs =get_fs() ; mm_segment_t new_fs =get_ds(); printk("The** old fs is [%lu]\n",old_fs.seg) ; printk("The** neww fs is [%lu]\n ",new_fs.seg) ; return nf_register_hook(&iplimitfilter); } void cleanup_module(void) { nf_unreg...