From: Daniel Walton Date: Tue, 25 Apr 2017 21:53:28 +0000 (+0000) Subject: bgpd: Do not force nh_afi to be AFI_IP for 'ipv4 labeled-unicast' X-Git-Tag: reindent-master-before~213^2~2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=1d4b7d0e1ad1dfb2028774813b60a62ad18553c3;p=matthieu%2Ffrr.git bgpd: Do not force nh_afi to be AFI_IP for 'ipv4 labeled-unicast' Signed-off-by: Daniel Walton --- diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index 7a28da5780..6f4e797a94 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c @@ -2793,9 +2793,6 @@ bgp_packet_mpattr_start (struct stream *s, afi_t afi, safi_t safi, afi_t nh_afi, if (nh_afi == AFI_MAX) nh_afi = BGP_NEXTHOP_AFI_FROM_NHLEN(attr->extra->mp_nexthop_len); - if (safi == SAFI_LABELED_UNICAST) - nh_afi = AFI_IP; - /* Nexthop */ switch (nh_afi) {