iface

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEthernetInterface

func IsEthernetInterface(iface *net.Interface) bool

IsEthernetInterface determines if an interface requires Ethernet (Layer 2) framing. Returns false for tunnel/VPN interfaces that use raw IP packets.

This function uses multiple heuristics: 1. Point-to-point interfaces (IFF_POINTOPOINT flag) don't use Ethernet framing 2. Interfaces without hardware addresses are typically not Ethernet

Types

This section is empty.

Jump to

Keyboard shortcuts

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