[][src]Module rsys::linux::net

Structs

IfaceStat

Statistics of network interface device read from /proc/net/dev

Interface

Represents a network interface on host os

Interfaces

A wrapper around multiple interface devices parsed from /proc/net/dev

Functions

default_iface

Returns a default interface. If there are no interfaces in /proc/net/arp returns an empty string.

ifaces

Returns network interfaces on host os

interfaces

Returns a list of interfaces names.

ipv4

Returns an IPv4 address of a given iface. If the interface is not found in /proc/net/arp returns "127.0.0.1"

ipv6

Returns an IPv6 address of a given iface.

mac

Returns a mac address of given iface