Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 279 for Ifindex (0.13 sec)

  1. src/net/interface_windows.go

    	aas, err := adapterAddresses()
    	if err != nil {
    		return nil, err
    	}
    	var ifat []Addr
    	for _, aa := range aas {
    		index := aa.IfIndex
    		if index == 0 { // ipv6IfIndex is a substitute for ifIndex
    			index = aa.Ipv6IfIndex
    		}
    		if ifi == nil || ifi.Index == int(index) {
    			for puni := aa.FirstUnicastAddress; puni != nil; puni = puni.Next {
    				sa, err := puni.Address.Sockaddr.Sockaddr()
    				if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 10:25:02 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. src/net/interface_aix.go

    		ifm := (*syscall.IfMsgHdr)(unsafe.Pointer(&tab[0]))
    		if ifm.Msglen == 0 {
    			break
    		}
    		if ifm.Type == syscall.RTM_IFINFO {
    			if ifindex == 0 || ifindex == int(ifm.Index) {
    				sdl := (*rawSockaddrDatalink)(unsafe.Pointer(&tab[syscall.SizeofIfMsghdr]))
    
    				ifi := &Interface{Index: int(ifm.Index), Flags: linkFlags(ifm.Flags)}
    				ifi.Name = string(sdl.Data[:sdl.Nlen])
    				ifi.HardwareAddr = sdl.Data[sdl.Nlen : sdl.Nlen+sdl.Alen]
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 27 05:42:03 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  3. src/net/interface_bsd.go

    // interface.
    func interfaceAddrTable(ifi *Interface) ([]Addr, error) {
    	index := 0
    	if ifi != nil {
    		index = ifi.Index
    	}
    	msgs, err := interfaceMessages(index)
    	if err != nil {
    		return nil, err
    	}
    	ifat := make([]Addr, 0, len(msgs))
    	for _, m := range msgs {
    		switch m := m.(type) {
    		case *route.InterfaceAddrMessage:
    			if index != 0 && index != m.Index {
    				continue
    			}
    			var mask IPMask
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 27 05:42:03 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  4. src/net/interface_solaris.go

    	"golang.org/x/net/lif"
    )
    
    // If the ifindex is zero, interfaceTable returns mappings of all
    // network interfaces. Otherwise it returns a mapping of a specific
    // interface.
    func interfaceTable(ifindex int) ([]Interface, error) {
    	lls, err := lif.Links(syscall.AF_UNSPEC, "")
    	if err != nil {
    		return nil, err
    	}
    	var ift []Interface
    	for _, ll := range lls {
    		if ifindex != 0 && ifindex != ll.Index {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 27 05:42:03 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  5. src/syscall/ztypes_linux_mips64le.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)
  6. src/net/interface_plan9.go

    package net
    
    import (
    	"errors"
    	"internal/itoa"
    	"internal/stringslite"
    	"os"
    )
    
    // If the ifindex is zero, interfaceTable returns mappings of all
    // network interfaces. Otherwise it returns a mapping of a specific
    // interface.
    func interfaceTable(ifindex int) ([]Interface, error) {
    	if ifindex == 0 {
    		n, err := interfaceCount()
    		if err != nil {
    			return nil, err
    		}
    		ifcs := make([]Interface, n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. src/net/interface_stub.go

    // license that can be found in the LICENSE file.
    
    //go:build js || wasip1
    
    package net
    
    // If the ifindex is zero, interfaceTable returns mappings of all
    // network interfaces. Otherwise it returns a mapping of a specific
    // interface.
    func interfaceTable(ifindex int) ([]Interface, error) {
    	return nil, nil
    }
    
    // If the ifi is nil, interfaceAddrTable returns addresses for all
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 814 bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top