cloptions.h 977 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. #ifdef __cplusplus
  3. extern "C" {
  4. #endif
  5. */
  6. #include <stdint.h>
  7. extern int v6;
  8. extern int initialOnly;
  9. extern const char *localName;
  10. extern unsigned rate;
  11. extern unsigned numRequest;
  12. extern const char *server;
  13. extern const char *diagSelector;
  14. int procArgs(int argc, char **argv);
  15. // Functions tested in cloptions unit test
  16. int parse(int argc, char** argv);
  17. const char* getAddress();
  18. uint16_t getPort();
  19. uint32_t getTimeout();
  20. const char* getQname();
  21. // Also need definitions of these values
  22. namespace OptionInfo {
  23. const uint32_t QR = 0x0001;
  24. const uint32_t OP = 0x0002;
  25. const uint32_t AA = 0x0004;
  26. const uint32_t TC = 0x0008;
  27. const uint32_t Z = 0x0010;
  28. const uint32_t AD = 0x0020;
  29. const uint32_t CD = 0x0040;
  30. const uint32_t RC = 0x0080;
  31. const uint32_t QC = 0x0100;
  32. const uint32_t AC = 0x0200;
  33. const uint32_t UC = 0x0400;
  34. const uint32_t DC = 0x0800;
  35. const uint32_t MS = 0x1000;
  36. };
  37. /*
  38. #ifdef __cplusplus
  39. }
  40. #endif
  41. */