]> git.proxmox.com Git - mirror_frr.git/blob - zebra/if_socket.c
doc: Add `show ipv6 rpf X:X::X:X` command to docs
[mirror_frr.git] / zebra / if_socket.c
1 /*
2 * Zebra Interface interaction with the kernel using socket.
3 * Copyright (C) 2022 NVIDIA CORPORATION & AFFILIATES
4 * Stephen Worley
5 *
6 * This file is part of FRR.
7 *
8 * FRR is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2, or (at your option) any
11 * later version.
12 *
13 * FRR is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with FRR; see the file COPYING. If not, write to the Free
20 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
21 * 02111-1307, USA.
22 */
23
24 #include <zebra.h>
25
26 #ifndef HAVE_NETLINK
27
28 #include "lib_errors.h"
29
30 #include "zebra/rt.h"
31 #include "zebra/zebra_dplane.h"
32 #include "zebra/zebra_errors.h"
33
34 enum zebra_dplane_result kernel_intf_update(struct zebra_dplane_ctx *ctx)
35 {
36 flog_err(EC_LIB_UNAVAILABLE, "%s not Implemented for this platform",
37 __func__);
38 return ZEBRA_DPLANE_REQUEST_FAILURE;
39 }
40
41 enum zebra_dplane_result
42 kernel_intf_netconf_update(struct zebra_dplane_ctx *ctx)
43 {
44 const char *ifname = dplane_ctx_get_ifname(ctx);
45 enum dplane_netconf_status_e mpls_on = dplane_ctx_get_netconf_mpls(ctx);
46
47 zlog_warn("%s: Unable to set kernel mpls state for interface %s(%d)",
48 __func__, ifname, mpls_on);
49
50 return ZEBRA_DPLANE_REQUEST_SUCCESS;
51 }
52 #endif