nf_internals.h 922 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. extern unsigned int nf_iterate(struct list_head *head,
  13. struct sk_buff *skb,
  14. unsigned 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. u_int8_t 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