|
static struct nf_hook_ops netdev_ops
={ { NULL,NULL },netdev_hook,PF_INET,NF_IP_LOCAL_OUT,NF_IP_PRI_FILTER-1};
在编译包含上面的代码的程序时老是通不过,提示如下:
variable `netdev_ops' has initializer but incomplete type
extra brace group at end of initializer
(near initialization for `netdev_ops')
warning: excess elements in struct initializer
warning: (near initialization for `netdev_ops') |
|