]> git.proxmox.com Git - mirror_frr.git/blob - zebra/if_socket.c
tools: config clang-format to allow aligned macros
[mirror_frr.git] / zebra / if_socket.c
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Zebra Interface interaction with the kernel using socket.
4 * Copyright (C) 2022 NVIDIA CORPORATION & AFFILIATES
5 * Stephen Worley
6 */
7
8 #include <zebra.h>
9
10 #ifndef HAVE_NETLINK
11
12 #include "lib_errors.h"
13
14 #include "zebra/rt.h"
15 #include "zebra/zebra_dplane.h"
16 #include "zebra/zebra_errors.h"
17
18 enum zebra_dplane_result kernel_intf_update(struct zebra_dplane_ctx *ctx)
19 {
20 flog_err(EC_LIB_UNAVAILABLE, "%s not Implemented for this platform",
21 __func__);
22 return ZEBRA_DPLANE_REQUEST_FAILURE;
23 }
24
25 enum zebra_dplane_result
26 kernel_intf_netconf_update(struct zebra_dplane_ctx *ctx)
27 {
28 const char *ifname = dplane_ctx_get_ifname(ctx);
29 enum dplane_netconf_status_e mpls_on = dplane_ctx_get_netconf_mpls(ctx);
30
31 zlog_warn("%s: Unable to set kernel mpls state for interface %s(%d)",
32 __func__, ifname, mpls_on);
33
34 return ZEBRA_DPLANE_REQUEST_SUCCESS;
35 }
36 #endif