ifaceutil

package
v0.0.0-...-5c98b36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2022 License: MulanPSL-2.0 Imports: 3 Imported by: 0

README

ifaceutil 网络接口相关函数

  • GetIfaceByIP 根据 IP 地址获取本机的指定的接口
  • GetIfaceByMAC 根据 MAC 地址获取本机的指定的接口

Documentation

Overview

Package ifaceutil 网络接口的函数

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIfaceByIP

func GetIfaceByIP(ip net.IP) (*net.Interface, error)

GetIfaceByIP 根据 IP 地址获取本机的指定的接口

func GetIfaceByMAC

func GetIfaceByMAC(mac net.HardwareAddr) (*net.Interface, error)

GetIfaceByMAC 根据 MAC 地址获取本机的指定的接口

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL