Home | History | Annotate | Download | only in net

Lines Matching full:address

5 // IP address manipulations
8 // An IPv4 address can be converted to an IPv6 address by
15 // IP address lengths (bytes).
21 // An IP is a single IP address, a slice of bytes.
26 // IP address as an IPv4 address or an IPv6 address
27 // is a semantic property of the address, not just the
29 // be an IPv4 address.
32 // An IP mask is an IP address.
41 // IPv4 returns the IP address (in 16-byte form) of the
42 // IPv4 address a.b.c.d.
109 // IsUnspecified reports whether ip is an unspecified address.
114 // IsLoopback reports whether ip is a loopback address.
122 // IsMulticast reports whether ip is a multicast address.
131 // an interface-local multicast address.
137 // multicast address.
146 // unicast address.
155 // address.
175 // To4 converts the IPv4 address ip to a 4-byte representation.
176 // If ip is not an IPv4 address, To4 returns nil.
190 // To16 converts the IP address ip to a 16-byte representation.
191 // If ip is not an IP address (it is the wrong length), To16 returns nil.
209 // DefaultMask returns the default IP mask for the IP address ip.
211 // nil if ip is not a valid IPv4 address.
235 // Mask returns the result of masking the IP address ip with mask.
254 // String returns the string form of the IP address ip.
255 // If the address is an IPv4 address, the string representation
331 return nil, &AddrError{Err: "invalid IP address", Addr: ip.String()}
337 // The IP address is expected in a form accepted by ParseIP.
346 return &ParseError{Type: "IP address", Text: s}
352 // Equal reports whether ip and x are the same IP address.
353 // An IPv4 address and that same address in IPv6 form are
473 // Network returns the address's network name, "ip+net".
479 // string which consists of an IP address, followed by a slash
494 // Parse IPv4 address (d.d.d.d).
525 // parseIPv6 parses s as a literal IPv6 address described in RFC 4291
526 // and RFC 5952. It can also parse a literal scoped IPv6 address with
633 // ParseIP parses s as an IP address, returning the result.
636 // If s is not a valid textual representation of an IP address,
651 // ParseCIDR parses s as a CIDR notation IP address and mask,
655 // It returns the IP address and the network implied by the IP
657 // the IP address 192.168.100.1 and the network 192.168.0.0/16.
661 return nil, nil, &ParseError{Type: "CIDR address", Text: s}
672 return nil, nil, &ParseError{Type: "CIDR address", Text: s}