You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

netsplit.h 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * File: netsplit.h
  3. * Author: missvaleska
  4. *
  5. * Created on November 6, 2014, 6:44 PM
  6. */
  7. #ifndef NETSPLIT_H
  8. #define NETSPLIT_H
  9. #include "netsplit.c"
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. int
  14. isValidIpv6Address (char *ipAddress);
  15. int
  16. isValidIpv4Address (char *ipAddress);
  17. /* Forwards packets to this IP through the inet
  18. * iptables forwarding rule. */
  19. void
  20. inetipForwarding (char *ipAddress, int family);
  21. /* Forwards packets to this IP through the ntk
  22. * iptables forwarding rule. */
  23. void
  24. ntkipForwarding (char *ipAddress, int family);
  25. /* Resolves the ntk domain name in ANDNA,
  26. * Forwarding the originally desired packets
  27. * through the ntk iptables forwarding rule. */
  28. void
  29. ntkDNSResolution (char *domain);
  30. /* Resolves the inet domain name via the commented out name servers
  31. * in /etc/resolv.conf, Forwarding the dns query packets
  32. * through the inet iptables forwarding rule.
  33. * Then, Forwards the originally desired packets
  34. * through the inet iptables forwarding rule. */
  35. void
  36. inetDNSResolution (char *domain);
  37. void
  38. inet_mode (char *domain);
  39. void
  40. ntk_mode (char *domain);
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44. #endif /* NETSPLIT_H */