]> git.ipfire.org Git - thirdparty/iproute2.git/commit
lwtunnel: Pass encap and encap_type attributes to lwt_parse_encap
authorDavid Ahern <dsahern@gmail.com>
Fri, 7 Jun 2019 22:38:08 +0000 (15:38 -0700)
committerDavid Ahern <dsahern@gmail.com>
Tue, 11 Jun 2019 17:30:46 +0000 (10:30 -0700)
commit7392401027f0abd3480bab2f81d371aead599f2e
tree59a0e14c22f47820cb4456cc59f2293e365e3dd7
parent2360b8cb21cca737de191aaa6751bf8ed3bbc0f6
lwtunnel: Pass encap and encap_type attributes to lwt_parse_encap

lwt_parse_encap currently assumes the encap attribute is RTA_ENCAP
and the type is RTA_ENCAP_TYPE. Change lwt_parse_encap to take these
as input arguments for reuse by nexthop code which has the attributes
as NHA_ENCAP and NHA_ENCAP_TYPE.

Signed-off-by: David Ahern <dsahern@gmail.com>
ip/ip_common.h
ip/iproute.c
ip/iproute_lwtunnel.c