Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for Ifreq (3.91 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/ifreq_linux.go

    package unix
    
    import (
    	"unsafe"
    )
    
    // Helpers for dealing with ifreq since it contains a union and thus requires a
    // lot of unsafe.Pointer casts to use properly.
    
    // An Ifreq is a type-safe wrapper around the raw ifreq struct. An Ifreq
    // contains an interface name and a union of arbitrary data which can be
    // accessed using the Ifreq's methods. To create an Ifreq, use the NewIfreq
    // function.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/ioctl_linux.go

    	return ByteSliceToString(value[:]), err
    }
    
    // IoctlIfreq performs an ioctl using an Ifreq structure for input and/or
    // output. See the netdevice(7) man page for details.
    func IoctlIfreq(fd int, req uint, value *Ifreq) error {
    	// It is possible we will add more fields to *Ifreq itself later to prevent
    	// misuse, so pass the raw *ifreq directly.
    	return ioctlPtr(fd, req, unsafe.Pointer(&value.raw))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall_darwin.go

    	return &ifreq, err
    }
    
    // IoctlSetIfreqMTU performs the SIOCSIFMTU ioctl operation on fd to set the MTU
    // of the network device specified by ifreq.Name.
    func IoctlSetIfreqMTU(fd int, ifreq *IfreqMTU) error {
    	return ioctlPtr(fd, SIOCSIFMTU, unsafe.Pointer(ifreq))
    }
    
    //sys	sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS_SYSCTL
    
    func Uname(uname *Utsname) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 20.7K bytes
    - Viewed (0)
  4. src/net/interface_aix.go

    	"syscall"
    	"unsafe"
    )
    
    type rawSockaddrDatalink struct {
    	Len    uint8
    	Family uint8
    	Index  uint16
    	Type   uint8
    	Nlen   uint8
    	Alen   uint8
    	Slen   uint8
    	Data   [120]byte
    }
    
    type ifreq struct {
    	Name [16]uint8
    	Ifru [16]byte
    }
    
    const _KINFO_RT_IFLIST = (0x1 << 8) | 3 | (1 << 30)
    
    const _RTAX_NETMASK = 2
    const _RTAX_IFA = 5
    const _RTAX_MAX = 8
    
    func getIfList() ([]byte, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 27 05:42:03 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go

    	Iovlen     uint64
    	Control    *byte
    	Controllen uint64
    	Flags      int32
    	_          [4]byte
    }
    
    type Cmsghdr struct {
    	Len   uint64
    	Level int32
    	Type  int32
    }
    
    type ifreq struct {
    	Ifrn [16]byte
    	Ifru [24]byte
    }
    
    const (
    	SizeofSockaddrNFCLLCP = 0x60
    	SizeofIovec           = 0x10
    	SizeofMsghdr          = 0x38
    	SizeofCmsghdr         = 0x10
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go

    	Iov        *Iovec
    	Iovlen     uint32
    	Control    *byte
    	Controllen uint32
    	Flags      int32
    }
    
    type Cmsghdr struct {
    	Len   uint32
    	Level int32
    	Type  int32
    }
    
    type ifreq struct {
    	Ifrn [16]byte
    	Ifru [16]byte
    }
    
    const (
    	SizeofSockaddrNFCLLCP = 0x58
    	SizeofIovec           = 0x8
    	SizeofMsghdr          = 0x1c
    	SizeofCmsghdr         = 0xc
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go

    	Iovlen     uint64
    	Control    *byte
    	Controllen uint64
    	Flags      int32
    	_          [4]byte
    }
    
    type Cmsghdr struct {
    	Len   uint64
    	Level int32
    	Type  int32
    }
    
    type ifreq struct {
    	Ifrn [16]byte
    	Ifru [24]byte
    }
    
    const (
    	SizeofSockaddrNFCLLCP = 0x60
    	SizeofIovec           = 0x10
    	SizeofMsghdr          = 0x38
    	SizeofCmsghdr         = 0x10
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go

    	Iov        *Iovec
    	Iovlen     uint32
    	Control    *byte
    	Controllen uint32
    	Flags      int32
    }
    
    type Cmsghdr struct {
    	Len   uint32
    	Level int32
    	Type  int32
    }
    
    type ifreq struct {
    	Ifrn [16]byte
    	Ifru [16]byte
    }
    
    const (
    	SizeofSockaddrNFCLLCP = 0x58
    	SizeofIovec           = 0x8
    	SizeofMsghdr          = 0x1c
    	SizeofCmsghdr         = 0xc
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go

    	Iovlen     uint64
    	Control    *byte
    	Controllen uint64
    	Flags      int32
    	_          [4]byte
    }
    
    type Cmsghdr struct {
    	Len   uint64
    	Level int32
    	Type  int32
    }
    
    type ifreq struct {
    	Ifrn [16]byte
    	Ifru [24]byte
    }
    
    const (
    	SizeofSockaddrNFCLLCP = 0x60
    	SizeofIovec           = 0x10
    	SizeofMsghdr          = 0x38
    	SizeofCmsghdr         = 0x10
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go

    	Iovlen     uint64
    	Control    *byte
    	Controllen uint64
    	Flags      int32
    	_          [4]byte
    }
    
    type Cmsghdr struct {
    	Len   uint64
    	Level int32
    	Type  int32
    }
    
    type ifreq struct {
    	Ifrn [16]byte
    	Ifru [24]byte
    }
    
    const (
    	SizeofSockaddrNFCLLCP = 0x60
    	SizeofIovec           = 0x10
    	SizeofMsghdr          = 0x38
    	SizeofCmsghdr         = 0x10
    )
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top