diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2016-09-22 04:59:57 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-23 15:31:25 +0200 |
commit | fe6c7157bf2babbc552dc45115da586bde1b92e7 (patch) | |
tree | 3d9792b6a1de0e8c621a4ea7aba1da8b367cf2a7 /zebra/zebra_mpls.h | |
parent | *: remove dead code (diff) | |
download | frr-fe6c7157bf2babbc552dc45115da586bde1b92e7.tar.xz frr-fe6c7157bf2babbc552dc45115da586bde1b92e7.zip |
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>
Diffstat (limited to 'zebra/zebra_mpls.h')
-rw-r--r-- | zebra/zebra_mpls.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/zebra/zebra_mpls.h b/zebra/zebra_mpls.h index becef524f..9f2468959 100644 --- a/zebra/zebra_mpls.h +++ b/zebra/zebra_mpls.h @@ -292,6 +292,12 @@ zebra_mpls_init_tables (struct zebra_vrf *zvrf); void zebra_mpls_init (void); +/* + * MPLS VTY. + */ +void +zebra_mpls_vty_init (void); + /* Inline functions. */ /* @@ -364,4 +370,7 @@ mpls_should_lsps_be_processed(struct zebra_vrf *zvrf) return ((zvrf->mpls_flags & MPLS_FLAG_SCHEDULE_LSPS) ? 1 : 0); } +/* Global variables. */ +extern int mpls_enabled; + #endif /*_ZEBRA_MPLS_H */ |