summaryrefslogtreecommitdiffhomepage
path: root/iana
diff options
context:
space:
mode:
authorDave Barr <38654497+davebarrau@users.noreply.github.com>2018-09-20 22:54:40 +1000
committerinsomniac <insomniacslk@users.noreply.github.com>2018-09-20 13:54:40 +0100
commitf10e01a9bfb08a7b74bd9d322b26bc354cb04ad1 (patch)
tree8d91f4a4813178313b3fd8326354036936d1968a /iana
parent37d7fb8c0ea2aad32543403bbb57d1206062bc20 (diff)
Add NoPrefixAvail status code (#155)
As per https://www.ietf.org/rfc/rfc3633.txt section 16, status code 6 has been reserved for "Delegating router has no prefixes available to assign to the IAPD(s)"
Diffstat (limited to 'iana')
-rw-r--r--iana/statuscodes.go26
1 files changed, 14 insertions, 12 deletions
diff --git a/iana/statuscodes.go b/iana/statuscodes.go
index 47e8110..aa18433 100644
--- a/iana/statuscodes.go
+++ b/iana/statuscodes.go
@@ -5,12 +5,13 @@ type StatusCode uint16
// IANA status codes as defined by rfc 3315 par. 24..4
const (
- StatusSuccess StatusCode = 0
- StatusUnspecFail StatusCode = 1
- StatusNoAddrsAvail StatusCode = 2
- StatusNoBinding StatusCode = 3
- StatusNotOnLink StatusCode = 4
- StatusUseMulticast StatusCode = 5
+ StatusSuccess StatusCode = 0
+ StatusUnspecFail StatusCode = 1
+ StatusNoAddrsAvail StatusCode = 2
+ StatusNoBinding StatusCode = 3
+ StatusNotOnLink StatusCode = 4
+ StatusUseMulticast StatusCode = 5
+ StatusNoPrefixAvail StatusCode = 6
)
// StatusCodeToString returns a mnemonic name for a given status code
@@ -23,10 +24,11 @@ func StatusCodeToString(s StatusCode) string {
// StatusCodeToStringMap maps status codes to their names
var StatusCodeToStringMap = map[StatusCode]string{
- StatusSuccess: "Success",
- StatusUnspecFail: "UnspecFail",
- StatusNoAddrsAvail: "NoAddrsAvail",
- StatusNoBinding: "NoBinding",
- StatusNotOnLink: "NotOnLink",
- StatusUseMulticast: "UseMulticast",
+ StatusSuccess: "Success",
+ StatusUnspecFail: "UnspecFail",
+ StatusNoAddrsAvail: "NoAddrsAvail",
+ StatusNoBinding: "NoBinding",
+ StatusNotOnLink: "NotOnLink",
+ StatusUseMulticast: "UseMulticast",
+ StatusNoPrefixAvail: "NoPrefixAvail",
}