summaryrefslogtreecommitdiffstats
path: root/doxygen
AgeCommit message (Expand)AuthorFilesLines
2018-04-30Add reference to 18.04 test framework documentationChris Luke1-1/+3
2018-04-04Doc updates prior to branchChris Luke2-5/+9
2018-02-02Add link to 18.01 test framework documentation.Dave Wallace1-0/+1
2018-01-30VPP-899: Run VPP under SELinuxBilly McFall2-1/+2
2018-01-24docs: Clean up TOCDave Wallace1-0/+2
2017-12-15apps: refactor uri and update build infraFlorin Coras1-1/+0
2017-11-03Add C++ files to DoxygenChris Luke1-1/+1
2017-09-28General documentation updatesChris Luke6-5/+23
2017-09-25Add binary API documentationDave Barach1-0/+1
2017-06-22NAT64: documentationMatus Fabian1-0/+1
2017-06-09Sample plugin: Add sample plugin documentationRay Kinsella2-2/+2
2017-05-30Flowprobe: Stateful flows and IPv6, L4 recordingOle Troan1-1/+1
2017-05-10doxygen: Fix some pathsChris Luke1-1/+3
2017-05-05First commit SR MPLSPablo Camarillo1-0/+1
2017-03-29Bugfixing and documentation for SRv6Pablo Camarillo2-9/+10
2017-02-22Add ref to test framework docs in doxygen output.Dave Wallace2-5/+8
2017-02-02Added support for openSUSEMarco Varlese1-1/+4
2017-01-11Remove vcgn pluginDamjan Marion1-2/+1
2017-01-10Revert "vppctl: bash completion for vppctl commands"Damjan Marion1-8/+17
2017-01-09vppctl: bash completion for vppctl commandsPadraig Connolly1-17/+8
2017-01-01Move java,lua api and remaining plugins to src/Damjan Marion1-4/+3
2016-12-28Repair Doxygen build infrastructureChris Luke2-11/+29
2016-11-28Add support for using documentation siphons in multiple waysChris Luke19-32/+199
2016-11-28dpdk: add ipsec cryptodev supportSergio Gonzalez Monroy1-0/+1
2016-10-27Per-packet IPFIX record generation pluginDave Barach1-0/+1
2016-10-04Minor tweaks to hqos docChris Luke1-3/+4
2016-09-27Fix missing output in generated CLI/configChris Luke3-7/+8
2016-09-23Enable doc building on MacOSChris Luke1-1/+25
2016-09-21Refactor pre-Doxy siphon scripts; VPP-396Chris Luke24-657/+1486
2016-09-21Move doxytags file to html output directoryChris Luke1-1/+1
2016-09-21Copy the 16.09 release notes to masterChris Luke1-0/+1
2016-09-20Add structure to some of the documentation; VPP-223Chris Luke2-1/+15
2016-09-09Check for zero-sized Graphvix config file on Ubuntu; VPP-396Chris Luke1-1/+2
2016-09-09On Ubuntu check for graphviz system configChris Luke1-0/+3
2016-09-07VPP-346 Improve Doxygen include path mechanismChris Luke2-23/+55
2016-09-06VPP-346 More VPP doc fixesChris Luke3-15/+48
2016-09-02VPP-221 Improve doxygen dependency checkChris Luke1-1/+5
2016-09-01VPP-346 A swathe of doc fixesChris Luke4-16/+94
2016-08-31VPP-221 Loosen Doxygen CLI command struct parserChris Luke2-1/+2
2016-08-31VPP-221 CLI auto-documentation infrastructureChris Luke6-5/+793
2016-08-06Add DPDK definition to DOXYGENKeith Burns (alagalah)1-2/+3
2016-07-26Fix missing include dirs in doxygenChris Luke1-1/+1
2016-07-07Add some doxygen tagsDave Barach1-0/+1
2016-05-16VPP-57 Add missing license headers in doc filesChris Luke1-0/+22
2016-05-15VPP-62 Add a doxy filter to enable vpe.api docChris Luke3-5/+67
2016-05-13VPP-57 Add Doxygen to VPPChris Luke6-0/+2717
="n">total_sessions.name = "total-sessions"; dm->total_sessions.stat_segment_name = "/dslite/total-sessions"; vlib_validate_simple_counter (&dm->total_sessions, 0); vlib_zero_simple_counter (&dm->total_sessions, 0); dslite_dpo_module_init (); } void dslite_set_ce (dslite_main_t * dm, u8 set) { dm->is_ce = (set != 0); } int dslite_set_aftr_ip6_addr (dslite_main_t * dm, ip6_address_t * addr) { dpo_id_t dpo = DPO_INVALID; if (dm->is_ce) { dslite_ce_dpo_create (DPO_PROTO_IP4, 0, &dpo); fib_prefix_t pfx = { .fp_proto = FIB_PROTOCOL_IP4, .fp_len = 0, .fp_addr.ip4.as_u32 = 0, }; fib_table_entry_special_dpo_add (0, &pfx, FIB_SOURCE_PLUGIN_HI, FIB_ENTRY_FLAG_EXCLUSIVE, &dpo); } else { dslite_dpo_create (DPO_PROTO_IP6, 0, &dpo); fib_prefix_t pfx = { .fp_proto = FIB_PROTOCOL_IP6, .fp_len = 128, .fp_addr.ip6.as_u64[0] = addr->as_u64[0], .fp_addr.ip6.as_u64[1] = addr->as_u64[1], }; fib_table_entry_special_dpo_add (0, &pfx, FIB_SOURCE_PLUGIN_HI, FIB_ENTRY_FLAG_EXCLUSIVE, &dpo); } dpo_reset (&dpo); dm->aftr_ip6_addr.as_u64[0] = addr->as_u64[0]; dm->aftr_ip6_addr.as_u64[1] = addr->as_u64[1]; return 0; } int dslite_set_aftr_ip4_addr (dslite_main_t * dm, ip4_address_t * addr) { dm->aftr_ip4_addr.as_u32 = addr->as_u32; return 0; } int dslite_set_b4_ip6_addr (dslite_main_t * dm, ip6_address_t * addr) { if (dm->is_ce) { dpo_id_t dpo = DPO_INVALID; dslite_ce_dpo_create (DPO_PROTO_IP6, 0, &dpo); fib_prefix_t pfx = { .fp_proto = FIB_PROTOCOL_IP6, .fp_len = 128, .fp_addr.ip6.as_u64[0] = addr->as_u64[0], .fp_addr.ip6.as_u64[1] = addr->as_u64[1], }; fib_table_entry_special_dpo_add (0, &pfx, FIB_SOURCE_PLUGIN_HI, FIB_ENTRY_FLAG_EXCLUSIVE, &dpo); dpo_reset (&dpo); dm->b4_ip6_addr.as_u64[0] = addr->as_u64[0]; dm->b4_ip6_addr.as_u64[1] = addr->as_u64[1]; } else { return VNET_API_ERROR_FEATURE_DISABLED; } return 0; } int dslite_set_b4_ip4_addr (dslite_main_t * dm, ip4_address_t * addr) { if (dm->is_ce) { dm->b4_ip4_addr.as_u32 = addr->as_u32; } else { return VNET_API_ERROR_FEATURE_DISABLED; } return 0; } int dslite_add_del_pool_addr (dslite_main_t * dm, ip4_address_t * addr, u8 is_add) { vlib_thread_main_t *tm = vlib_get_thread_main (); snat_address_t *a = 0; int i = 0; dpo_id_t dpo_v4 = DPO_INVALID; fib_prefix_t pfx = { .fp_proto = FIB_PROTOCOL_IP4, .fp_len = 32, .fp_addr.ip4.as_u32 = addr->as_u32, }; for (i = 0; i < vec_len (dm->addr_pool); i++) { if (dm->addr_pool[i].addr.as_u32 == addr->as_u32) { a = dm->addr_pool + i; break; } } if (is_add) { if (a) return VNET_API_ERROR_VALUE_EXIST; vec_add2 (dm->addr_pool, a, 1); a->addr = *addr; #define _(N, i, n, s) \ clib_bitmap_alloc (a->busy_##n##_port_bitmap, 65535); \ a->busy_##n##_ports = 0; \ vec_validate_init_empty (a->busy_##n##_ports_per_thread, tm->n_vlib_mains - 1, 0); foreach_snat_protocol #undef _ dslite_dpo_create (DPO_PROTO_IP4, 0, &dpo_v4); fib_table_entry_special_dpo_add (0, &pfx, FIB_SOURCE_PLUGIN_HI, FIB_ENTRY_FLAG_EXCLUSIVE, &dpo_v4); dpo_reset (&dpo_v4); } else { if (!a) return VNET_API_ERROR_NO_SUCH_ENTRY; #define _(N, id, n, s) \ clib_bitmap_free (a->busy_##n##_port_bitmap); \ vec_free (a->busy_##n##_ports_per_thread); foreach_snat_protocol #undef _ fib_table_entry_special_remove (0, &pfx, FIB_SOURCE_PLUGIN_HI); vec_del1 (dm->addr_pool, i); } return 0; } u8 * format_dslite_trace (u8 * s, va_list * args) { CLIB_UNUSED (vlib_main_t * vm) = va_arg (*args, vlib_main_t *); CLIB_UNUSED (vlib_node_t * node) = va_arg (*args, vlib_node_t *); dslite_trace_t *t = va_arg (*args, dslite_trace_t *); s = format (s, "next index %d, session %d", t->next_index, t->session_index); return s; } u8 * format_dslite_ce_trace (u8 * s, va_list * args) { CLIB_UNUSED (vlib_main_t * vm) = va_arg (*args, vlib_main_t *); CLIB_UNUSED (vlib_node_t * node) = va_arg (*args, vlib_node_t *); dslite_ce_trace_t *t = va_arg (*args, dslite_ce_trace_t *); s = format (s, "next index %d", t->next_index); return s; } /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */