summaryrefslogtreecommitdiffstats
AgeCommit message (Expand)AuthorFilesLines
2023-01-10session: avoid trying to send incomplete dgramFlorin Coras1-2/+3
2023-01-10udp: initialize gso_size on dgram enqueueFlorin Coras1-0/+1
2023-01-09hs-test: remove exec flags from source filesFilip Tehlar27-0/+0
2023-01-09hs-test: fix code styleFilip Tehlar10-19/+19
2023-01-09hs-test: add nginx testFilip Tehlar11-5/+170
2023-01-06session: avoid dgram dequeues with no transportFlorin Coras1-0/+5
2023-01-06bfd: fix ip address cli parsingBenoît Ganne1-51/+58
2023-01-04vapi: add vapi_stop_rx_thread()Matthew Smith4-18/+47
2022-12-26vppinfra: fix function prototypesDave Barach2-4/+4
2022-12-25docs: update home-gateway use-caseDave Barach1-19/+55
2022-12-23hsa: fix echo client workers initializationBenoît Ganne2-8/+7
2022-12-22misc: fix crash using tracedump plugin with socket API clientsArthur de Kerhor1-6/+9
2022-12-21dpdk: link DPDK with MLX4/MLX5 libraries againVladimir Ratnikov1-1/+3
2022-12-21af_packet: move to pluginMohsin Kazmi13-31/+72
2022-12-21hs-test: small improvementsFilip Tehlar2-23/+12
2022-12-21quic: fix quic plugin with openssl 3.xDave Wallace3-2/+15
2022-12-20udp: fix tx handling of non-connected sessionsFlorin Coras2-27/+31
2022-12-20hs-test: add runtime optionsMaros Ondrejicka10-62/+95
2022-12-20vapi: use the correct my_context_id when disconnecting API clientsMauro Sardara1-5/+75
2022-12-19hs-test: abstract away topology from test casesMaros Ondrejicka22-425/+488
2022-12-19nat: fix incorrect using about sw_if_index in nat44-ed static mapping v2 api.Huawei LI1-1/+1
2022-12-19nat: fix memory leak and refactor nat44-ed db init/free.Huawei LI1-22/+31
2022-12-16bfd: fix bfd udp error enum incompatibilityDmitry Valter2-4/+55
2022-12-16ipsec: new api for sa ips and ports updatesArthur de Kerhor8-6/+247
2022-12-15interface: fix format_vnet_interface_output_traceluoyaozu1-3/+2
2022-12-15nat: disable nat44-ed/ei features on interface deletionVladislav Grishenko4-2/+198
2022-12-14vcl: enable gso for 'sendmsg' in LDP mode.Dou Chao7-24/+80
2022-12-14vapi: implement vapi_wait() for readsMatthew Smith3-15/+11
2022-12-13build: don't overwrite quicly build/install logsDave Wallace1-6/+8
2022-12-13tests: tapv2, tunv2 and af_packet interface tests for vppNaveen Joy7-135/+1191
2022-12-12linux-cp: set severity of noisy message to debugMatthew Smith1-1/+1
2022-12-12papi: fix VPP_API_DIRPim van Pelt1-1/+4
2022-12-10misc: VPP 22.10 Release NotesAndrew Yourtchenko2-0/+505
2022-12-09nat: fixed return values of enable/disable callFilip Varga4-14/+20
2022-12-09http_static: clean up http redirect generationDave Barach1-1/+56
2022-12-08http_static: derive mime type from file extensionsDave Barach4-8/+132
2022-12-07tcp: avoid retransmit head with no dataFlorin Coras1-1/+1
2022-12-07hs-test: use assert-like approach in test casesMaros Ondrejicka7-154/+84
2022-12-07vat2: add plugin-path parameterOle Troan3-68/+101
2022-12-07papi: export packed message structuresOle Troan1-0/+16
2022-12-07tests: multiple apidir locationsOle Troan4-3/+21
2022-12-07api: avoid sigpipe for unruly api clientOle Troan1-1/+7
2022-12-07papi: fix async support for socket transportOle Troan2-4/+5
2022-12-07http_static: misc bug fixesDave Barach2-1/+3
2022-12-07classify: increase metadata from 16- to 32-bitsBenoît Ganne2-9/+11
2022-12-06hs-test: manage containers and volumes within test suiteMaros Ondrejicka3-117/+103
2022-12-06hs-test: test tcp with lossMaros Ondrejicka1-0/+47
2022-12-06http_static: fix http(s) redirectsDave Barach4-15/+37
2022-12-05stats: return empty vector rather than NULL if stat_segment_dump_r() is run o...Andrew Yourtchenko1-0/+9
2022-12-02session: move connects to first workerFlorin Coras12-106/+72
s="n">lcl_ip6, &lcl_plen, &lcl_port, unformat_ip6_address, &rmt_ip6, &rmt_plen, &rmt_port)) { is_ip4 = 0; conn_set = 1; } else if (unformat (i, "action %d", &action)) ; else break; } if (proto == ~0 || !conn_set || action == ~0) { errmsg ("transport proto, connection and action must be set"); return -99; } if (scope > 3) { errmsg ("scope should be 0-3"); return -99; } M (SESSION_RULE_ADD_DEL, mp); clib_memset (&lcl, 0, sizeof (lcl)); clib_memset (&rmt, 0, sizeof (rmt)); if (is_ip4) { ip_set (&lcl.fp_addr, &lcl_ip4, 1); ip_set (&rmt.fp_addr, &rmt_ip4, 1); lcl.fp_len = lcl_plen; rmt.fp_len = rmt_plen; } else { ip_set (&lcl.fp_addr, &lcl_ip6, 0); ip_set (&rmt.fp_addr, &rmt_ip6, 0); lcl.fp_len = lcl_plen; rmt.fp_len = rmt_plen; } ip_prefix_encode (&lcl, &mp->lcl); ip_prefix_encode (&rmt, &mp->rmt); mp->lcl_port = clib_host_to_net_u16 ((u16) lcl_port); mp->rmt_port = clib_host_to_net_u16 ((u16) rmt_port); mp->transport_proto = proto ? TRANSPORT_PROTO_API_UDP : TRANSPORT_PROTO_API_TCP; mp->action_index = clib_host_to_net_u32 (action); mp->appns_index = clib_host_to_net_u32 (appns_index); mp->scope = scope; mp->is_add = is_add; if (tag) { clib_memcpy (mp->tag, tag, vec_len (tag)); vec_free (tag); } S (mp); W (ret); return ret; } static void vl_api_app_attach_reply_t_handler (vl_api_app_attach_reply_t *mp) { } static void vl_api_app_add_cert_key_pair_reply_t_handler ( vl_api_app_add_cert_key_pair_reply_t *mp) { } static int api_app_attach (vat_main_t *vat) { return -1; } static int api_application_detach (vat_main_t *vat) { return -1; } static int api_app_del_cert_key_pair (vat_main_t *vat) { return -1; } static int api_app_add_cert_key_pair (vat_main_t *vat) { return -1; } static int api_session_rules_dump (vat_main_t *vam) { vl_api_session_rules_dump_t *mp; vl_api_control_ping_t *mp_ping; int ret; if (!vam->json_output) { print (vam->ofp, "%=20s", "Session Rules"); } M (SESSION_RULES_DUMP, mp); /* send it... */ S (mp); /* Use a control ping for synchronization */ PING (&session_test_main, mp_ping); S (mp_ping); /* Wait for a reply... */ W (ret); return ret; } static void vl_api_session_rules_details_t_handler (vl_api_session_rules_details_t *mp) { vat_main_t *vam = &vat_main; fib_prefix_t lcl, rmt; ip_prefix_decode (&mp->lcl, &lcl); ip_prefix_decode (&mp->rmt, &rmt); if (lcl.fp_proto == FIB_PROTOCOL_IP4) { print (vam->ofp, "appns %u tp %u scope %d %U/%d %d %U/%d %d action: %d tag: %s", clib_net_to_host_u32 (mp->appns_index), mp->transport_proto, mp->scope, format_ip4_address, &lcl.fp_addr.ip4, lcl.fp_len, clib_net_to_host_u16 (mp->lcl_port), format_ip4_address, &rmt.fp_addr.ip4, rmt.fp_len, clib_net_to_host_u16 (mp->rmt_port), clib_net_to_host_u32 (mp->action_index), mp->tag); } else { print (vam->ofp, "appns %u tp %u scope %d %U/%d %d %U/%d %d action: %d tag: %s", clib_net_to_host_u32 (mp->appns_index), mp->transport_proto, mp->scope, format_ip6_address, &lcl.fp_addr.ip6, lcl.fp_len, clib_net_to_host_u16 (mp->lcl_port), format_ip6_address, &rmt.fp_addr.ip6, rmt.fp_len, clib_net_to_host_u16 (mp->rmt_port), clib_net_to_host_u32 (mp->action_index), mp->tag); } } static void vl_api_app_namespace_add_del_reply_t_handler ( vl_api_app_namespace_add_del_reply_t *mp) { vat_main_t *vam = &vat_main; i32 retval = ntohl (mp->retval); if (vam->async_mode) { vam->async_errors += (retval < 0); } else { vam->retval = retval; if (retval == 0) errmsg ("app ns index %d\n", ntohl (mp->appns_index)); vam->result_ready = 1; } } static void vl_api_app_namespace_add_del_v2_reply_t_handler ( vl_api_app_namespace_add_del_v2_reply_t *vat) { } static void vl_api_app_worker_add_del_reply_t_handler ( vl_api_app_worker_add_del_reply_t *vat) { } static int api_app_namespace_add_del_v2 (vat_main_t *vat) { return -1; } static int api_session_enable_disable (vat_main_t *vat) { return -1; } static int api_app_worker_add_del (vat_main_t *vat) { return -1; } static int api_app_namespace_add_del (vat_main_t *vam) { vl_api_app_namespace_add_del_t *mp; unformat_input_t *i = vam->input; u8 *ns_id = 0, secret_set = 0, sw_if_index_set = 0; u32 sw_if_index, ip4_fib_id, ip6_fib_id; u64 secret; int ret; while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT) { if (unformat (i, "id %_%v%_", &ns_id)) ; else if (unformat (i, "secret %lu", &secret)) secret_set = 1; else if (unformat (i, "sw_if_index %d", &sw_if_index)) sw_if_index_set = 1; else if (unformat (i, "ip4_fib_id %d", &ip4_fib_id)) ; else if (unformat (i, "ip6_fib_id %d", &ip6_fib_id)) ; else break; } if (!ns_id || !secret_set || !sw_if_index_set) { errmsg ("namespace id, secret and sw_if_index must be set"); return -99; } if (vec_len (ns_id) > 64) { errmsg ("namespace id too long"); return -99; } M (APP_NAMESPACE_ADD_DEL, mp); vl_api_vec_to_api_string (ns_id, &mp->namespace_id); mp->secret = clib_host_to_net_u64 (secret); mp->sw_if_index = clib_host_to_net_u32 (sw_if_index); mp->ip4_fib_id = clib_host_to_net_u32 (ip4_fib_id); mp->ip6_fib_id = clib_host_to_net_u32 (ip6_fib_id); vec_free (ns_id); S (mp); W (ret); return ret; } static void vl_api_app_namespace_add_del_v4_reply_t_handler ( vl_api_app_namespace_add_del_v4_reply_t *mp) { } static int api_app_namespace_add_del_v4 (vat_main_t *vat) { return -1; } static void vl_api_app_namespace_add_del_v3_reply_t_handler ( vl_api_app_namespace_add_del_v3_reply_t *mp) { } static int api_app_namespace_add_del_v3 (vat_main_t *vat) { return -1; } static int api_session_sapi_enable_disable (vat_main_t *vat) { return -1; } #include <vnet/session/session.api_test.c> /* * Local Variables: * eval: (c-set-style "gnu") * End: */