Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for interfaceTable (0.19 sec)

  1. 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)
  2. src/net/interface_bsd.go

    package net
    
    import (
    	"syscall"
    
    	"golang.org/x/net/route"
    )
    
    // 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) {
    	msgs, err := interfaceMessages(ifindex)
    	if err != nil {
    		return nil, err
    	}
    	n := len(msgs)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 27 05:42:03 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  3. 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
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. src/net/interface_solaris.go

    // license that can be found in the LICENSE file.
    
    package net
    
    import (
    	"syscall"
    
    	"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
    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/net/interface.go

    	}
    	return ifat, err
    }
    
    // Interfaces returns a list of the system's network interfaces.
    func Interfaces() ([]Interface, error) {
    	ift, err := interfaceTable(0)
    	if err != nil {
    		return nil, &OpError{Op: "route", Net: "ip+net", Source: nil, Addr: nil, Err: err}
    	}
    	if len(ift) != 0 {
    		zoneCache.update(ift, false)
    	}
    	return ift, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. src/net/interface_aix.go

    	if err != nil {
    		return nil, err
    	}
    	return tab[:needed], nil
    }
    
    // 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) {
    	tab, err := getIfList()
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 27 05:42:03 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  7. src/net/interface_linux.go

    // license that can be found in the LICENSE file.
    
    package net
    
    import (
    	"os"
    	"syscall"
    	"unsafe"
    )
    
    // 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) {
    	tab, err := syscall.NetlinkRIB(syscall.RTM_GETLINK, syscall.AF_UNSPEC)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 27 05:42:03 UTC 2022
    - 7K bytes
    - Viewed (0)
  8. src/net/interface_windows.go

    		aas = append(aas, aa)
    	}
    	return aas, nil
    }
    
    // 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) {
    	aas, err := adapterAddresses()
    	if err != nil {
    		return nil, err
    	}
    	var ift []Interface
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 10:25:02 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top