aboutsummaryrefslogtreecommitdiffstats
path: root/.clang-tidy
diff options
context:
space:
mode:
authorMatthew Smith <mgsmith@netgate.com>2021-09-24 15:27:36 -0500
committerMatthew Smith <mgsmith@netgate.com>2021-09-24 16:06:51 -0500
commit1b6c7932a8feb419aae73a00a6784d7c110decdc (patch)
tree4f3f767fa45d5e0f6bc5f5bc6edd16793ee057da /.clang-tidy
parent94fef3e67662c6a92e32164d8db6fcf4bc83e79e (diff)
ip: set error number on failed intf addr
Type: fix A subinterface that does not have exact match enabled cannot have an IP address configured on it. When this is validated in the functions which add an interface IP address for IPv4 and IPv6, a clib_error_t * is returned but api_errno is not set. The API handler uses the value of vnet_main.api_errno to set the return value in it's reply. Since it was not set, the API reports the operation succeeded. Set vnet_main.api_errno if vnet_sw_interface_supports_addressing() returns a non-null value when adding/deleting an interface IP address. Change-Id: I257a30d21788986102a2a719235e714ff16a24e8 Signed-off-by: Matthew Smith <mgsmith@netgate.com>
Diffstat (limited to '.clang-tidy')
0 files changed, 0 insertions, 0 deletions
ring.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# Copyright (c) 2016 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

AUTOMAKE_OPTIONS = foreign
AM_CFLAGS = -Wall 

bin_PROGRAMS = c2cpel cpelatency cpeldump cpelinreg cpelstate

lib_LTLIBRARIES = libcperf.la

libcperf_la_SOURCES = delsvec.c linreg.c props.c cpel_util.c

TOOL_LIBS = libcperf.la -lvppinfra -lm

c2cpel_SOURCE = c2cpel.c
c2cpel_LDADD = $(TOOL_LIBS)

cpelatency_SOURCE = cpelatency.c
cpelatency_LDADD = $(TOOL_LIBS)

cpeldump_SOURCE = cpeldump.c
cpeldump_LDADD = $(TOOL_LIBS)

cpelinreg_SOURCE = cpelinreg.c
cpelinreg_LDADD = $(TOOL_LIBS)

cpelstate_SOURCE = cpelstate.c
cpelstate_LDADD = $(TOOL_LIBS)