Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for IPv6unspecified (0.2 sec)

  1. src/net/ip_test.go

    		[]byte("2001:db8::1:0:0:1"),
    		nil,
    	},
    	{
    		IP{0x20, 0x1, 0xd, 0xb8, 0, 0, 0, 0, 0, 0xa, 0, 0xb, 0, 0xc, 0, 0xd},
    		"2001:db8::a:b:c:d",
    		[]byte("2001:db8::a:b:c:d"),
    		nil,
    	},
    	{
    		IPv6unspecified,
    		"::",
    		[]byte("::"),
    		nil,
    	},
    
    	// IP wildcard equivalent address in Dial/Listen API
    	{
    		nil,
    		"<nil>",
    		nil,
    		nil,
    	},
    
    	// Opaque byte sequence
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 01:17:29 UTC 2024
    - 25.7K bytes
    - Viewed (0)
  2. src/net/ip.go

    	IPv4zero      = IPv4(0, 0, 0, 0)         // all zeros
    )
    
    // Well-known IPv6 addresses
    var (
    	IPv6zero                   = IP{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    	IPv6unspecified            = IP{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    	IPv6loopback               = IP{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. src/net/netip/netip.go

    // IPv6Loopback returns the IPv6 loopback address ::1.
    func IPv6Loopback() Addr { return AddrFrom16([16]byte{15: 0x01}) }
    
    // IPv6Unspecified returns the IPv6 unspecified address "::".
    func IPv6Unspecified() Addr { return Addr{z: z6noz} }
    
    // IPv4Unspecified returns the IPv4 unspecified address "0.0.0.0".
    func IPv4Unspecified() Addr { return AddrFrom4([4]byte{}) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  4. api/go1.18.txt

    pkg net/netip, func AddrFromSlice([]uint8) (Addr, bool)
    pkg net/netip, func AddrPortFrom(Addr, uint16) AddrPort
    pkg net/netip, func IPv4Unspecified() Addr
    pkg net/netip, func IPv6LinkLocalAllNodes() Addr
    pkg net/netip, func IPv6Unspecified() Addr
    pkg net/netip, func MustParseAddr(string) Addr
    pkg net/netip, func MustParseAddrPort(string) AddrPort
    pkg net/netip, func MustParsePrefix(string) Prefix
    pkg net/netip, func ParseAddr(string) (Addr, error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 13K bytes
    - Viewed (0)
  5. pkg/util/iptree/iptree.go

    func New[T any]() *Tree[T] {
    	return &Tree[T]{
    		rootV4: &node[T]{
    			prefix: netip.PrefixFrom(netip.IPv4Unspecified(), 0),
    		},
    		rootV6: &node[T]{
    			prefix: netip.PrefixFrom(netip.IPv6Unspecified(), 0),
    		},
    	}
    }
    
    // GetPrefix returns the stored value and true if the exact prefix exists in the tree.
    func (t *Tree[T]) GetPrefix(prefix netip.Prefix) (T, bool) {
    	var zeroT T
    
    	n := t.rootV4
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 17.7K bytes
    - Viewed (0)
Back to top