nf_internals.h 921 B

123456789101112131415161718192021222324252627282930313233
  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. unsigned int hook, const struct net_device *indev,
  14. const struct net_device *outdev,
  15. struct nf_hook_ops **elemp,
  16. int (*okfn)(struct sk_buff *), int hook_thresh);
  17. /* nf_queue.c */
  18. int nf_queue(struct sk_buff *skb, struct nf_hook_ops *elem, u_int8_t pf,
  19. unsigned int hook, struct net_device *indev,
  20. struct net_device *outdev, int (*okfn)(struct sk_buff *),
  21. unsigned int queuenum);
  22. void nf_queue_nf_hook_drop(struct nf_hook_ops *ops);
  23. int __init netfilter_queue_init(void);
  24. /* nf_log.c */
  25. int __init netfilter_log_init(void);
  26. #endif