func DecodeDNS(domain [kernel.DNSMaxLength]byte) string {
	rep := ""
	i := 0
	for {
		// Parse label length
		labelLen := int(domain[i])
		if i+1+labelLen >= kernel.DNSMaxLength || labelLen == 0 {
			break
		}
		labelRaw := domain[i+1 : i+1+labelLen]
		if len(rep) == 0 {
			rep = string(labelRaw)
		} else {
			rep = rep + "." + string(labelRaw)
		}
		i += labelLen + 1
	}
	return rep
}
// DecodeDNS - Returns the domain name from its kernel representation
Returns the domain name from its kernel representation
// DecodeDNS - Returns the domain name from its kernel representation
func DecodeDNS(domain [kernel.DNSMaxLength]byte) string {
	rep := ""
	i := 0
	for {
		labelLen := int(domain[i])
		if i+1+labelLen >= kernel.DNSMaxLength || labelLen == 0 {
			break
		}
		labelRaw := domain[i+1 : i+1+labelLen]
		if len(rep) == 0 {
			rep = string(labelRaw)
		} else {
			rep = rep + "." + string(labelRaw)
		}
		i += labelLen + 1
	}
	return rep
}
func DecodeDNS ( domain [ kernel . DNSMaxLength ] byte ) string { rep := " " i := 0 for { labelLen := int ( domain [ i ] ) if i + 1 + labelLen >= kernel . DNSMaxLength || labelLen == 0 { break } labelRaw := domain [ i + 1 : i + 1 + labelLen ] if len ( rep ) == 0 { rep = string ( labelRaw ) } else { rep = rep + " " + string ( labelRaw ) } i += labelLen + 1 } return rep }
Returns the domain name from its kernel representation
Returns the domain name from its kernel representation
// Parse label length