unsigned int test_in(unsigned int hooknum,
struct sk_buff *pskb,
const struct net_device *in,
const struct net_device *out,
int (*okfn)(struct sk_buff *))
static struct nf_hook_ops test_pre_ops
= { { NULL, NULL }, test_in, THIS_MODULE, PF_INET, NF_IP_PRE_ROUTING, NF_IP_PRI_FIRST};
ret = nf_register_hook(&test_pre_ops);
위와 같은 식으로 대