Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for onetmp (0.16 sec)

  1. src/net/netip/netip.go

    // Package netip defines an IP address type that's a small value type.
    // Building on that [Addr] type, the package also defines [AddrPort] (an
    // IP address and a port) and [Prefix] (an IP address and a bit length
    // prefix).
    //
    // Compared to the [net.IP] type, [Addr] type takes less memory, is immutable,
    // and is comparable (supports == and being a map key).
    package netip
    
    import (
    	"cmp"
    	"errors"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  2. callbacks/query.go

    										where.Build(&onStmt)
    
    										if onSQL := onStmt.SQL.String(); onSQL != "" {
    											vars := onStmt.Vars
    											for idx, v := range vars {
    												bindvar := strings.Builder{}
    												onStmt.Vars = vars[0 : idx+1]
    												db.Dialector.BindVarTo(&bindvar, &onStmt, v)
    												onSQL = strings.Replace(onSQL, bindvar.String(), "?", 1)
    											}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 09:51:44 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/net_test.go

    	fakeIPSetDeps.On("addIP",
    		"foo-v4",
    		netip.MustParseAddr("99.9.9.9"),
    		ipProto,
    		podUID,
    		false,
    	).Return(nil)
    
    	fakeIPSetDeps.On("addIP",
    		"foo-v4",
    		netip.MustParseAddr("2.2.2.2"),
    		ipProto,
    		podUID,
    		false,
    	).Return(nil)
    
    	podIPs := []netip.Addr{netip.MustParseAddr("99.9.9.9"), netip.MustParseAddr("2.2.2.2")}
    	_, err := addPodToHostNSIpset(pod, podIPs, &set)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  4. src/net/udpsock_posix.go

    		ip := netip.AddrFrom4(sa.Addr)
    		addr = netip.AddrPortFrom(ip, uint16(sa.Port))
    	case syscall.AF_INET6:
    		var sa syscall.SockaddrInet6
    		n, oobn, flags, err = c.fd.readMsgInet6(b, oob, 0, &sa)
    		ip := netip.AddrFrom16(sa.Addr).WithZone(zoneCache.name(int(sa.ZoneId)))
    		addr = netip.AddrPortFrom(ip, uint16(sa.Port))
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. operator/pkg/validate/validate_values_test.go

    `,
    			wantErrs: makeErrors([]string{
    				`global.proxy.excludeIPRanges netip.ParsePrefix("3.3.0.0/33"): prefix length out of range`,
    				`global.proxy.excludeIPRanges netip.ParsePrefix("4.4.0.0/34"): prefix length out of range`,
    				`global.proxy.includeIPRanges netip.ParsePrefix("1.1.0.256/16"): ParseAddr("1.1.0.256"): IPv4 field has value >255`,
    				`global.proxy.includeIPRanges netip.ParsePrefix("2.2.0.257/16"): ParseAddr("2.2.0.257"): IPv4 field has value >255`,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 13:43:12 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. cni/pkg/ipset/nldeps_linux.go

    	return errors.Join(delErrs...)
    }
    
    func (m *realDeps) listEntriesByIP(name string) ([]netip.Addr, error) {
    	var ipList []netip.Addr
    
    	res, err := netlink.IpsetList(name)
    	if err != nil {
    		return ipList, fmt.Errorf("failed to list ipset %s: %w", name, err)
    	}
    
    	for _, entry := range res.Entries {
    		addr, _ := netip.AddrFromSlice(entry.IP)
    		ipList = append(ipList, addr)
    	}
    
    	return ipList, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 30 18:07:05 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. cni/pkg/iptables/iptables_test.go

    		config func(cfg *Config)
    	}{
    		{
    			"default",
    			func(cfg *Config) {
    				cfg.RedirectDNS = true
    			},
    		},
    	}
    	probeSNATipv4 := netip.MustParseAddr("169.254.7.127")
    	probeSNATipv6 := netip.MustParseAddr("e9ac:1e77:90ca:399f:4d6d:ece2:2f9b:3164")
    
    	for _, tt := range cases {
    		for _, ipv6 := range []bool{false, true} {
    			t.Run(tt.name+"_"+ipstr(ipv6), func(t *testing.T) {
    				cfg := constructTestConfig()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 20:16:04 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. cni/pkg/util/podutil.go

    func GetPodIPsIfPresent(pod *corev1.Pod) []netip.Addr {
    	var podIPs []netip.Addr
    	if len(pod.Status.PodIPs) != 0 {
    		for _, pip := range pod.Status.PodIPs {
    			ip := netip.MustParseAddr(pip.IP)
    			podIPs = append(podIPs, ip)
    		}
    	} else if len(pod.Status.PodIP) != 0 {
    		ip := netip.MustParseAddr(pod.Status.PodIP)
    		podIPs = append(podIPs, ip)
    	}
    	return podIPs
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 17:18:11 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/options.go

    	NodeName          = env.RegisterStringVar("NODE_NAME", "", "").Get()
    	Revision          = env.RegisterStringVar("REVISION", "", "").Get()
    	HostProbeSNATIP   = netip.MustParseAddr(env.RegisterStringVar("HOST_PROBE_SNAT_IP", DefaultHostProbeSNATIP, "").Get())
    	HostProbeSNATIPV6 = netip.MustParseAddr(env.RegisterStringVar("HOST_PROBE_SNAT_IPV6", DefaultHostProbeSNATIPV6, "").Get())
    )
    
    const (
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 21:52:29 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/ambient/workloads_test.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package ambient
    
    import (
    	"net/netip"
    	"testing"
    
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    
    	networking "istio.io/api/networking/v1alpha3"
    	networkingclient "istio.io/client-go/pkg/apis/networking/v1alpha3"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 20.3K bytes
    - Viewed (0)
Back to top