]> git.proxmox.com Git - mirror_frr.git/commit - zebra/kernel_socket.c
zebra: check at startup if the kernel supports MPLS
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 22 Sep 2016 02:59:57 +0000 (23:59 -0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 23 Sep 2016 13:31:25 +0000 (09:31 -0400)
commitfe6c7157bf2babbc552dc45115da586bde1b92e7
tree3d9792b6a1de0e8c621a4ea7aba1da8b367cf2a7
parenta4b46f4c16bd4cb1f2c890c08ff541468d59d9b3
zebra: check at startup if the kernel supports MPLS

Replace all HAVE_MPLS #ifdef's by a run-time check if MPLS is supported
by the kernel or not. This way we don't need to create multiple packages
for each OS distribution.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
14 files changed:
configure.ac
lib/sockunion.h
zebra/kernel_socket.c
zebra/main.c
zebra/rt.h
zebra/rt_socket.c
zebra/zebra_mpls.c
zebra/zebra_mpls.h
zebra/zebra_mpls_netlink.c
zebra/zebra_mpls_null.c
zebra/zebra_mpls_openbsd.c
zebra/zebra_mpls_vty.c
zebra/zserv.c
zebra/zserv.h