Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ParseMAC (0.13 sec)

  1. src/net/mac_test.go

    	for i, tt := range parseMACTests {
    		out, err := ParseMAC(tt.in)
    		if !reflect.DeepEqual(out, tt.out) || !match(err, tt.err) {
    			t.Errorf("ParseMAC(%q) = %v, %v, want %v, %v", tt.in, out, err, tt.out, tt.err)
    		}
    		if tt.err == "" {
    			// Verify that serialization works too, and that it round-trips.
    			s := out.String()
    			out2, err := ParseMAC(s)
    			if err != nil {
    				t.Errorf("%d. ParseMAC(%q) = %v", i, s, err)
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 27 02:36:14 UTC 2019
    - 3.3K bytes
    - Viewed (0)
  2. src/net/mac.go

    	for i, b := range a {
    		if i > 0 {
    			buf = append(buf, ':')
    		}
    		buf = append(buf, hexDigit[b>>4])
    		buf = append(buf, hexDigit[b&0xF])
    	}
    	return string(buf)
    }
    
    // ParseMAC parses s as an IEEE 802 MAC-48, EUI-48, EUI-64, or a 20-octet
    // IP over InfiniBand link-layer address using one of the following formats:
    //
    //	00:00:5e:00:53:01
    //	02:00:5e:10:00:00:00:01
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/formats.go

    	"ipv6",         // an IPv6 IP as parsed by Golang net.ParseIP
    	"cidr",         // a CIDR as parsed by Golang net.ParseCIDR
    	"mac",          // a MAC address as parsed by Golang net.ParseMAC
    	"uuid",         // an UUID that allows uppercase defined by the regex (?i)^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 09 09:26:38 UTC 2020
    - 3.3K bytes
    - Viewed (0)
Back to top