Lines Matching refs:IPv4Addr

28 var ipv4AddrAttrMap map[AttrName]func(IPv4Addr) string
36 type IPv4Addr struct { struct
57 func NewIPv4Addr(ipv4Str string) (IPv4Addr, error) {
71 return IPv4Addr{}, fmt.Errorf("Unable to convert %s to an IPv4 address", ipv4Str)
79 …return IPv4Addr{}, fmt.Errorf("Unable to convert %s to an IPv4 address: unable to parse CIDR netma…
81 …return IPv4Addr{}, fmt.Errorf("Unable to convert %s to an IPv4 address: invalid CIDR netmask", ipv…
89 ipv4Addr := IPv4Addr{
101 return IPv4Addr{}, fmt.Errorf("Unable to resolve %+q as an IPv4 address", ipv4Str)
105 ipv4Addr := IPv4Addr{
119 return IPv4Addr{}, fmt.Errorf("Unable to string convert %+q to an IPv4 address", ipv4Str)
123 ipv4Addr := IPv4Addr{
130 return IPv4Addr{}, fmt.Errorf("Unable to parse %+q to an IPv4 address: %v", ipv4Str, err)
136 func (ipv4 IPv4Addr) AddressBinString() string { argument
143 func (ipv4 IPv4Addr) AddressHexString() string { argument
152 func (ipv4 IPv4Addr) Broadcast() IPAddr { argument
154 return IPv4Addr{
162 func (ipv4 IPv4Addr) BroadcastAddress() IPv4Network { argument
172 func (ipv4 IPv4Addr) CmpAddress(sa SockAddr) int { argument
173 ipv4b, ok := sa.(IPv4Addr)
194 func (ipv4 IPv4Addr) CmpPort(sa SockAddr) int { argument
197 case IPv4Addr:
221 func (ipv4 IPv4Addr) CmpRFC(rfcNum uint, sa SockAddr) int { argument
223 ipv4b, ok := sa.(IPv4Addr)
251 func (ipv4 IPv4Addr) Contains(sa SockAddr) bool { argument
252 ipv4b, ok := sa.(IPv4Addr)
262 func (ipv4 IPv4Addr) ContainsAddress(x IPv4Address) bool { argument
269 func (ipv4 IPv4Addr) ContainsNetwork(x IPv4Addr) bool { argument
278 func (ipv4 IPv4Addr) DialPacketArgs() (network, dialArgs string) { argument
289 func (ipv4 IPv4Addr) DialStreamArgs() (network, dialArgs string) { argument
297 func (ipv4 IPv4Addr) Equal(sa SockAddr) bool { argument
298 ipv4b, ok := sa.(IPv4Addr)
325 func (ipv4 IPv4Addr) FirstUsable() IPAddr { argument
334 return IPv4Addr{
343 func (ipv4 IPv4Addr) Host() IPAddr { argument
345 return IPv4Addr{
353 func (ipv4 IPv4Addr) IPPort() IPPort { argument
359 func (ipv4 IPv4Addr) LastUsable() IPAddr { argument
368 return IPv4Addr{
377 func (ipv4 IPv4Addr) ListenPacketArgs() (network, listenArgs string) { argument
387 func (ipv4 IPv4Addr) ListenStreamArgs() (network, listenArgs string) { argument
396 func (ipv4 IPv4Addr) Maskbits() int { argument
405 func MustIPv4Addr(addr string) IPv4Addr {
415 func (ipv4 IPv4Addr) NetIP() *net.IP { argument
422 func (ipv4 IPv4Addr) NetIPMask() *net.IPMask { argument
430 func (ipv4 IPv4Addr) NetIPNet() *net.IPNet { argument
439 func (ipv4 IPv4Addr) Network() IPAddr { argument
440 return IPv4Addr{
447 func (ipv4 IPv4Addr) NetworkAddress() IPv4Network { argument
453 func (ipv4 IPv4Addr) Octets() []int { argument
463 func (ipv4 IPv4Addr) String() string { argument
476 func (IPv4Addr) Type() SockAddrType { argument
482 func IPv4AddrAttr(ipv4 IPv4Addr, selector AttrName) string { argument
505 ipv4AddrAttrMap = map[AttrName]func(ipv4 IPv4Addr) string{
506 "broadcast": func(ipv4 IPv4Addr) string {
509 "size": func(ipv4 IPv4Addr) string {
512 "uint32": func(ipv4 IPv4Addr) string {