Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 147 for onetmp (0.31 sec)

  1. src/net/tcpsock.go

    //
    // If a is nil, a zero value is returned.
    func (a *TCPAddr) AddrPort() netip.AddrPort {
    	if a == nil {
    		return netip.AddrPort{}
    	}
    	na, _ := netip.AddrFromSlice(a.IP)
    	na = na.WithZone(a.Zone)
    	return netip.AddrPortFrom(na, uint16(a.Port))
    }
    
    // Network returns the address's network name, "tcp".
    func (a *TCPAddr) Network() string { return "tcp" }
    
    func (a *TCPAddr) String() string {
    	if a == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/cni-watcher.go

    		return err
    	}
    	log.Debugf("Pod: %s in ns: %s is enabled for ambient, adding to mesh.", addCmd.PodName, addCmd.PodNamespace)
    
    	var podIps []netip.Addr
    	for _, configuredPodIPs := range addCmd.IPs {
    		// net.ip is implicitly convertible to netip as slice
    		ip, _ := netip.AddrFromSlice(configuredPodIPs.Address.IP)
    		// We ignore the mask of the IPNet - it's fine if the IPNet defines
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. src/net/udpsock_test.go

    	}
    
    	conn, err := ListenUDP("udp", nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer conn.Close()
    
    	daddr4 := netip.AddrPortFrom(netip.MustParseAddr("127.0.0.1"), 12345)
    	daddr4in6 := netip.AddrPortFrom(netip.MustParseAddr("::ffff:127.0.0.1"), 12345)
    	daddr6 := netip.AddrPortFrom(netip.MustParseAddr("::1"), 12345)
    	buf := make([]byte, 8)
    
    	_, _, err = conn.WriteMsgUDPAddrPort(buf, nil, daddr4)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/cni-watcher_test.go

    	wg, waitForMockCalls := NewWaitForNCalls(t, 1)
    	fs := &fakeServer{testWG: wg}
    
    	// This pod should be enmeshed with the CNI ip, even tho the pod status had no ip
    	fs.On("AddPodToMesh",
    		ctx,
    		pod,
    		[]netip.Addr{netip.MustParseAddr(fakePodIP)},
    		valid.Netns,
    	).Return(nil)
    
    	dpServer := &meshDataplane{
    		kubeClient: client.Kube(),
    		netServer:  fs,
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/webhook/client.go

    	}
    
    	return complete(cfg)
    }
    
    func isLocalHost(u *url.URL) bool {
    	host := u.Hostname()
    	if strings.EqualFold(host, "localhost") {
    		return true
    	}
    
    	netIP := netutils.ParseIPSloppy(host)
    	if netIP != nil {
    		return netIP.IsLoopback()
    	}
    	return false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 04 09:09:10 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  6. test-site/app/Global.java

            Suggest.createContent();
            Logger.info("Create suggest index.");
            Suggest.createSuggestFromContent();
            Logger.info("Finished setup suggest.");
        }
    
        @Override
        public void onStop(Application var1) {
            ComponentsUtil.runner.close();
            ComponentsUtil.runner.clean();
        }
    
        private void esRun() {
            ElasticsearchClusterRunner runner = new ElasticsearchClusterRunner();
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Sat Feb 23 14:02:03 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  7. src/net/hosts.go

    // license that can be found in the LICENSE file.
    
    package net
    
    import (
    	"errors"
    	"internal/bytealg"
    	"io/fs"
    	"net/netip"
    	"sync"
    	"time"
    )
    
    const cacheMaxAge = 5 * time.Second
    
    func parseLiteralIP(addr string) string {
    	ip, err := netip.ParseAddr(addr)
    	if err != nil {
    		return ""
    	}
    	return ip.String()
    }
    
    type byName struct {
    	addrs         []string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 07:21:38 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/cel/library/ip_test.go

    		require.True(t, converted, "expectation not equal to output")
    	} else {
    		t.Fatal("expected result must not be nil")
    	}
    }
    
    func TestIP(t *testing.T) {
    	ipv4Addr, _ := netip.ParseAddr("192.168.0.1")
    	int4 := types.Int(4)
    
    	ipv6Addr, _ := netip.ParseAddr("2001:db8::68")
    	int6 := types.Int(6)
    
    	trueVal := types.Bool(true)
    	falseVal := types.Bool(false)
    
    	cases := []struct {
    		name              string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 12:03:07 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  9. pilot/pkg/networking/util/util.go

    func AddrStrToPrefix(addr string) (netip.Prefix, error) {
    	if len(addr) == 0 {
    		return netip.Prefix{}, fmt.Errorf("empty address")
    	}
    
    	// Already a CIDR, just parse it.
    	if strings.Contains(addr, "/") {
    		return netip.ParsePrefix(addr)
    	}
    
    	// Otherwise it is a raw IP. Make it a /32 or /128 depending on family
    	ipa, err := netip.ParseAddr(addr)
    	if err != nil {
    		return netip.Prefix{}, err
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/server.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package nodeagent
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"net/netip"
    	"os"
    	"path/filepath"
    	"sync/atomic"
    
    	corev1 "k8s.io/api/core/v1"
    	"k8s.io/client-go/kubernetes"
    	"k8s.io/client-go/rest"
    
    	pconstants "istio.io/istio/cni/pkg/constants"
    	"istio.io/istio/cni/pkg/ipset"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 21:45:18 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top