Linx.Netlink.Rtnl.LinkInfo.Vlan (Linx v0.1.0)

Copy Markdown View Source

IFLA_INFO_DATA for a vlan link — the per-kind data inside IFLA_LINKINFO.

A vlan carries an IFLA_VLAN_ID (a u16). Egress/ingress QoS maps and the protocol selector are not modeled here yet.

Summary

Functions

Decodes a netlink message body into a t/0.

Encodes a t/0 into its netlink message body.

Types

t()

@type t() :: %Linx.Netlink.Rtnl.LinkInfo.Vlan{id: term()}

Functions

decode(body)

@spec decode(binary()) :: t()

Decodes a netlink message body into a t/0.

encode(message)

@spec encode(t()) :: binary()

Encodes a t/0 into its netlink message body.