Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for ICMP (0.07 sec)

  1. prow/config/calico.yaml

                              type: array
                          type: object
                        icmp:
                          description: ICMP is an optional field that restricts the rule
                            to apply to a specific type and code of ICMP traffic.  This
                            should only be specified if the Protocol field is set to "ICMP"
                            or "ICMPv6".
                          properties:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 246.5K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. pkg/proxy/ipvs/util/ipvs_linux_test.go

    			t.Errorf("case %d failed to translate Destination - got %#v, want %#v", i, *got, Tests[i].ipvsDestination)
    		}
    	}
    }
    
    func Test_stringToProtocol(t *testing.T) {
    	tests := []string{
    		"TCP", "UDP", "ICMP", "SCTP",
    	}
    	expected := []uint16{
    		uint16(unix.IPPROTO_TCP), uint16(unix.IPPROTO_UDP), uint16(0), uint16(unix.IPPROTO_SCTP),
    	}
    	for i := range tests {
    		got := stringToProtocol(tests[i])
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 27 16:37:50 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  8. pkg/proxy/ipvs/ipset/ipset_test.go

    				SetType:  HashIPPort,
    				IP:       "10.20.30.40",
    				Protocol: "ICMP",
    				Port:     8090,
    			},
    			set: &IPSet{
    				Name: "unsupported-protocol",
    			},
    			valid: false,
    		},
    		{ // case[11]
    			entry: &Entry{
    				SetType:  HashIPPort,
    				IP:       "10.20.30.40",
    				Protocol: "ICMP",
    				Port:     -1,
    			},
    			set: &IPSet{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 41.5K bytes
    - Viewed (0)
  9. src/net/lookup.go

    //
    // See https://www.iana.org/assignments/protocol-numbers
    //
    // On Unix, this map is augmented by readProtocols via lookupProtocol.
    var protocols = map[string]int{
    	"icmp":      1,
    	"igmp":      2,
    	"tcp":       6,
    	"udp":       17,
    	"ipv6-icmp": 58,
    }
    
    // services contains minimal mappings between services names and port
    // numbers for platforms that don't have a complete list of port numbers.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  10. src/net/lookup_test.go

    func TestLookupProtocol_Minimal(t *testing.T) {
    	type test struct {
    		name string
    		want int
    	}
    	var tests = []test{
    		{"tcp", 6},
    		{"TcP", 6}, // case shouldn't matter
    		{"icmp", 1},
    		{"igmp", 2},
    		{"udp", 17},
    		{"ipv6-icmp", 58},
    	}
    
    	for _, tt := range tests {
    		got, err := lookupProtocol(context.Background(), tt.name)
    		if got != tt.want || err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.4K bytes
    - Viewed (0)
Back to top