summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/unformat.c
AgeCommit message (Expand)AuthorFilesLines
2021-10-13dpdk: fix vmbus device name parsingBenoît Ganne1-1/+2
2020-10-22vppinfra: missing __clib_export va_unformatJuraj Linkeš1-1/+1
2020-10-17vppinfra: explicitly export symbolsDamjan Marion1-17/+17
2019-10-04vppinfra: create unformat function for data size parsingMathiasRaoul1-0/+24
2019-04-30vppinfra: fix buffer overflow in unformat_tokenBenoît Ganne1-2/+8
2018-10-23c11 safe string handling supportDave Barach1-4/+4
2018-09-27Trivial: Cleanup some typos.Paul Vinciguerra1-1/+1
2017-10-03Repair vlib API socket serverDave Barach1-3/+3
2017-07-10VPP-904: fixes zero length CLI parameters parseAlexander Kotov1-2/+3
2017-02-16VPP-638: 'set interface ipsec key garbage' causes infinite loopBilly McFall1-0/+5
2017-01-27IP Multicast FIB (mfib)Neale Ranns1-8/+8
2016-12-28Reorganize source tree to use single autotools instanceDamjan Marion1-0/+1077
light .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.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 */ }
/*
 * tapcli.h : tap support
 *
 * Copyright (c) 2013 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.
 */
/**
 * @file
 * @brief TAPCLI definitions
 */

#ifndef __included_tapcli_h__
#define __included_tapcli_h__

/** TAP CLI errors */
#define foreach_tapcli_error				\
  /* Must be first. */                                  \
 _(NONE, "no error")                                    \
 _(READ, "read error")                                  \
 _(BUFFER_ALLOC, "buffer allocation error")             \
 _(UNKNOWN, "unknown error")

typedef enum {
#define _(sym,str) TAPCLI_ERROR_##sym,
  foreach_tapcli_error
#undef _
   TAPCLI_N_ERROR,
 } tapcli_error_t;

/** TAP CLI interface details struct */
typedef struct {
  u32 sw_if_index;
  u8 dev_name[64];
} tapcli_interface_details_t;

int vnet_tap_dump_ifs (tapcli_interface_details_t **out_tapids);

#define TAP_MTU_MIN 68
#define TAP_MTU_MAX 65535
#define TAP_MTU_DEFAULT 1500

#endif /* __included_tapcli_h__ */