Packages

Linux kernel interface primitives for Elixir: netlink/rtnetlink/nf_tables, process & namespace lifecycle, PTY, cgroup v2, mounts, user namespaces, capabilities, seccomp, and sysctl.

Current section

Files

Jump to
linx lib linx netlink rtnl linkinfo vlan.ex
Raw

lib/linx/netlink/rtnl/linkinfo/vlan.ex

defmodule Linx.Netlink.Rtnl.LinkInfo.Vlan do
@moduledoc """
`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.
"""
use Linx.Netlink.Codec
codec do
# IFLA_VLAN_ID — the 802.1Q VLAN tag.
attr(1, :id, :u16)
end
end