From: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org>

Use odp_packet_l4_type_set() instead of calling odp_packet_has_*_set().

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org>
---
/** Email created from pull request 457 (lumag:packet-types)
 ** https://github.com/Linaro/odp/pull/457
 ** Patch: https://github.com/Linaro/odp/pull/457.patch
 ** Base sha: e1175d5a69c65bb465022c9f1381c40fdb5c4069
 ** Merge commit sha: 802ddfc5ea6f47a8935993bf6f8c1675a4c94930
 **/
 helper/test/chksum.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/helper/test/chksum.c b/helper/test/chksum.c
index 292eb2d6d..97cce38c0 100644
--- a/helper/test/chksum.c
+++ b/helper/test/chksum.c
@@ -131,7 +131,7 @@ int main(int argc ODPH_UNUSED, char *argv[] ODPH_UNUSED)
        udp->dst_port = 0;
        udp->length = odp_cpu_to_be_16(udat_size + ODPH_UDPHDR_LEN);
        udp->chksum = 0;
-       odp_packet_has_udp_set(test_packet, 1);
+       odp_packet_l4_type_set(test_packet, ODP_PROTO_L4_TYPE_UDP);
        udp->chksum = odph_ipv4_udp_chksum(test_packet);
 
        if (udp->chksum == 0)

Reply via email to