iptables.h 838 B

1234567891011121314151617181920212223
  1. #ifndef _IPTABLES_USER_H
  2. #define _IPTABLES_USER_H
  3. #include <netinet/ip.h>
  4. #include <xtables.h>
  5. #include <libiptc/libiptc.h>
  6. #include <iptables/internal.h>
  7. /* Your shared library should call one of these. */
  8. extern int do_command4(int argc, char *argv[], char **table,
  9. struct xtc_handle **handle);
  10. extern int delete_chain4(const xt_chainlabel chain, int verbose,
  11. struct xtc_handle *handle);
  12. extern int flush_entries4(const xt_chainlabel chain, int verbose,
  13. struct xtc_handle *handle);
  14. extern int for_each_chain4(int (*fn)(const xt_chainlabel, int, struct xtc_handle *),
  15. int verbose, int builtinstoo, struct xtc_handle *handle);
  16. extern void print_rule4(const struct ipt_entry *e,
  17. struct xtc_handle *handle, const char *chain, int counters);
  18. extern struct xtables_globals iptables_globals;
  19. #endif /*_IPTABLES_USER_H*/