Lines Matching refs:iph4

757 		const struct rte_ipv4_hdr *iph4;  in test_ipsec_td_verify()  local
762 iph4 = (const struct rte_ipv4_hdr *)output_text; in test_ipsec_td_verify()
763 if (iph4->next_proto_id != IPPROTO_UDP) { in test_ipsec_td_verify()
787 const struct rte_ipv4_hdr *iph4; in test_ipsec_td_verify() local
788 iph4 = (const struct rte_ipv4_hdr *)output_text; in test_ipsec_td_verify()
789 if (iph4->fragment_offset) { in test_ipsec_td_verify()
880 test_ipsec_iph4_hdr_validate(const struct rte_ipv4_hdr *iph4, in test_ipsec_iph4_hdr_validate() argument
886 if (!is_valid_ipv4_pkt(iph4)) { in test_ipsec_iph4_hdr_validate()
891 if (flags->ah && iph4->next_proto_id != IPPROTO_AH) { in test_ipsec_iph4_hdr_validate()
896 f_off = rte_be_to_cpu_16(iph4->fragment_offset); in test_ipsec_iph4_hdr_validate()
910 tos = iph4->type_of_service; in test_ipsec_iph4_hdr_validate()
974 const struct rte_ipv4_hdr *iph4; in test_ipsec_post_process() local
983 iph4 = (const struct rte_ipv4_hdr *)output_text; in test_ipsec_post_process()
994 if (is_valid_ipv4_pkt(iph4) == false) { in test_ipsec_post_process()
999 if (flags->ah && iph4->next_proto_id != IPPROTO_AH) { in test_ipsec_post_process()
1007 if (test_ipsec_iph4_hdr_validate(iph4, flags)) in test_ipsec_post_process()
1130 struct rte_ipv4_hdr *iph4; in test_ipsec_pkt_update() local
1134 iph4 = (struct rte_ipv4_hdr *)pkt; in test_ipsec_pkt_update()
1142 if (!is_ipv4(iph4)) { in test_ipsec_pkt_update()
1147 frag_off = rte_be_to_cpu_16(iph4->fragment_offset); in test_ipsec_pkt_update()
1155 iph4->fragment_offset = rte_cpu_to_be_16(frag_off); in test_ipsec_pkt_update()
1164 if (is_ipv4(iph4)) { in test_ipsec_pkt_update()
1167 tos = iph4->type_of_service; in test_ipsec_pkt_update()
1175 iph4->type_of_service = tos; in test_ipsec_pkt_update()
1194 if (cksum_dirty && is_ipv4(iph4)) { in test_ipsec_pkt_update()
1195 iph4->hdr_checksum = 0; in test_ipsec_pkt_update()
1196 iph4->hdr_checksum = rte_ipv4_cksum(iph4); in test_ipsec_pkt_update()