]> git.proxmox.com Git - mirror_frr.git/blob - zebra/zebra_mpls_null.c
2cc3f3b69dc5ab72b7d195bcc92410dc273dcd96
[mirror_frr.git] / zebra / zebra_mpls_null.c
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 *
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
19 */
20
21 #include <zebra.h>
22 #include "zebra/rt.h"
23 #include "zebra/zebra_mpls.h"
24
25 #if !defined(HAVE_NETLINK) && !defined(OPEN_BSD)
26
27 int mpls_kernel_init(void)
28 {
29 return -1;
30 };
31
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
41 enum zebra_dplane_result kernel_lsp_update(struct zebra_dplane_ctx *ctx)
42 {
43 return ZEBRA_DPLANE_REQUEST_FAILURE;
44 }
45
46 #endif /* !defined(HAVE_NETLINK) && !defined(OPEN_BSD) */