Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for IPv6zero (0.23 sec)

  1. cmd/kube-proxy/app/server_windows.go

    func (s *ProxyServer) platformSetup(ctx context.Context) error {
    	// Preserve backward-compatibility with the old secondary IP behavior
    	if s.PrimaryIPFamily == v1.IPv4Protocol {
    		s.NodeIPs[v1.IPv6Protocol] = net.IPv6zero
    	} else {
    		s.NodeIPs[v1.IPv4Protocol] = net.IPv4zero
    	}
    	return nil
    }
    
    // platformCheckSupported is called immediately before creating the Proxier, to check
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 13:27:41 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. src/net/udpsock_plan9.go

    func (c *UDPConn) writeTo(b []byte, addr *UDPAddr) (int, error) {
    	if addr == nil {
    		return 0, errMissingAddress
    	}
    	h := new(udpHeader)
    	h.raddr = addr.IP.To16()
    	h.laddr = c.fd.laddr.(*UDPAddr).IP.To16()
    	h.ifcaddr = IPv6zero // ignored (receive only)
    	h.rport = uint16(addr.Port)
    	h.lport = uint16(c.fd.laddr.(*UDPAddr).Port)
    
    	buf := make([]byte, udpHeaderSize+len(b))
    	i := copy(buf, h.Bytes())
    	copy(buf[i:], b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 02 18:35:35 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/net/interface.go

    		if err != nil {
    			return nil, err
    		}
    		gw, err := parseIP(fields[4], familyIPv6)
    		if err != nil {
    			return nil, err
    		}
    		if !dest.Equal(net.IPv6zero) {
    			continue
    		}
    		if gw.Equal(net.IPv6zero) {
    			continue // loopback
    		}
    		routes = append(routes, Route{
    			Interface:   fields[9],
    			Destination: dest,
    			Gateway:     gw,
    			Family:      familyIPv6,
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 07:07:03 UTC 2022
    - 14.7K bytes
    - Viewed (0)
  4. pkg/proxy/ipvs/util/ipvs_linux.go

    	// 011 -> 001, 010 -> 000
    	vs.Flags = ServiceFlags(svc.Flags &^ uint32(FlagHashed))
    
    	if vs.Address == nil {
    		if svc.AddressFamily == unix.AF_INET {
    			vs.Address = net.IPv4zero
    		} else {
    			vs.Address = net.IPv6zero
    		}
    	}
    	return vs, nil
    }
    
    // toRealServer converts an IPVS Destination to the equivalent RealServer structure.
    func toRealServer(dst *libipvs.Destination) (*RealServer, error) {
    	if dst == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 9K bytes
    - Viewed (0)
  5. src/net/ipsock_plan9.go

    	defer f.Close()
    	n, err := f.Read(buf[:])
    	if err != nil {
    		return
    	}
    	ip, port, err := parsePlan9Addr(string(buf[:n]))
    	if err != nil {
    		return
    	}
    	switch net {
    	case "tcp4", "udp4":
    		if ip.Equal(IPv6zero) {
    			ip = ip[:IPv4len]
    		}
    	}
    	switch net {
    	case "tcp", "tcp4", "tcp6":
    		addr = &TCPAddr{IP: ip, Port: port}
    	case "udp", "udp4", "udp6":
    		addr = &UDPAddr{IP: ip, Port: port}
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 20:38:53 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  6. src/net/ipsock_posix.go

    	// we allow a listener to listen to the wildcard
    	// address of both IP addressing spaces by specifying
    	// IPv6 wildcard address.
    	if len(ip) == 0 || ip.Equal(IPv4zero) {
    		ip = IPv6zero
    	}
    	// We accept any IPv6 address including IPv4-mapped
    	// IPv6 address.
    	ip6 := ip.To16()
    	if ip6 == nil {
    		return syscall.SockaddrInet6{}, &AddrError{Err: "non-IPv6 address", Addr: ip.String()}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  7. cmd/net.go

    	// 0.0.0.0 is a wildcard address and refers to local network
    	// addresses. I.e, 0.0.0.0:9000 like ":9000" refers to port
    	// 9000 on localhost.
    	if host.Name != "" && host.Name != net.IPv4zero.String() && host.Name != net.IPv6zero.String() {
    		localHost, err := isLocalHost(host.Name, host.Port.String(), host.Port.String())
    		if err != nil {
    			return err
    		}
    		if !localHost {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/net/interface_test.go

    			} else if tc.count == 1 {
    				if !tc.expected.Gateway.Equal(routes[0].Gateway) {
    					t.Errorf("case[%s]: expected %v, got %v .err : %v", tc.tcase, tc.expected, routes, err)
    				}
    				if !routes[0].Destination.Equal(net.IPv6zero) {
    					t.Errorf("case[%s}: destination is not for default route (not zero)", tc.tcase)
    				}
    			}
    		}
    	}
    }
    
    func TestParseIP(t *testing.T) {
    	testCases := []struct {
    		tcase    string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 10 07:29:34 UTC 2023
    - 33.2K bytes
    - Viewed (0)
  9. cmd/kube-proxy/app/server_linux_test.go

    				Config:   tt.config,
    				Client:   client,
    				Hostname: "nodename",
    				NodeIPs: map[v1.IPFamily]net.IP{
    					v1.IPv4Protocol: netutils.ParseIPSloppy("127.0.0.1"),
    					v1.IPv6Protocol: net.IPv6zero,
    				},
    			}
    			err := s.platformSetup(ctx)
    			if err != nil {
    				t.Errorf("ProxyServer.createProxier() error = %v", err)
    				return
    			}
    			if !reflect.DeepEqual(s.podCIDRs, tt.wantPodCIDRs) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  10. src/net/ip.go

    	IPv4allsys    = IPv4(224, 0, 0, 1)       // all systems
    	IPv4allrouter = IPv4(224, 0, 0, 2)       // all routers
    	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)
Back to top