iana.go 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // go generate gen.go
  2. // Code generated by the command above; DO NOT EDIT.
  3. package ipv4
  4. // Internet Control Message Protocol (ICMP) Parameters, Updated: 2018-02-26
  5. const (
  6. ICMPTypeEchoReply ICMPType = 0 // Echo Reply
  7. ICMPTypeDestinationUnreachable ICMPType = 3 // Destination Unreachable
  8. ICMPTypeRedirect ICMPType = 5 // Redirect
  9. ICMPTypeEcho ICMPType = 8 // Echo
  10. ICMPTypeRouterAdvertisement ICMPType = 9 // Router Advertisement
  11. ICMPTypeRouterSolicitation ICMPType = 10 // Router Solicitation
  12. ICMPTypeTimeExceeded ICMPType = 11 // Time Exceeded
  13. ICMPTypeParameterProblem ICMPType = 12 // Parameter Problem
  14. ICMPTypeTimestamp ICMPType = 13 // Timestamp
  15. ICMPTypeTimestampReply ICMPType = 14 // Timestamp Reply
  16. ICMPTypePhoturis ICMPType = 40 // Photuris
  17. ICMPTypeExtendedEchoRequest ICMPType = 42 // Extended Echo Request
  18. ICMPTypeExtendedEchoReply ICMPType = 43 // Extended Echo Reply
  19. )
  20. // Internet Control Message Protocol (ICMP) Parameters, Updated: 2018-02-26
  21. var icmpTypes = map[ICMPType]string{
  22. 0: "echo reply",
  23. 3: "destination unreachable",
  24. 5: "redirect",
  25. 8: "echo",
  26. 9: "router advertisement",
  27. 10: "router solicitation",
  28. 11: "time exceeded",
  29. 12: "parameter problem",
  30. 13: "timestamp",
  31. 14: "timestamp reply",
  32. 40: "photuris",
  33. 42: "extended echo request",
  34. 43: "extended echo reply",
  35. }