Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for ICMP (0.03 sec)

  1. 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)
  2. 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)
  3. 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