summaryrefslogtreecommitdiffstats
path: root/src/vnet/lisp-gpe/lisp_gpe_api.c
AgeCommit message (Expand)AuthorFilesLines
2019-04-08fixing typosJim Thompson1-1/+1
2018-10-23c11 safe string handling supportDave Barach1-6/+6
2018-01-11api: remove transport specific code from handlersFlorin Coras1-4/+4
2018-01-09api: refactor vlibmemoryFlorin Coras1-1/+1
2017-10-31LISP: add P-ITR/P-ETR/xTR API handlers, ONE-24Filip Tehlar1-1/+1
2017-08-08L2 over MPLSNeale Ranns1-5/+5
2017-06-16Fix vni/dp_table endianness for gpe iface addition (VPP-882)Florin Coras1-6/+8
2017-06-16Fix gpe_native_fwd_rpaths_get (VPP-883)Florin Coras1-1/+3
2017-06-15Add VAT handlers for LISP-GPE APIFilip Tehlar1-8/+20
2017-06-09Fix gpe coverity issue (VPP-874)Florin Coras1-3/+8
2017-06-08Add gpe native-forward static route supportFlorin Coras1-10/+98
2017-06-05LISP-GPE: return index of newly created fwd entry, VPP-868Filip Tehlar1-1/+6
2017-06-05LISP: fix GPE entry dump, VPP-871Filip Tehlar1-5/+5
2017-05-22LISP-GPE: add dump call for VNIs in useFilip Tehlar1-1/+32
2017-02-27Add GPE CLI/API for setting encap modeFilip Tehlar1-1/+27
2017-02-21Rename LISP GPE API to GPEFilip Tehlar1-56/+51
2017-01-30LISP: add dump calls for GPE entries APIFilip Tehlar1-0/+170
2017-01-13LISP: Fix gpe APIFilip Tehlar1-78/+35
2016-12-28Reorganize source tree to use single autotools instanceDamjan Marion1-0/+304
span> unformat_sw_if_index (unformat_input_t * input, va_list * args); /* Declare message IDs */ #include <cdp/cdp.api_enum.h> #include <cdp/cdp.api_types.h> typedef struct { /* API message ID base */ u16 msg_id_base; vat_main_t *vat_main; } cdp_test_main_t; cdp_test_main_t cdp_test_main; #define __plugin_msg_base cdp_test_main.msg_id_base #include <vlibapi/vat_helper_macros.h> /* * Table of message reply handlers, must include boilerplate handlers * we just generated */ #define foreach_vpe_api_reply_msg \ _(CDP_ENABLE_DISABLE_REPLY, cdp_enable_disable_reply) static int api_cdp_enable_disable (vat_main_t * vam) { unformat_input_t *i = vam->input; int enable_disable = 1; vl_api_cdp_enable_disable_t *mp; int ret; /* Parse args required to build the message */ while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT) { if (unformat (i, "disable")) enable_disable = 0; else if (unformat (i, "enable")) enable_disable = 1; else break; } /* Construct the API message */ M (CDP_ENABLE_DISABLE, mp); mp->enable_disable = enable_disable; /* send it... */ S (mp); /* Wait for a reply... */ W (ret); return ret; } #include <cdp/cdp.api_test.c> /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */