]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/link_iptnl.c
iptnl/ip6tnl: Unify local/remote endpoint and 6rd address parsing
authorSerhey Popovych <serhe.popovych@gmail.com>
Mon, 12 Feb 2018 20:17:59 +0000 (22:17 +0200)
committerDavid Ahern <dsahern@gmail.com>
Wed, 14 Feb 2018 17:01:07 +0000 (09:01 -0800)
commit7bda9fd37ab1f16c29e8c486be99ca4568982246
tree38359822cfaa045bfdc7d4a89f0b156234fd2358
parenta066cc6623e1e93fec38f10299d4cad4526471b2
iptnl/ip6tnl: Unify local/remote endpoint and 6rd address parsing

We are going to merge link_iptnl.c and link_ip6tnl.c and this is final
step to make their diffs clear and show what needs to be changed during
merge.

Note that it is safe to omit endpoint address(es) from netlink create
request as kernel is aware of such case and will use zero for that
endpoint(s).

Make sure we initialize ip6rdprefix and ip6rdrelayprefix bitlen in
link_iptnl.c only when configuring existing tunnel: if kernel does not
submit prefixlen in corresponding attributes preceeding get_addr_rta()
will set bitlen to -1 which is incorrect value.

Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/link_ip6tnl.c
ip/link_iptnl.c