summaryrefslogtreecommitdiffstats
path: root/test/test_acl_plugin_l2l3.py
AgeCommit message (Expand)AuthorFilesLines
2022-05-10tests: replace pycodestyle with blackKlement Sekera1-333/+410
2021-05-13tests: move test source to vpp/testDave Wallace1-0/+864
2019-08-22tests: move plugin tests to src/plugins/*/testDave Wallace1-871/+0
2019-08-16acl: fix stats-segment counters validation on acl updateAndrew Yourtchenko1-18/+36
2019-04-11Tests: Refactor tearDown show command logging, add lifecycle markers.Paul Vinciguerra1-13/+14
2019-04-10Tests Cleanup: Fix missing calls to setUpClass/tearDownClass.Paul Vinciguerra1-0/+4
2019-03-29tests: test/vpp_l2.py fix missing name.Paul Vinciguerra1-1/+1
2019-03-14acl-plugin: fix the l2l3 unittest to actually verify the pcapAndrew Yourtchenko1-4/+3
2019-03-11vpp_papi_provider: Remove more wrapper functions.Ole Troan1-5/+5
2019-03-11VPP-1508: Use scapy.compat to manage packet level library differences.Paul Vinciguerra1-3/+6
2019-03-07VPP-1508: test_acl_plugin vapi changes for Python3.Paul Vinciguerra1-8/+8
2018-09-27Test typo fixesjuraj.linkes1-4/+4
2018-09-26acl-plugin: fix the stateful ICMP handling and add testcasesAndrew Yourtchenko1-27/+107
2018-09-25L2 BD: introduce a BD interface on which to send UU packetsNeale Ranns1-1/+3
2018-06-24Revert "Revert "make test: fix broken interfaces""Klement Sekera1-1/+1
2018-06-22Revert "make test: fix broken interfaces"Ole Troan1-1/+1
2018-06-22make test: fix broken interfacesKlement Sekera1-1/+1
2018-04-09make test: fix failure on centosKlement Sekera1-1/+1
2018-03-23acl-plugin: make test: shuffle applied ACLs as part of the testsAndrew Yourtchenko1-1/+79
2017-09-26acl-plugin: test: move the API calls to vpp_papi_provider.pyAndrew Yourtchenko1-61/+25
2017-06-19acl-plugin: bihash-based ACL lookupAndrew Yourtchenko1-0/+3
2017-04-20Clean up old datapath code in ACL plugin.Andrew Yourtchenko1-48/+0
2017-04-06acl-plugin: make the IPv4/IPv6 non-first fragment handling in line with ACL (...Andrew Yourtchenko1-3/+48
2017-03-21ACL plugin 1.2Andrew Yourtchenko1-0/+722
span class="n">vlib_main_t * vm) { ip_main_t *im = &ip_main; clib_error_t *error = 0; clib_memset (im, 0, sizeof (im[0])); { ip_protocol_info_t *pi; u32 i; #define ip_protocol(n,s) \ do { \ vec_add2 (im->protocol_infos, pi, 1); \ pi->protocol = n; \ pi->name = (u8 *) #s; \ } while (0); #include "protocols.def" #undef ip_protocol im->protocol_info_by_name = hash_create_string (0, sizeof (uword)); for (i = 0; i < vec_len (im->protocol_infos); i++) { pi = im->protocol_infos + i; hash_set_mem (im->protocol_info_by_name, pi->name, i); hash_set (im->protocol_info_by_protocol, pi->protocol, i); } } { tcp_udp_port_info_t *pi; u32 i; static char *port_names[] = { #define ip_port(s,n) #s, #include "ports.def" #undef ip_port }; static u16 ports[] = { #define ip_port(s,n) n, #include "ports.def" #undef ip_port }; vec_resize (im->port_infos, ARRAY_LEN (port_names)); im->port_info_by_name = hash_create_string (0, sizeof (uword)); for (i = 0; i < vec_len (im->port_infos); i++) { pi = im->port_infos + i; pi->port = clib_host_to_net_u16 (ports[i]); pi->name = (u8 *) port_names[i]; hash_set_mem (im->port_info_by_name, pi->name, i); hash_set (im->port_info_by_port, pi->port, i); } } return error; } /* *INDENT-OFF* */ VLIB_INIT_FUNCTION (ip_main_init) = { .init_order = VLIB_INITS ("vnet_main_init", "ip4_init", "ip6_init", "icmp4_init", "icmp6_init", "ip6_hop_by_hop_init", "udp_local_init", "udp_init", "ip_classify_init", "in_out_acl_init", "policer_classify_init", "flow_classify_init", "dns_init"), }; /* *INDENT-ON* */ /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */