diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2016-09-21 23:59:57 -0300 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-23 09:31:25 -0400 |
| commit | fe6c7157bf2babbc552dc45115da586bde1b92e7 (patch) | |
| tree | 3d9792b6a1de0e8c621a4ea7aba1da8b367cf2a7 /zebra/zebra_mpls.h | |
| parent | a4b46f4c16bd4cb1f2c890c08ff541468d59d9b3 (diff) | |
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 becef524fd..9f24689595 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 */ |
