/contrib/ntp/arlib/arplib.h

https://bitbucket.org/freebsd/freebsd-head/ · C++ Header · 45 lines · 35 code · 6 blank · 4 comment · 0 complexity · cd4e6ac34a3f0508be15bcdb78af27a1 MD5 · raw file

  1. /*
  2. * arplib.h (C)opyright 1992 Darren Reed.
  3. */
  4. #define MAXPACKET 1024
  5. #define MAXALIASES 35
  6. #define MAXADDRS 35
  7. #define RES_CHECKPTR 0x0400
  8. struct hent {
  9. char *h_name; /* official name of host */
  10. char *h_aliases[MAXALIASES]; /* alias list */
  11. int h_addrtype; /* host address type */
  12. int h_length; /* length of address */
  13. /* list of addresses from name server */
  14. struct in_addr h_addr_list[MAXADDRS];
  15. #define h_addr h_addr_list[0] /* address, for backward compatiblity */
  16. };
  17. struct resinfo {
  18. char *ri_ptr;
  19. int ri_size;
  20. };
  21. struct reslist {
  22. int re_id;
  23. char re_type;
  24. char re_retries;
  25. char re_resend; /* send flag. 0 == dont resend */
  26. char re_sends;
  27. char re_srch;
  28. int re_sent;
  29. u_long re_sentat;
  30. u_long re_timeout;
  31. struct in_addr re_addr;
  32. struct resinfo re_rinfo;
  33. struct hent re_he;
  34. struct reslist *re_next, *re_prev;
  35. char re_name[65];
  36. };
  37. #ifndef MIN
  38. #define MIN(a,b) ((a) > (b) ? (b) : (a))
  39. #endif