]> git.proxmox.com Git - mirror_iproute2.git/commit
link_iptnl: Kill code duplication
authorSerhey Popovych <serhe.popovych@gmail.com>
Tue, 2 Jan 2018 21:27:57 +0000 (23:27 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Sat, 6 Jan 2018 00:35:47 +0000 (16:35 -0800)
commit68a7f5ed47257eb5291f41433404313cc6813ae9
treee56dca5aff2d2b366b4175c7f6e2d9e4890aedf7
parentcfd6ccbfd0311d01a29b490c472ad79b6ad8036b
link_iptnl: Kill code duplication

Both sit and ipip "mode" parameter handling nearly the same.
Except for sit we have "ip6ip" mode: check it only when
configuring sit.

Note that there is no need strcmp(lu->id, "ipip"): if it is
not sit it is "ipip" because we have only these two link util
defined in module.

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