Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ICMP (0.12 sec)

  1. src/net/iprawsock_test.go

    			}
    		}
    	}
    }
    
    var ipConnLocalNameTests = []struct {
    	net   string
    	laddr *IPAddr
    }{
    	{"ip4:icmp", &IPAddr{IP: IPv4(127, 0, 0, 1)}},
    	{"ip4:icmp", &IPAddr{}},
    	{"ip4:icmp", nil},
    }
    
    func TestIPConnLocalName(t *testing.T) {
    	for _, tt := range ipConnLocalNameTests {
    		if !testableNetwork(tt.net) {
    			t.Logf("skipping %s test", tt.net)
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. pkg/proxy/ipvs/ipset/types.go

    const (
    	// HashIPPort represents the `hash:ip,port` type ipset.  The hash:ip,port is similar to hash:ip but
    	// you can store IP address and protocol-port pairs in it.  TCP, SCTP, UDP, UDPLITE, ICMP and ICMPv6 are supported
    	// with port numbers/ICMP(v6) types and other protocol numbers without port information.
    	HashIPPort Type = "hash:ip,port"
    	// HashIPPortIP represents the `hash:ip,port,ip` type ipset.  The hash:ip,port,ip set type uses a hash to store
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. src/net/packetconn_test.go

    package net
    
    import (
    	"os"
    	"testing"
    )
    
    // The full stack test cases for IPConn have been moved to the
    // following:
    //	golang.org/x/net/ipv4
    //	golang.org/x/net/ipv6
    //	golang.org/x/net/icmp
    
    func packetConnTestData(t *testing.T, network string) ([]byte, func()) {
    	if !testableNetwork(network) {
    		return nil, func() { t.Logf("skipping %s test", network) }
    	}
    	return []byte("PACKETCONN TEST"), nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 3K bytes
    - Viewed (0)
  4. src/net/protoconn_test.go

    	"os"
    	"runtime"
    	"testing"
    	"time"
    )
    
    // The full stack test cases for IPConn have been moved to the
    // following:
    //	golang.org/x/net/ipv4
    //	golang.org/x/net/ipv6
    //	golang.org/x/net/icmp
    
    func TestTCPListenerSpecificMethods(t *testing.T) {
    	switch runtime.GOOS {
    	case "plan9":
    		t.Skipf("not supported on %s", runtime.GOOS)
    	}
    
    	la, err := ResolveTCPAddr("tcp4", "127.0.0.1:0")
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  5. test/escape_slice.go

    	err           error
    }
    
    var resolveIPAddrTests = []resolveIPAddrTest{
    	{"ip", "127.0.0.1", &IPAddr{IP: IPv4(127, 0, 0, 1)}, nil},
    	{"ip4", "127.0.0.1", &IPAddr{IP: IPv4(127, 0, 0, 1)}, nil},
    	{"ip4:icmp", "127.0.0.1", &IPAddr{IP: IPv4(127, 0, 0, 1)}, nil},
    }
    
    func setupTestData() {
    	resolveIPAddrTests = append(resolveIPAddrTests,
    		[]resolveIPAddrTest{ // ERROR "\[\]resolveIPAddrTest{...} does not escape"
    			{"ip",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. pkg/registry/networking/networkpolicy/storage/storage_test.go

    		// valid
    		np,
    		// invalid
    		&networking.NetworkPolicy{
    			ObjectMeta: metav1.ObjectMeta{Name: "name with spaces"},
    		},
    	)
    }
    
    func TestUpdate(t *testing.T) {
    	protocolICMP := api.Protocol("ICMP")
    	storage, server := newStorage(t)
    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store)
    	test.TestUpdate(
    		// valid
    		validNetworkPolicy(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 18:19:25 UTC 2023
    - 5K bytes
    - Viewed (0)
  7. src/syscall/mksysctl_openbsd.pl

    	kern.shminfo
    	kern.timecounter
    	kern.tty
    	kern.watchdog
    	net.bpf
    	net.ifq
    	net.inet
    	net.inet.ah
    	net.inet.carp
    	net.inet.divert
    	net.inet.esp
    	net.inet.etherip
    	net.inet.gre
    	net.inet.icmp
    	net.inet.igmp
    	net.inet.ip
    	net.inet.ip.ifq
    	net.inet.ipcomp
    	net.inet.ipip
    	net.inet.mobileip
    	net.inet.pfsync
    	net.inet.pim
    	net.inet.tcp
    	net.inet.udp
    	net.inet6
    	net.inet6.divert
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 14 13:21:46 UTC 2018
    - 5K bytes
    - Viewed (0)
  8. src/net/file_test.go

    	"reflect"
    	"runtime"
    	"sync"
    	"testing"
    )
    
    // The full stack test cases for IPConn have been moved to the
    // following:
    //      golang.org/x/net/ipv4
    //      golang.org/x/net/ipv6
    //      golang.org/x/net/icmp
    
    var fileConnTests = []struct {
    	network string
    }{
    	{"tcp"},
    	{"udp"},
    	{"unix"},
    	{"unixpacket"},
    }
    
    func TestFileConn(t *testing.T) {
    	switch runtime.GOOS {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 6.4K bytes
    - Viewed (0)
Back to top