inet.af/netstack@v0.0.0-20220214151720-7585b01ddccf/tcpip/network/ipv6/dhcpv6configurationfromndpra_string.go (about) 1 // Copyright 2020 The gVisor Authors. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by "stringer -type DHCPv6ConfigurationFromNDPRA"; DO NOT EDIT. 16 17 package ipv6 18 19 import "strconv" 20 21 func _() { 22 // An "invalid array index" compiler error signifies that the constant values have changed. 23 // Re-run the stringer command to generate them again. 24 var x [1]struct{} 25 _ = x[DHCPv6NoConfiguration-1] 26 _ = x[DHCPv6ManagedAddress-2] 27 _ = x[DHCPv6OtherConfigurations-3] 28 } 29 30 const _DHCPv6ConfigurationFromNDPRA_name = "DHCPv6NoConfigurationDHCPv6ManagedAddressDHCPv6OtherConfigurations" 31 32 var _DHCPv6ConfigurationFromNDPRA_index = [...]uint8{0, 21, 41, 66} 33 34 func (i DHCPv6ConfigurationFromNDPRA) String() string { 35 i -= 1 36 if i < 0 || i >= DHCPv6ConfigurationFromNDPRA(len(_DHCPv6ConfigurationFromNDPRA_index)-1) { 37 return "DHCPv6ConfigurationFromNDPRA(" + strconv.FormatInt(int64(i+1), 10) + ")" 38 } 39 return _DHCPv6ConfigurationFromNDPRA_name[_DHCPv6ConfigurationFromNDPRA_index[i]:_DHCPv6ConfigurationFromNDPRA_index[i+1]] 40 }