diff options
Diffstat (limited to 'zebra/zebra_mpls_null.c')
| -rw-r--r-- | zebra/zebra_mpls_null.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/zebra/zebra_mpls_null.c b/zebra/zebra_mpls_null.c index 02ec506d84..2cc3f3b69d 100644 --- a/zebra/zebra_mpls_null.c +++ b/zebra/zebra_mpls_null.c @@ -24,24 +24,23 @@ #if !defined(HAVE_NETLINK) && !defined(OPEN_BSD) -enum zebra_dplane_result kernel_add_lsp(zebra_lsp_t *lsp) +int mpls_kernel_init(void) { - return ZEBRA_DPLANE_REQUEST_SUCCESS; -} + return -1; +}; -enum zebra_dplane_result kernel_upd_lsp(zebra_lsp_t *lsp) +/* + * Pseudowire update api - note that the default has been + * to report 'success' for pw updates on unsupported platforms. + */ +enum zebra_dplane_result kernel_pw_update(struct zebra_dplane_ctx *ctx) { return ZEBRA_DPLANE_REQUEST_SUCCESS; } -enum zebra_dplane_result kernel_del_lsp(zebra_lsp_t *lsp) +enum zebra_dplane_result kernel_lsp_update(struct zebra_dplane_ctx *ctx) { - return ZEBRA_DPLANE_REQUEST_SUCCESS; + return ZEBRA_DPLANE_REQUEST_FAILURE; } -int mpls_kernel_init(void) -{ - return -1; -}; - #endif /* !defined(HAVE_NETLINK) && !defined(OPEN_BSD) */ |
