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

Copy Markdown View Source

IFLA_INFO_DATA for an ipvlan link — the per-kind data inside IFLA_LINKINFO.

An ipvlan carries a single IFLA_IPVLAN_MODE attribute (a u16 — unlike macvlan's u32 mode); modes are L2, L3 or L3S (include/uapi/linux/if_link.h).

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.Ipvlan{mode: 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.