You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.2 KiB

  1. // go generate gen.go
  2. // GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
  3. package ipv4
  4. // Internet Control Message Protocol (ICMP) Parameters, Updated: 2013-04-19
  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. )
  18. // Internet Control Message Protocol (ICMP) Parameters, Updated: 2013-04-19
  19. var icmpTypes = map[ICMPType]string{
  20. 0: "echo reply",
  21. 3: "destination unreachable",
  22. 5: "redirect",
  23. 8: "echo",
  24. 9: "router advertisement",
  25. 10: "router solicitation",
  26. 11: "time exceeded",
  27. 12: "parameter problem",
  28. 13: "timestamp",
  29. 14: "timestamp reply",
  30. 40: "photuris",
  31. }