# `Linx.Netlink.Rtnl.LinkInfo.Veth`
[🔗](https://github.com/oshlabs/linx/blob/v0.2.0/lib/linx/netlink/rtnl/linkinfo/veth.ex#L1)

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

`veth` carries one attribute, `VETH_INFO_PEER`, whose payload is *itself*
an entire `RTM_*LINK` message (an `ifinfomsg` plus `IFLA_*` attributes)
describing the peer end of the pair. The codec captures that exactly by
pointing the attribute at `Linx.Netlink.Rtnl.Link` — a `%Link{}` is the
type of the peer.

# `t`

```elixir
@type t() :: %Linx.Netlink.Rtnl.LinkInfo.Veth{peer: term()}
```

# `decode`

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

Decodes a netlink message body into a `t:t/0`.

# `encode`

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

Encodes a `t:t/0` into its netlink message body.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
