nf_internals.h 898 B

1234567891011121314151617181920212223242526272829303132333435363738
  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(format , ## args)
  8. #else
  9. #define NFDEBUG(format, args...)
  10. #endif
  11. /* core.c */
  12. extern unsigned int nf_iterate(struct list_head *head,
  13. struct sk_buff **skb,
  14. int hook,
  15. const struct net_device *indev,
  16. const struct net_device *outdev,
  17. struct list_head **i,
  18. int (*okfn)(struct sk_buff *),
  19. int hook_thresh);
  20. /* nf_queue.c */
  21. extern int nf_queue(struct sk_buff *skb,
  22. struct list_head *elem,
  23. int pf, unsigned int hook,
  24. struct net_device *indev,
  25. struct net_device *outdev,
  26. int (*okfn)(struct sk_buff *),
  27. unsigned int queuenum);
  28. extern int __init netfilter_queue_init(void);
  29. /* nf_log.c */
  30. extern int __init netfilter_log_init(void);
  31. #endif