- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for IFNAMSIZ (0.14 sec)
-
src/cmd/vendor/golang.org/x/sys/unix/ifreq_linux.go
type Ifreq struct{ raw ifreq } // NewIfreq creates an Ifreq with the input network interface name after // validating the name does not exceed IFNAMSIZ-1 (trailing NULL required) // bytes. func NewIfreq(name string) (*Ifreq, error) { // Leave room for terminating NULL byte. if len(name) >= IFNAMSIZ { return nil, EINVAL } var ifr ifreq copy(ifr.Ifrn[:], name) return &Ifreq{raw: ifr}, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 4.3K bytes - Viewed (0) -
src/syscall/lsf_linux.go
p[0] = byte(proto >> 8) p[1] = byte(proto) lsall.Ifindex = ifindex e = Bind(s, &lsall) if e != nil { Close(s) return 0, e } return s, nil } type iflags struct { name [IFNAMSIZ]byte flags uint16 } // Deprecated: Use golang.org/x/net/bpf instead. func SetLsfPromisc(name string, m bool) error { s, e := Socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC, 0) if e != nil { return e }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 19 16:27:36 UTC 2022 - 2.1K bytes - Viewed (0) -
src/syscall/bpf_bsd.go
} // Deprecated: Use golang.org/x/net/bpf instead. func FlushBpf(fd int) error { err := ioctlPtr(fd, BIOCFLUSH, nil) if err != nil { return err } return nil } type ivalue struct { name [IFNAMSIZ]byte value int16 } // Deprecated: Use golang.org/x/net/bpf instead. func BpfInterface(fd int, name string) (string, error) { var iv ivalue err := ioctlPtr(fd, BIOCGETIF, unsafe.Pointer(&iv)) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 07 10:34:48 UTC 2023 - 4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/plan9/mkerrors.sh
$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|ICMP6|TCP|EVFILT|NOTE|EV|SHUT|PROT|MAP|PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ || $2 == "ICMPV6_FILTER" || $2 == "SOMAXCONN" || $2 == "NAME_MAX" || $2 == "IFNAMSIZ" || $2 ~ /^CTL_(MAXNAME|NET|QUERY)$/ || $2 ~ /^SYSCTL_VERS/ || $2 ~ /^(MS|MNT)_/ || $2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ || $2 ~ /^(O|F|FD|NAME|S|PTRACE|PT)_/ || $2 ~ /^LINUX_REBOOT_CMD_/ ||
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 00:11:50 UTC 2022 - 5.9K bytes - Viewed (2)