diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-03-16 19:10:11 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-03-16 19:10:11 +0000 |
commit | 364e952de54eeef5cc0b92da2bcf3d4993c475de (patch) | |
tree | 25e6b99e32b0c4a88d3dcf5a4662111f87cb1da9 /pkg/tcpip/header/ndpoptionidentifier_string.go | |
parent | fc371b3b4d71801cc4a7c5964f2d020255134022 (diff) | |
parent | 05193de1ccaf487a175dead4121c62b99e02d0f5 (diff) |
Merge release-20210309.0-33-g05193de1c (automated)
Diffstat (limited to 'pkg/tcpip/header/ndpoptionidentifier_string.go')
-rw-r--r-- | pkg/tcpip/header/ndpoptionidentifier_string.go | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/pkg/tcpip/header/ndpoptionidentifier_string.go b/pkg/tcpip/header/ndpoptionidentifier_string.go index 83f94a730..55ab1d7cf 100644 --- a/pkg/tcpip/header/ndpoptionidentifier_string.go +++ b/pkg/tcpip/header/ndpoptionidentifier_string.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// Code generated by "stringer -type NDPOptionIdentifier"; DO NOT EDIT. +// Code generated by "stringer -type ndpOptionIdentifier"; DO NOT EDIT. package header @@ -22,37 +22,37 @@ func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} - _ = x[NDPSourceLinkLayerAddressOptionType-1] - _ = x[NDPTargetLinkLayerAddressOptionType-2] - _ = x[NDPPrefixInformationType-3] - _ = x[NDPNonceOptionType-14] - _ = x[NDPRecursiveDNSServerOptionType-25] - _ = x[NDPDNSSearchListOptionType-31] + _ = x[ndpSourceLinkLayerAddressOptionType-1] + _ = x[ndpTargetLinkLayerAddressOptionType-2] + _ = x[ndpPrefixInformationType-3] + _ = x[ndpNonceOptionType-14] + _ = x[ndpRecursiveDNSServerOptionType-25] + _ = x[ndpDNSSearchListOptionType-31] } const ( - _NDPOptionIdentifier_name_0 = "NDPSourceLinkLayerAddressOptionTypeNDPTargetLinkLayerAddressOptionTypeNDPPrefixInformationType" - _NDPOptionIdentifier_name_1 = "NDPNonceOptionType" - _NDPOptionIdentifier_name_2 = "NDPRecursiveDNSServerOptionType" - _NDPOptionIdentifier_name_3 = "NDPDNSSearchListOptionType" + _ndpOptionIdentifier_name_0 = "ndpSourceLinkLayerAddressOptionTypendpTargetLinkLayerAddressOptionTypendpPrefixInformationType" + _ndpOptionIdentifier_name_1 = "ndpNonceOptionType" + _ndpOptionIdentifier_name_2 = "ndpRecursiveDNSServerOptionType" + _ndpOptionIdentifier_name_3 = "ndpDNSSearchListOptionType" ) var ( - _NDPOptionIdentifier_index_0 = [...]uint8{0, 35, 70, 94} + _ndpOptionIdentifier_index_0 = [...]uint8{0, 35, 70, 94} ) -func (i NDPOptionIdentifier) String() string { +func (i ndpOptionIdentifier) String() string { switch { case 1 <= i && i <= 3: i -= 1 - return _NDPOptionIdentifier_name_0[_NDPOptionIdentifier_index_0[i]:_NDPOptionIdentifier_index_0[i+1]] + return _ndpOptionIdentifier_name_0[_ndpOptionIdentifier_index_0[i]:_ndpOptionIdentifier_index_0[i+1]] case i == 14: - return _NDPOptionIdentifier_name_1 + return _ndpOptionIdentifier_name_1 case i == 25: - return _NDPOptionIdentifier_name_2 + return _ndpOptionIdentifier_name_2 case i == 31: - return _NDPOptionIdentifier_name_3 + return _ndpOptionIdentifier_name_3 default: - return "NDPOptionIdentifier(" + strconv.FormatInt(int64(i), 10) + ")" + return "ndpOptionIdentifier(" + strconv.FormatInt(int64(i), 10) + ")" } } |