aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/papi
AgeCommit message (Expand)AuthorFilesLines
2021-05-12PAPI stats: Use single dumpVratko Polak1-13/+5
2021-03-30PAPI stats: Use list as argument to lsVratko Polak1-2/+7
2020-12-04Stats: Use the new client class nameVratko Polak1-3/+3
2019-11-28Python3: resources and librariesJan Gelety1-58/+58
2019-06-16FIX: IPUtil after vpp api changesJan Gelety1-8/+20
2019-06-16Add support for more complex structures in PAPI calls/repliesJan Gelety1-14/+26
2019-06-19VAT-to-PAPI: VPPCountersTibor Frank1-1/+29
2019-05-31CSIT-1468: InterfaceUtil migration from VAT to PAPIJan Gelety1-2/+14
2019-04-01CSIT-1337: Migrate L2Util library from VAT to PAPIJan Gelety1-2/+19
2019-03-27CSIT-1460: Add VPP-stats to PAPI ProviderTibor Frank1-120/+134
2019-03-14Papi: Back to python2, add aenumTibor Frank1-1/+1
2019-03-13PAPI: Use Python3 for PapiProviderTibor Frank1-2/+2
2019-03-06CSIT-1450: PAPI executorVratko Polak1-21/+16
2019-01-24CSIT-1407 FIX vpp install after VPP changesPeter Mikus1-14/+3
2018-12-17FIX: Update PAPI to work with string changes in Python APIJan Gelety1-4/+5
2018-11-27CSIT python API introductionJan Gelety1-0/+230
2018-11-27HLD: Python API in CSITJan Gelety1-0/+133
/span> p1, ip6_header_t * ip0, ip6_header_t * ip1, u32 * next0, u32 * next1) { u8 error0, error1; error0 = error1 = IP6_ERROR_NONE; /* Version != 6? Drop it. */ error0 = (clib_net_to_host_u32 (ip0->ip_version_traffic_class_and_flow_label) >> 28) != 6 ? IP6_ERROR_VERSION : error0; error1 = (clib_net_to_host_u32 (ip1->ip_version_traffic_class_and_flow_label) >> 28) != 6 ? IP6_ERROR_VERSION : error1; /* hop limit < 1? Drop it. for link-local broadcast packets, * like dhcpv6 packets from client has hop-limit 1, which should not * be dropped. */ error0 = ip0->hop_limit < 1 ? IP6_ERROR_TIME_EXPIRED : error0; error1 = ip1->hop_limit < 1 ? IP6_ERROR_TIME_EXPIRED : error1; /* L2 length must be at least minimal IP header. */ error0 = p0->current_length < sizeof (ip0[0]) ? IP6_ERROR_TOO_SHORT : error0; error1 = p1->current_length < sizeof (ip1[0]) ? IP6_ERROR_TOO_SHORT : error1; if (PREDICT_FALSE (error0 != IP6_ERROR_NONE)) { if (error0 == IP6_ERROR_TIME_EXPIRED) { icmp6_error_set_vnet_buffer (p0, ICMP6_time_exceeded, ICMP6_time_exceeded_ttl_exceeded_in_transit, 0); *next0 = IP6_INPUT_NEXT_ICMP_ERROR; } else { *next0 = IP6_INPUT_NEXT_DROP; } } if (PREDICT_FALSE (error1 != IP6_ERROR_NONE)) { if (error1 == IP6_ERROR_TIME_EXPIRED) { icmp6_error_set_vnet_buffer (p1, ICMP6_time_exceeded, ICMP6_time_exceeded_ttl_exceeded_in_transit, 0); *next1 = IP6_INPUT_NEXT_ICMP_ERROR; } else { *next1 = IP6_INPUT_NEXT_DROP; } } } always_inline void ip6_input_check_x1 (vlib_main_t * vm, vlib_node_runtime_t * error_node, vlib_buffer_t * p0, ip6_header_t * ip0, u32 * next0) { u8 error0; error0 = IP6_ERROR_NONE; /* Version != 6? Drop it. */ error0 = (clib_net_to_host_u32 (ip0->ip_version_traffic_class_and_flow_label) >> 28) != 6 ? IP6_ERROR_VERSION : error0; /* hop limit < 1? Drop it. for link-local broadcast packets, * like dhcpv6 packets from client has hop-limit 1, which should not * be dropped. */ error0 = ip0->hop_limit < 1 ? IP6_ERROR_TIME_EXPIRED : error0; /* L2 length must be at least minimal IP header. */ error0 = p0->current_length < sizeof (ip0[0]) ? IP6_ERROR_TOO_SHORT : error0; if (PREDICT_FALSE (error0 != IP6_ERROR_NONE)) { if (error0 == IP6_ERROR_TIME_EXPIRED) { icmp6_error_set_vnet_buffer (p0, ICMP6_time_exceeded, ICMP6_time_exceeded_ttl_exceeded_in_transit, 0); *next0 = IP6_INPUT_NEXT_ICMP_ERROR; } else { *next0 = IP6_INPUT_NEXT_DROP; } } } #endif /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */