Fix the following build failure raised since version 8.4 and
https://github.com/FRRouting/frr/commit/
d53dc9bd8164ba40242e2013d382fb01eb0b96ed:
zebra/netconf_netlink.c: In function 'netlink_netconf_change':
zebra/netconf_netlink.c:109:32: error: 'AF_MPLS' undeclared (first use in this function)
109 | if (ncm->ncm_family == AF_MPLS)
| ^~~~~~~
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
(cherry picked from commit
fa60f2c2fac9ff6d71e8bddab92f78a6d558035b)
* to do a good job of not sending data that is mixed/matched
* across families
*/
+#ifdef AF_MPLS
if (ncm->ncm_family == AF_MPLS)
afi = AFI_IP;
else
+#endif /* AF_MPLS */
afi = family2afi(ncm->ncm_family);
netlink_parse_rtattr(tb, NETCONFA_MAX, netconf_rta(ncm), len);