Home | History | Annotate | Download | only in net

Lines Matching refs:IP

12 // reverseaddr returns the in-addr.arpa. or ip6.arpa. hostname of the IP
14 // to parse the IP address.
16 ip := ParseIP(addr)
17 if ip == nil {
20 if ip.To4() != nil {
21 return uitoa(uint(ip[15])) + "." + uitoa(uint(ip[14])) + "." + uitoa(uint(ip[13])) + "." + uitoa(uint(ip[12])) + ".in-addr.arpa.", nil
24 buf := make([]byte, 0, len(ip)*4+len("ip6.arpa."))
26 for i := len(ip) - 1; i >= 0; i-- {
27 v := ip[i]