]>
Commit | Line | Data |
---|---|---|
7fc02572 RW |
1 | /* |
2 | * Copyright (C) 2016 by Open Source Routing. | |
3 | * | |
4 | * This file is part of GNU Zebra. | |
5 | * | |
6 | * GNU Zebra is free software; you can redistribute it and/or modify it | |
7 | * under the terms of the GNU General Public License as published by the | |
8 | * Free Software Foundation; either version 2, or (at your option) any | |
9 | * later version. | |
10 | * | |
11 | * GNU Zebra is distributed in the hope that it will be useful, but | |
12 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
14 | * General Public License for more details. | |
15 | * | |
896014f4 DL |
16 | * You should have received a copy of the GNU General Public License along |
17 | * with this program; see the file COPYING; if not, write to the Free Software | |
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
7fc02572 RW |
19 | */ |
20 | ||
7758e3f3 | 21 | #include <zebra.h> |
be0dba35 | 22 | #include "zebra/rt.h" |
7758e3f3 | 23 | #include "zebra/zebra_mpls.h" |
24 | ||
ddfeb486 DL |
25 | #if !defined(HAVE_NETLINK) && !defined(OPEN_BSD) |
26 | ||
d62a17ae | 27 | int mpls_kernel_init(void) |
28 | { | |
29 | return -1; | |
30 | }; | |
ddfeb486 | 31 | |
97d8d05a MS |
32 | /* |
33 | * Pseudowire update api - note that the default has been | |
34 | * to report 'success' for pw updates on unsupported platforms. | |
35 | */ | |
36 | enum zebra_dplane_result kernel_pw_update(struct zebra_dplane_ctx *ctx) | |
37 | { | |
38 | return ZEBRA_DPLANE_REQUEST_SUCCESS; | |
39 | } | |
40 | ||
16c628de MS |
41 | enum zebra_dplane_result kernel_lsp_update(struct zebra_dplane_ctx *ctx) |
42 | { | |
43 | return ZEBRA_DPLANE_REQUEST_FAILURE; | |
44 | } | |
45 | ||
ddfeb486 | 46 | #endif /* !defined(HAVE_NETLINK) && !defined(OPEN_BSD) */ |