* [PATCH] ipv4: Export rtm_ipv4_policy.
@ 2017-07-04 14:18 David Miller
2017-07-04 23:21 ` Roopa Prabhu
0 siblings, 1 reply; 2+ messages in thread
From: David Miller @ 2017-07-04 14:18 UTC (permalink / raw)
To: netdev; +Cc: roopa
The MPLS code now needs it.
Fixes: 397fc9e5cefe ("mpls: route get support")
Signed-off-by: David S. Miller <davem@davemloft.net>
---
net/ipv4/fib_frontend.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
index 4e678fa..1b5860f 100644
--- a/net/ipv4/fib_frontend.c
+++ b/net/ipv4/fib_frontend.c
@@ -626,6 +626,7 @@ const struct nla_policy rtm_ipv4_policy[RTA_MAX + 1] = {
[RTA_UID] = { .type = NLA_U32 },
[RTA_MARK] = { .type = NLA_U32 },
};
+EXPORT_SYMBOL_GPL(rtm_ipv4_policy);
static int rtm_to_fib_config(struct net *net, struct sk_buff *skb,
struct nlmsghdr *nlh, struct fib_config *cfg,
--
2.9.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ipv4: Export rtm_ipv4_policy.
2017-07-04 14:18 [PATCH] ipv4: Export rtm_ipv4_policy David Miller
@ 2017-07-04 23:21 ` Roopa Prabhu
0 siblings, 0 replies; 2+ messages in thread
From: Roopa Prabhu @ 2017-07-04 23:21 UTC (permalink / raw)
To: David Miller; +Cc: netdev
On Tue, Jul 4, 2017 at 7:18 AM, David Miller <davem@davemloft.net> wrote:
>
> The MPLS code now needs it.
>
> Fixes: 397fc9e5cefe ("mpls: route get support")
> Signed-off-by: David S. Miller <davem@davemloft.net>
> ---
Sorry david. Just saw this. It was a cut-copy-paste error.
It should be the below. I can also submit a patch. Thanks.
diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c
index 4b6ff85..9a28c3f 100644
--- a/net/mpls/af_mpls.c
+++ b/net/mpls/af_mpls.c
@@ -2130,7 +2130,7 @@ static int mpls_getroute(struct sk_buff *in_skb,
struct nlmsghdr *in_nlh,
u8 n_labels;
err = nlmsg_parse(in_nlh, sizeof(*rtm), tb, RTA_MAX,
- rtm_ipv4_policy, extack);
+ rtm_mpls_policy, extack);
if (err < 0)
goto errout;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-04 23:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-04 14:18 [PATCH] ipv4: Export rtm_ipv4_policy David Miller
2017-07-04 23:21 ` Roopa Prabhu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.