mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Merge commit '5121101136cb80151a9361c63dc4822afeb44eef' into thread-next
This commit is contained in:
@@ -581,7 +581,6 @@ static inline ip_addr rta_get_ipa(struct rtattr *a)
|
||||
return ipa_from_ip6(rta_get_ip6(a));
|
||||
}
|
||||
|
||||
#ifdef HAVE_MPLS_KERNEL
|
||||
static inline ip_addr rta_get_via(struct rtattr *a)
|
||||
{
|
||||
struct rtvia *v = RTA_DATA(a);
|
||||
@@ -592,6 +591,7 @@ static inline ip_addr rta_get_via(struct rtattr *a)
|
||||
return IPA_NONE;
|
||||
}
|
||||
|
||||
#ifdef HAVE_MPLS_KERNEL
|
||||
static u32 rta_mpls_stack[MPLS_MAX_LABEL_STACK];
|
||||
static inline int rta_get_mpls(struct rtattr *a, u32 *stack)
|
||||
{
|
||||
@@ -872,10 +872,8 @@ nl_parse_multipath(struct nl_parse_state *s, struct krt_proto *p, const net_addr
|
||||
if (a[RTA_FLOW])
|
||||
s->rta_flow = rta_get_u32(a[RTA_FLOW]);
|
||||
|
||||
#ifdef HAVE_MPLS_KERNEL
|
||||
if (a[RTA_VIA])
|
||||
rv->gw = rta_get_via(a[RTA_VIA]);
|
||||
#endif
|
||||
|
||||
if (nh->rtnh_flags & RTNH_F_ONLINK)
|
||||
rv->flags |= RNF_ONLINK;
|
||||
@@ -1762,10 +1760,8 @@ nl_parse_route(struct nl_parse_state *s, struct nlmsghdr *h)
|
||||
if (a[RTA_GATEWAY])
|
||||
nhad.nh.gw = rta_get_ipa(a[RTA_GATEWAY]);
|
||||
|
||||
#ifdef HAVE_MPLS_KERNEL
|
||||
if (a[RTA_VIA])
|
||||
nhad.nh.gw = rta_get_via(a[RTA_VIA]);
|
||||
#endif
|
||||
|
||||
if (i->rtm_flags & RTNH_F_ONLINK)
|
||||
nhad.nh.flags |= RNF_ONLINK;
|
||||
|
Reference in New Issue
Block a user