mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 19:02:58 +00:00
zebra: Get mpls building across multiple platforms.
The build system for mpls is a bit convoluted. We need a way to handle builds across multiple platforms. This, I believe addresses this issue. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
aa1ce2dc70
commit
95f40dbe21
@ -367,11 +367,11 @@ dnl ----------
|
|||||||
AC_MSG_CHECKING(whether this OS has MPLS stack)
|
AC_MSG_CHECKING(whether this OS has MPLS stack)
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*-linux*)
|
*-linux*)
|
||||||
MPLS_METHOD="zebra_mpls_netlink.o"
|
MPLS_METHOD="zebra_mpls_netlink.o zebra_mpls.o"
|
||||||
AC_MSG_RESULT(Linux MPLS)
|
AC_MSG_RESULT(Linux MPLS)
|
||||||
;;
|
;;
|
||||||
*-openbsd*)
|
*-openbsd*)
|
||||||
MPLS_METHOD="zebra_mpls_openbsd.o"
|
MPLS_METHOD="zebra_mpls_openbsd.o zebra_mpls.o"
|
||||||
AC_MSG_RESULT(OpenBSD MPLS)
|
AC_MSG_RESULT(OpenBSD MPLS)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -31,7 +31,7 @@ zebra_SOURCES = \
|
|||||||
redistribute.c debug.c rtadv.c zebra_vty.c \
|
redistribute.c debug.c rtadv.c zebra_vty.c \
|
||||||
irdp_main.c irdp_interface.c irdp_packet.c router-id.c \
|
irdp_main.c irdp_interface.c irdp_packet.c router-id.c \
|
||||||
zebra_ptm.c zebra_rnh.c zebra_ptm_redistribute.c \
|
zebra_ptm.c zebra_rnh.c zebra_ptm_redistribute.c \
|
||||||
zebra_ns.c zebra_vrf.c zebra_static.c zebra_mpls.c zebra_mpls_vty.c \
|
zebra_ns.c zebra_vrf.c zebra_static.c zebra_mpls_vty.c \
|
||||||
zebra_mroute.c \
|
zebra_mroute.c \
|
||||||
label_manager.c \
|
label_manager.c \
|
||||||
# end
|
# end
|
||||||
|
@ -195,3 +195,41 @@ zebra_mpls_cleanup_fecs_for_client (struct zebra_vrf *zvrf, struct zserv *client
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void mpls_ldp_lsp_uninstall_all (struct hash_backet *backet, void *ctxt)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
void mpls_ldp_ftn_uninstall_all (struct zebra_vrf *zvrf, int afi)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
void zebra_mpls_init (void)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
int mpls_lsp_install (struct zebra_vrf *zvrf, enum lsp_types_t type,
|
||||||
|
mpls_label_t in_label, mpls_label_t out_label,
|
||||||
|
enum nexthop_types_t gtype, union g_addr *gate,
|
||||||
|
ifindex_t ifindex)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int mpls_lsp_uninstall (struct zebra_vrf *zvrf, enum lsp_types_t type,
|
||||||
|
mpls_label_t in_label, enum nexthop_types_t gtype,
|
||||||
|
union g_addr *gate, ifindex_t ifindex)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int mpls_ftn_update (int add, struct zebra_vrf *zvrf, enum lsp_types_t type,
|
||||||
|
struct prefix *prefix, enum nexthop_types_t gtype,
|
||||||
|
union g_addr *gate, ifindex_t ifindex, u_int8_t distance,
|
||||||
|
mpls_label_t out_label)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user