summaryrefslogtreecommitdiffstats
path: root/net/ipv6/seg6_local.c
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2020-03-27 23:00:21 +0100
committerDavid S. Miller <davem@davemloft.net>2020-03-30 07:30:57 +0200
commitfaee676944dab731c9b2b91cf86c769d291a2237 (patch)
tree46d0cda33e921c85fb4fc192695e5527c46f3415 /net/ipv6/seg6_local.c
parentnet: ipv6: add support for rpl sr exthdr (diff)
downloadlinux-faee676944dab731c9b2b91cf86c769d291a2237.tar.xz
linux-faee676944dab731c9b2b91cf86c769d291a2237.zip
net: add net available in build_state
The build_state callback of lwtunnel doesn't contain the net namespace structure yet. This patch will add it so we can check on specific address configuration at creation time of rpl source routes. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/seg6_local.c')
-rw-r--r--net/ipv6/seg6_local.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv6/seg6_local.c b/net/ipv6/seg6_local.c
index 8165802d8e05..52493423f329 100644
--- a/net/ipv6/seg6_local.c
+++ b/net/ipv6/seg6_local.c
@@ -970,8 +970,9 @@ static int parse_nla_action(struct nlattr **attrs, struct seg6_local_lwt *slwt)
return 0;
}
-static int seg6_local_build_state(struct nlattr *nla, unsigned int family,
- const void *cfg, struct lwtunnel_state **ts,
+static int seg6_local_build_state(struct net *net, struct nlattr *nla,
+ unsigned int family, const void *cfg,
+ struct lwtunnel_state **ts,
struct netlink_ext_ack *extack)
{
struct nlattr *tb[SEG6_LOCAL_MAX + 1];