home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1999 February / MACPOWER-1999-02.ISO.7z / MACPOWER-1999-02.ISO / 9902⁄AMUG / UTILITY / mac06-0.95.sit / mac06-0.95 / usr / include / netinet / netinet_ip_icmp.h < prev    next >
Text File  |  1998-05-01  |  1KB  |  56 lines

  1. /* mac06ゥ1998 by HNS/DSITRI hns@computer.org
  2. ** netinet/ip_icmp.h
  3. ** 01.05.1998    HNS        pulled out from ping.c
  4. */
  5.  
  6. #pragma once
  7.  
  8. #include <netinet/in_systm.h>
  9.  
  10. struct icmp
  11.     {
  12.     short icmp_type;        /* major type */
  13. #define ICMP_ECHOREPLY             0
  14. #define ICMP_UNREACH            1
  15. #define ICMP_SOURCEQUENCH        2
  16. #define ICMP_REDIRECT            3
  17. #define ICMP_TIMXCEED            4
  18. #define ICMP_PARAMPROB            5
  19. #define ICMP_TSTAMP                6
  20. #define ICMP_TSTAMPREPLY        7
  21. #define ICMP_ECHO                8
  22. #define ICMP_IREQ                9
  23. #define ICMP_IREQREPLY            10
  24. #define ICMP_MASKREQ            11
  25. #define ICMP_MASKREPLY            12
  26.     short icmp_code;        /* subtype */
  27. #define ICMP_UNREACH_NET        0
  28. #define ICMP_UNREACH_HOST        1
  29. #define ICMP_UNREACH_PROTOCOL    2
  30. #define ICMP_UNREACH_PORT        3
  31. #define ICMP_UNREACH_NEEDFRAG    4
  32. #define ICMP_UNREACH_SRCFAIL    5
  33. #define ICMP_REDIRECT_NET        0
  34. #define ICMP_REDIRECT_HOST        1
  35. #define ICMP_REDIRECT_TOSNET    2
  36. #define ICMP_REDIRECT_TOSHOST    3
  37. #define ICMP_TIMXCEED_INTRANS    0
  38. #define ICMP_TIMXCEED_REASS        1
  39.     long icmp_cksum;
  40.     unsigned short icmp_seq;
  41.     int icmp_id;
  42.     int icmp_ip;
  43.     struct
  44.         {
  45.         u_long ih_gwaddr;
  46.         u_char ih_pptr;
  47.         } icmp_hun;
  48.     };
  49.  
  50. #define ICMP_MINLEN                10
  51.  
  52. /* EOF */
  53.  
  54.  
  55.  
  56.