]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
7fc02572 RW |
2 | /* |
3 | * Copyright (C) 2016 by Open Source Routing. | |
7fc02572 RW |
4 | */ |
5 | ||
7758e3f3 | 6 | #include <zebra.h> |
be0dba35 | 7 | #include "zebra/rt.h" |
7758e3f3 | 8 | #include "zebra/zebra_mpls.h" |
9 | ||
ddfeb486 DL |
10 | #if !defined(HAVE_NETLINK) && !defined(OPEN_BSD) |
11 | ||
d62a17ae | 12 | int mpls_kernel_init(void) |
13 | { | |
14 | return -1; | |
15 | }; | |
ddfeb486 | 16 | |
97d8d05a MS |
17 | /* |
18 | * Pseudowire update api - note that the default has been | |
19 | * to report 'success' for pw updates on unsupported platforms. | |
20 | */ | |
21 | enum zebra_dplane_result kernel_pw_update(struct zebra_dplane_ctx *ctx) | |
22 | { | |
23 | return ZEBRA_DPLANE_REQUEST_SUCCESS; | |
24 | } | |
25 | ||
16c628de MS |
26 | enum zebra_dplane_result kernel_lsp_update(struct zebra_dplane_ctx *ctx) |
27 | { | |
28 | return ZEBRA_DPLANE_REQUEST_FAILURE; | |
29 | } | |
30 | ||
ddfeb486 | 31 | #endif /* !defined(HAVE_NETLINK) && !defined(OPEN_BSD) */ |