On Friday 2010-04-23 10:55, Nicola Padovano wrote: >hi all. >i've read how to register an hook in netfilter. and i found two ways. > >the first uses, this routines: > > > unsigned int my_hook(unsigned int hooknum, > struct sk_buff *skb, > const struct net_device *in, > const struct net_device *out, > int (*okfn)(struct sk_buff *)) > { > } > >int nf_register_hook(struct nf_hook_ops *reg) >int nf_unregister_hook(struct nf_hook_ops *reg) > >the second instead: > >static unsigned int xt_tarpit_target(struct sk_buff *skb, > const struct xt_target_param *par) > >and: >xt_register_target(&xt_tarpit_reg); >xt_unregister_target(&xt_tarpit_reg); > > >which is the difference? That a target is not a hook. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html