Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 353 for Ifindex (0.59 sec)

  1. src/syscall/lsf_linux.go

    func LsfSocket(ifindex, proto int) (int, error) {
    	var lsall SockaddrLinklayer
    	// This is missing SOCK_CLOEXEC, but adding the flag
    	// could break callers.
    	s, e := Socket(AF_PACKET, SOCK_RAW, proto)
    	if e != nil {
    		return 0, e
    	}
    	p := (*[2]byte)(unsafe.Pointer(&lsall.Protocol))
    	p[0] = byte(proto >> 8)
    	p[1] = byte(proto)
    	lsall.Ifindex = ifindex
    	e = Bind(s, &lsall)
    	if e != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 19 16:27:36 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  2. src/syscall/ztypes_linux_ppc64le.go

    }
    
    type Cmsghdr struct {
    	Len   uint64
    	Level int32
    	Type  int32
    }
    
    type Inet4Pktinfo struct {
    	Ifindex  int32
    	Spec_dst [4]byte /* in_addr */
    	Addr     [4]byte /* in_addr */
    }
    
    type Inet6Pktinfo struct {
    	Addr    [16]byte /* in6_addr */
    	Ifindex uint32
    }
    
    type IPv6MTUInfo struct {
    	Addr RawSockaddrInet6
    	Mtu  uint32
    }
    
    type ICMPv6Filter struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  3. src/syscall/ztypes_linux_mips.go

    }
    
    type Cmsghdr struct {
    	Len   uint32
    	Level int32
    	Type  int32
    }
    
    type Inet4Pktinfo struct {
    	Ifindex  int32
    	Spec_dst [4]byte /* in_addr */
    	Addr     [4]byte /* in_addr */
    }
    
    type Inet6Pktinfo struct {
    	Addr    [16]byte /* in6_addr */
    	Ifindex uint32
    }
    
    type IPv6MTUInfo struct {
    	Addr RawSockaddrInet6
    	Mtu  uint32
    }
    
    type ICMPv6Filter struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 10K bytes
    - Viewed (0)
  4. src/syscall/ztypes_linux_mipsle.go

    }
    
    type Cmsghdr struct {
    	Len   uint32
    	Level int32
    	Type  int32
    }
    
    type Inet4Pktinfo struct {
    	Ifindex  int32
    	Spec_dst [4]byte /* in_addr */
    	Addr     [4]byte /* in_addr */
    }
    
    type Inet6Pktinfo struct {
    	Addr    [16]byte /* in6_addr */
    	Ifindex uint32
    }
    
    type IPv6MTUInfo struct {
    	Addr RawSockaddrInet6
    	Mtu  uint32
    }
    
    type ICMPv6Filter struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 10K bytes
    - Viewed (0)
  5. src/net/interface_freebsd.go

    	if err != nil {
    		return nil, err
    	}
    	msgs, err := route.ParseRIB(syscall.NET_RT_IFMALIST, rib)
    	if err != nil {
    		return nil, err
    	}
    	ifmat := make([]Addr, 0, len(msgs))
    	for _, m := range msgs {
    		switch m := m.(type) {
    		case *route.InterfaceMulticastAddrMessage:
    			if ifi.Index != m.Index {
    				continue
    			}
    			var ip IP
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 02 16:05:55 UTC 2021
    - 1.3K bytes
    - Viewed (0)
  6. src/syscall/ztypes_linux_arm64.go

    }
    
    type Cmsghdr struct {
    	Len   uint64
    	Level int32
    	Type  int32
    }
    
    type Inet4Pktinfo struct {
    	Ifindex  int32
    	Spec_dst [4]byte /* in_addr */
    	Addr     [4]byte /* in_addr */
    }
    
    type Inet6Pktinfo struct {
    	Addr    [16]byte /* in6_addr */
    	Ifindex uint32
    }
    
    type IPv6MTUInfo struct {
    	Addr RawSockaddrInet6
    	Mtu  uint32
    }
    
    type ICMPv6Filter struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  7. src/syscall/ztypes_linux_386.go

    }
    
    type Cmsghdr struct {
    	Len   uint32
    	Level int32
    	Type  int32
    }
    
    type Inet4Pktinfo struct {
    	Ifindex  int32
    	Spec_dst [4]byte /* in_addr */
    	Addr     [4]byte /* in_addr */
    }
    
    type Inet6Pktinfo struct {
    	Addr    [16]byte /* in6_addr */
    	Ifindex uint32
    }
    
    type IPv6MTUInfo struct {
    	Addr RawSockaddrInet6
    	Mtu  uint32
    }
    
    type ICMPv6Filter struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  8. src/net/interface_linux.go

    		case syscall.RTM_NEWLINK:
    			ifim := (*syscall.IfInfomsg)(unsafe.Pointer(&m.Data[0]))
    			if ifindex == 0 || ifindex == int(ifim.Index) {
    				attrs, err := syscall.ParseNetlinkRouteAttr(&m)
    				if err != nil {
    					return nil, os.NewSyscallError("parsenetlinkrouteattr", err)
    				}
    				ift = append(ift, *newLink(ifim, attrs))
    				if ifindex == int(ifim.Index) {
    					break loop
    				}
    			}
    		}
    	}
    	return ift, nil
    }
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 27 05:42:03 UTC 2022
    - 7K bytes
    - Viewed (0)
  9. src/syscall/ztypes_linux_arm.go

    }
    
    type Cmsghdr struct {
    	Len   uint32
    	Level int32
    	Type  int32
    }
    
    type Inet4Pktinfo struct {
    	Ifindex  int32
    	Spec_dst [4]byte /* in_addr */
    	Addr     [4]byte /* in_addr */
    }
    
    type Inet6Pktinfo struct {
    	Addr    [16]byte /* in6_addr */
    	Ifindex uint32
    }
    
    type IPv6MTUInfo struct {
    	Addr RawSockaddrInet6
    	Mtu  uint32
    }
    
    type ICMPv6Filter struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  10. src/syscall/ztypes_linux_mips64.go

    }
    
    type Cmsghdr struct {
    	Len   uint64
    	Level int32
    	Type  int32
    }
    
    type Inet4Pktinfo struct {
    	Ifindex  int32
    	Spec_dst [4]byte /* in_addr */
    	Addr     [4]byte /* in_addr */
    }
    
    type Inet6Pktinfo struct {
    	Addr    [16]byte /* in6_addr */
    	Ifindex uint32
    }
    
    type IPv6MTUInfo struct {
    	Addr RawSockaddrInet6
    	Mtu  uint32
    }
    
    type ICMPv6Filter struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 10.1K bytes
    - Viewed (0)
Back to top