Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for ICMP (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. src/net/dial.go

    // It depends on each operating system how the operating system
    // behaves with a non-well known protocol number such as "0" or "255".
    //
    // Examples:
    //
    //	Dial("ip4:1", "192.0.2.1")
    //	Dial("ip6:ipv6-icmp", "2001:db8::1")
    //	Dial("ip6:58", "fe80::1%lo0")
    //
    // For TCP, UDP and IP networks, if the host is empty or a literal
    // unspecified IP address, as in ":80", "0.0.0.0:80" or "[::]:80" for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 26.9K bytes
    - Viewed (0)
Back to top