unpicmpd.h 483 B

1234567891011121314151617
  1. #ifndef __unpicmp_h
  2. #define __unpicmp_h
  3. #include "unp.h"
  4. #define ICMPD_PATH "/tmp/icmpd" /* server's well-known pathname */
  5. struct icmpd_err {
  6. int icmpd_errno;/* EHOSTUNREACH, EMSGSIZE, ECONNREFUSED */
  7. char icmpd_type; /* actual ICMPv[46] type */
  8. char icmpd_code; /* actual ICMPv[46] code */
  9. socklen_t icmpd_len; /* length of sockaddr{} that follows */
  10. struct sockaddr_storage icmpd_dest; /* sockaddr_storage handles any size */
  11. };
  12. #endif /* __unpicmp_h */