diff options
author | Xin Long <lucien.xin@gmail.com> | 2020-07-06 14:01:36 +0200 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2020-07-09 12:55:37 +0200 |
commit | d5a7a5057387d79b91a6e2fd78a76ccd53f91e6c (patch) | |
tree | 8efa24b70305b5b58156875c3bc8882b5b60d32c /net/ipv4/ipcomp.c | |
parent | ip6_vti: support IP6IP tunnel processing (diff) | |
download | linux-d5a7a5057387d79b91a6e2fd78a76ccd53f91e6c.tar.xz linux-d5a7a5057387d79b91a6e2fd78a76ccd53f91e6c.zip |
ipcomp: assign if_id to child tunnel from parent tunnel
The child tunnel if_id will be used for xfrm interface's lookup
when processing the IP(6)IP(6) packets in the next patches.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/ipv4/ipcomp.c')
-rw-r--r-- | net/ipv4/ipcomp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/ipcomp.c b/net/ipv4/ipcomp.c index 59bfa3825810..b42683212c65 100644 --- a/net/ipv4/ipcomp.c +++ b/net/ipv4/ipcomp.c @@ -72,6 +72,7 @@ static struct xfrm_state *ipcomp_tunnel_create(struct xfrm_state *x) t->props.flags = x->props.flags; t->props.extra_flags = x->props.extra_flags; memcpy(&t->mark, &x->mark, sizeof(t->mark)); + t->if_id = x->if_id; if (xfrm_init_state(t)) goto error; |