~sinzui/ubuntu/vivid/juju-core/vivid-1.24.6

« back to all changes in this revision

Viewing changes to src/golang.org/x/net/ipv4/iana.go

  • Committer: Curtis Hovey
  • Date: 2015-09-30 14:14:54 UTC
  • mfrom: (1.1.34)
  • Revision ID: curtis@hovey.name-20150930141454-o3ldf23dzyjio6c0
Backport of 1.24.6 from wily. (LP: #1500916)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// go generate gen.go
 
2
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
 
3
 
 
4
package ipv4
 
5
 
 
6
// Internet Control Message Protocol (ICMP) Parameters, Updated: 2013-04-19
 
7
const (
 
8
        ICMPTypeEchoReply              ICMPType = 0  // Echo Reply
 
9
        ICMPTypeDestinationUnreachable ICMPType = 3  // Destination Unreachable
 
10
        ICMPTypeRedirect               ICMPType = 5  // Redirect
 
11
        ICMPTypeEcho                   ICMPType = 8  // Echo
 
12
        ICMPTypeRouterAdvertisement    ICMPType = 9  // Router Advertisement
 
13
        ICMPTypeRouterSolicitation     ICMPType = 10 // Router Solicitation
 
14
        ICMPTypeTimeExceeded           ICMPType = 11 // Time Exceeded
 
15
        ICMPTypeParameterProblem       ICMPType = 12 // Parameter Problem
 
16
        ICMPTypeTimestamp              ICMPType = 13 // Timestamp
 
17
        ICMPTypeTimestampReply         ICMPType = 14 // Timestamp Reply
 
18
        ICMPTypePhoturis               ICMPType = 40 // Photuris
 
19
)
 
20
 
 
21
// Internet Control Message Protocol (ICMP) Parameters, Updated: 2013-04-19
 
22
var icmpTypes = map[ICMPType]string{
 
23
        0:  "echo reply",
 
24
        3:  "destination unreachable",
 
25
        5:  "redirect",
 
26
        8:  "echo",
 
27
        9:  "router advertisement",
 
28
        10: "router solicitation",
 
29
        11: "time exceeded",
 
30
        12: "parameter problem",
 
31
        13: "timestamp",
 
32
        14: "timestamp reply",
 
33
        40: "photuris",
 
34
}