Lines Matching full:ipv4
7 // IPv4 addresses are 4 bytes; IPv6 addresses are 16 bytes.
8 // An IPv4 address can be converted to an IPv6 address by
22 // Functions in this package accept either 4-byte (IPv4)
26 // IP address as an IPv4 address or an IPv6 address
29 // be an IPv4 address.
41 // IPv4 returns the IP address (in 16-byte form) of the
42 // IPv4 address a.b.c.d.
43 func IPv4(a, b, c, d byte) IP {
56 // IPv4 mask a.b.c.d.
91 // Well-known IPv4 addresses
93 IPv4bcast = IPv4(255, 255, 255, 255) // broadcast
94 IPv4allsys = IPv4(224, 0, 0, 1) // all systems
95 IPv4allrouter = IPv4(224, 0, 0, 2) // all routers
96 IPv4zero = IPv4(0, 0, 0, 0) // all zeros
175 // To4 converts the IPv4 address ip to a 4-byte representation.
176 // If ip is not an IPv4 address, To4 returns nil.
194 return IPv4(ip[0], ip[1], ip[2], ip[3])
202 // Default route masks for IPv4.
210 // Only IPv4 addresses have default masks; DefaultMask returns
211 // nil if ip is not a valid IPv4 address.
255 // If the address is an IPv4 address, the string representation
265 // If IPv4, use dotted notation.
353 // An IPv4 address and that same address in IPv6 form are
494 // Parse IPv4 address (d.d.d.d).
522 return IPv4(p[0], p[1], p[2], p[3])
557 // If followed by dot, might be in trailing IPv4.