- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for setBroadcast (0.12 sec)
-
src/net/interface_bsd_test.go
//go:build darwin || dragonfly || freebsd || netbsd || openbsd package net import ( "errors" "fmt" "os/exec" "runtime" ) func (ti *testInterface) setBroadcast(vid int) error { if runtime.GOOS == "openbsd" { ti.name = fmt.Sprintf("vether%d", vid) } else { ti.name = fmt.Sprintf("vlan%d", vid) } xname, err := exec.LookPath("ifconfig") if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 1.4K bytes - Viewed (0) -
src/net/interface_linux_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package net import ( "fmt" "os/exec" "testing" ) func (ti *testInterface) setBroadcast(suffix int) error { ti.name = fmt.Sprintf("gotest%d", suffix) xname, err := exec.LookPath("ip") if err != nil { return err } ti.setupCmds = append(ti.setupCmds, &exec.Cmd{ Path: xname,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 06 00:05:32 UTC 2018 - 3.7K bytes - Viewed (0) -
src/net/interface_unix_test.go
for _, vid := range []int{1002, 1003, 1004, 1005} { ift1, err := Interfaces() if err != nil { t.Fatal(err) } ti := &testInterface{local: local, remote: remote} if err := ti.setBroadcast(vid); err != nil { t.Skipf("test requires external command: %v", err) } if err := ti.setup(); err != nil { t.Fatal(err) } else { time.Sleep(3 * time.Millisecond) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 18 23:51:35 UTC 2023 - 4.9K bytes - Viewed (0)