Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for Lifru (0.12 sec)

  1. src/vendor/golang.org/x/net/lif/link.go

    		ll.Index = int(nativeEndian.Uint32(lifr.Lifru[:4]))
    	}
    	ioc = int64(syscall.SIOCGLIFFLAGS)
    	if err := ioctl(s, uintptr(ioc), unsafe.Pointer(&lifr)); err == nil {
    		ll.Flags = int(nativeEndian.Uint64(lifr.Lifru[:8]))
    	}
    	ioc = int64(syscall.SIOCGLIFMTU)
    	if err := ioctl(s, uintptr(ioc), unsafe.Pointer(&lifr)); err == nil {
    		ll.MTU = int(nativeEndian.Uint32(lifr.Lifru[:4]))
    	}
    	switch ll.Type {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/net/lif/address.go

    			}
    			sa := (*sockaddrStorage)(unsafe.Pointer(&lifr.Lifru[0]))
    			l := int(nativeEndian.Uint32(lifr.Lifru1[:4]))
    			if l == 0 {
    				continue
    			}
    			switch sa.Family {
    			case syscall.AF_INET:
    				a := &Inet4Addr{PrefixLen: l}
    				copy(a.IP[:], lifr.Lifru[4:8])
    				as = append(as, a)
    			case syscall.AF_INET6:
    				a := &Inet6Addr{PrefixLen: l, ZoneID: int(nativeEndian.Uint32(lifr.Lifru[24:28]))}
    				copy(a.IP[:], lifr.Lifru[8:24])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/net/lif/zsys_solaris_amd64.go

    )
    
    type lifnum struct {
    	Family    uint16
    	Pad_cgo_0 [2]byte
    	Flags     int32
    	Count     int32
    }
    
    type lifreq struct {
    	Name   [32]int8
    	Lifru1 [4]byte
    	Type   uint32
    	Lifru  [336]byte
    }
    
    type lifconf struct {
    	Family    uint16
    	Pad_cgo_0 [2]byte
    	Flags     int32
    	Len       int32
    	Pad_cgo_1 [4]byte
    	Lifcu     [8]byte
    }
    
    type lifIfinfoReq struct {
    	Maxhops      uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 05 19:54:32 UTC 2022
    - 981 bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go

    	Buf    *int8
    }
    
    type Strioctl struct {
    	Cmd    int32
    	Timout int32
    	Len    int32
    	Dp     *int8
    }
    
    type Lifreq struct {
    	Name   [32]int8
    	Lifru1 [4]byte
    	Type   uint32
    	Lifru  [336]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/syscall_solaris.go

    func (l *Lifreq) SetLifruInt(d int) {
    	*(*int)(unsafe.Pointer(&l.Lifru[0])) = d
    }
    
    func (l *Lifreq) GetLifruInt() int {
    	return *(*int)(unsafe.Pointer(&l.Lifru[0]))
    }
    
    func (l *Lifreq) SetLifruUint(d uint) {
    	*(*uint)(unsafe.Pointer(&l.Lifru[0])) = d
    }
    
    func (l *Lifreq) GetLifruUint() uint {
    	return *(*uint)(unsafe.Pointer(&l.Lifru[0]))
    }
    
    func IoctlLifreq(fd int, req int, l *Lifreq) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 31.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/ifreq_linux.go

    	*(*uint16)(unsafe.Pointer(&ifr.raw.Ifru[:2][0])) = v
    }
    
    // Uint32 returns the Ifreq union data as a C int/Go uint32 value.
    func (ifr *Ifreq) Uint32() uint32 {
    	return *(*uint32)(unsafe.Pointer(&ifr.raw.Ifru[:4][0]))
    }
    
    // SetUint32 sets a C int/Go uint32 value as the Ifreq's union data.
    func (ifr *Ifreq) SetUint32(v uint32) {
    	ifr.clear()
    	*(*uint32)(unsafe.Pointer(&ifr.raw.Ifru[:4][0])) = v
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  7. src/net/interface_aix.go

    				ifr := &ifreq{}
    				copy(ifr.Name[:], ifi.Name)
    				err = unix.Ioctl(sock, syscall.SIOCGIFMTU, unsafe.Pointer(ifr))
    				if err != nil {
    					return nil, err
    				}
    				ifi.MTU = int(ifr.Ifru[0])<<24 | int(ifr.Ifru[1])<<16 | int(ifr.Ifru[2])<<8 | int(ifr.Ifru[3])
    
    				ift = append(ift, *ifi)
    				if ifindex == int(ifm.Index) {
    					break
    				}
    			}
    		}
    		tab = tab[ifm.Msglen:]
    	}
    
    	return ift, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 27 05:42:03 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go

    	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 (
    	SizeofSockFprog = 0x10
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go

    	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 (
    	SizeofSockFprog = 0x8
    )
    
    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_ppc64le.go

    	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 (
    	SizeofSockFprog = 0x10
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.3K bytes
    - Viewed (0)
Back to top