diff options
author | David Ahern <dsahern@gmail.com> | 2019-05-24 23:43:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-29 06:37:30 +0200 |
commit | b513bd035f4044aa2667fb01418918523a049b9c (patch) | |
tree | d27fafed8b200920244132105257d9970b453865 /include/net/nexthop.h | |
parent | nexthop: Add support for IPv6 gateways (diff) | |
download | linux-b513bd035f4044aa2667fb01418918523a049b9c.tar.xz linux-b513bd035f4044aa2667fb01418918523a049b9c.zip |
nexthop: Add support for lwt encaps
Add support for NHA_ENCAP and NHA_ENCAP_TYPE. Leverages the existing code
for lwtunnel within fib_nh_common, so the only change needed is handling
the attributes in the nexthop code.
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/nexthop.h')
-rw-r--r-- | include/net/nexthop.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/nexthop.h b/include/net/nexthop.h index d188f16c0c4f..7cde03337e14 100644 --- a/include/net/nexthop.h +++ b/include/net/nexthop.h @@ -35,6 +35,9 @@ struct nh_config { struct in6_addr ipv6; } gw; + struct nlattr *nh_encap; + u16 nh_encap_type; + u32 nlflags; struct nl_info nlinfo; }; |