Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for IPv6unspecified (0.25 sec)

  1. src/net/netip/inlining_test.go

    		"AddrPort.Port",
    		"AddrPort.IsValid",
    		"Prefix.IsSingleIP",
    		"Prefix.Masked",
    		"Prefix.IsValid",
    		"PrefixFrom",
    		"Prefix.Addr",
    		"Prefix.Bits",
    		"AddrFrom4",
    		"IPv6LinkLocalAllNodes",
    		"IPv6Unspecified",
    		"MustParseAddr",
    		"MustParseAddrPort",
    		"MustParsePrefix",
    		"appendDecimal",
    		"appendHex",
    		"uint128.addOne",
    		"uint128.and",
    		"uint128.bitsClearedFrom",
    		"uint128.bitsSetFrom",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. src/net/main_test.go

    		resolveTCPAddrTests = append(resolveTCPAddrTests, resolveTCPAddrTest{"tcp", "[::]:4", &TCPAddr{IP: IPv6unspecified, Port: 4}, nil})
    		resolveUDPAddrTests = append(resolveUDPAddrTests, resolveUDPAddrTest{"udp", "[::]:4", &UDPAddr{IP: IPv6unspecified, Port: 4}, nil})
    		resolveIPAddrTests = append(resolveIPAddrTests, resolveIPAddrTest{"ip", "::", &IPAddr{IP: IPv6unspecified}, nil})
    	}
    
    	ifi := loopbackInterface()
    	if ifi != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. src/net/example_test.go

    	// Output:
    	// true
    	// false
    	// true
    	// false
    }
    
    func ExampleIP_IsUnspecified() {
    	ipv6Unspecified := net.ParseIP("::")
    	ipv6Specified := net.ParseIP("fe00::")
    	ipv4Unspecified := net.ParseIP("0.0.0.0")
    	ipv4Specified := net.ParseIP("8.8.8.8")
    
    	fmt.Println(ipv6Unspecified.IsUnspecified())
    	fmt.Println(ipv6Specified.IsUnspecified())
    	fmt.Println(ipv4Unspecified.IsUnspecified())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 13 16:36:59 UTC 2021
    - 8.5K bytes
    - Viewed (0)
  4. src/net/ipsock.go

    	if err != nil {
    		return nil, err
    	}
    	// Issue 18806: if the machine has halfway configured
    	// IPv6 such that it can bind on "::" (IPv6unspecified)
    	// but not connect back to that same address, fall
    	// back to dialing 0.0.0.0.
    	if len(ips) == 1 && ips[0].IP.Equal(IPv6unspecified) {
    		ips = append(ips, IPAddr{IP: IPv4zero})
    	}
    
    	var filter func(IPAddr) bool
    	if net != "" && net[len(net)-1] == '4' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  5. 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)
  6. src/net/sock_posix.go

    				return err
    			}
    			addr := *addr
    			switch fd.family {
    			case syscall.AF_INET:
    				addr.IP = IPv4zero
    			case syscall.AF_INET6:
    				addr.IP = IPv6unspecified
    			}
    			laddr = &addr
    		}
    	}
    	var err error
    	var lsa syscall.Sockaddr
    	if lsa, err = laddr.sockaddr(fd.family); err != nil {
    		return err
    	}
    
    	if ctrlCtxFn != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  7. src/net/netip/netip_test.go

    			std:  net.IPv6linklocalallrouters,
    		},
    		{
    			name: "IPv6 loopback",
    			ip:   IPv6Loopback(),
    			std:  net.IPv6loopback,
    		},
    		{
    			name: "IPv6 unspecified",
    			ip:   IPv6Unspecified(),
    			std:  net.IPv6unspecified,
    		},
    	}
    
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			want := tt.std.String()
    			got := tt.ip.String()
    
    			if got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top