nf_internals.h 727 B

12345678910111213141516171819202122232425262728
  1. #ifndef _NF_INTERNALS_H
  2. #define _NF_INTERNALS_H
  3. #include <linux/list.h>
  4. #include <linux/skbuff.h>
  5. #include <linux/netdevice.h>
  6. #ifdef CONFIG_NETFILTER_DEBUG
  7. #define NFDEBUG(format, args...) printk(KERN_DEBUG format , ## args)
  8. #else
  9. #define NFDEBUG(format, args...)
  10. #endif
  11. /* core.c */
  12. unsigned int nf_iterate(struct list_head *head, struct sk_buff *skb,
  13. struct nf_hook_state *state, struct nf_hook_ops **elemp);
  14. /* nf_queue.c */
  15. int nf_queue(struct sk_buff *skb, struct nf_hook_ops *elem,
  16. struct nf_hook_state *state, unsigned int queuenum);
  17. void nf_queue_nf_hook_drop(struct net *net, struct nf_hook_ops *ops);
  18. int __init netfilter_queue_init(void);
  19. /* nf_log.c */
  20. int __init netfilter_log_init(void);
  21. #endif