]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/link_ip6tnl.c
Show 'external' link mode in output
authorPhil Dibowitz <phil@ipom.com>
Tue, 12 Dec 2017 21:54:06 +0000 (13:54 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 14 Dec 2017 02:15:51 +0000 (18:15 -0800)
commit7b17832445259e942c1356de03924fc71d4b69b8
tree0117cf915a453f54390f7ab5c113d907cf2545a2
parent88b428f03f7c1fa64331105f54d42806cece77be
Show 'external' link mode in output

Recently `external` support was added to the tunnel drivers, but there is no way
to introspect this from userspace. This adds support for that.

Now `ip -details link` shows it:

```
7: tunl60@NONE: <NOARP> mtu 1452 qdisc noop state DOWN mode DEFAULT group
default qlen 1
    link/tunnel6 :: brd :: promiscuity 0
    ip6tnl external any remote :: local :: encaplimit 0 hoplimit 0 tclass 0x00 flowlabel 0x00000 (flowinfo 0x00000000) addrgenmode eui64 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535
```

Signed-off-by: Phil Dibowitz <phil@ipom.com>
ip/link_ip6tnl.c
ip/link_iptnl.c