aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2016-02-09 14:25:09 +0200
committerMaxim Uvarov <maxim.uvarov@linaro.org>2016-03-03 22:32:04 +0300
commitb6c21ca841467d0266ee974752b41d4492bcb802 (patch)
tree9435f79ad8bf3d8f2584e73a77eb5dc5620144b8 /example
parent96cef77a0aad6940f5b210277ffb0bccb6e5b3c1 (diff)
helper: remove odp_ definitions
Many helper files included ODP internal headers and defined types or functions with odp_ prefix. A helper can be consider as part of application - from ODP headers it may include only odp.h and it must not define anything with odp_ prefix. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-by: Juha-Matti Tilli <juha-matti.tilli@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'example')
-rw-r--r--example/generator/odp_generator.c3
-rw-r--r--example/ipsec/odp_ipsec_stream.c4
2 files changed, 3 insertions, 4 deletions
diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c
index ab8c7faa5..3e5efc120 100644
--- a/example/generator/odp_generator.c
+++ b/example/generator/odp_generator.c
@@ -309,8 +309,7 @@ static odp_packet_t pack_icmp_pkt(odp_pool_t pool)
gettimeofday(&tval, NULL);
memcpy(tval_d, &tval, sizeof(struct timeval));
icmp->chksum = 0;
- icmp->chksum = odp_chksum(icmp, args->appl.payload +
- ODPH_ICMPHDR_LEN);
+ icmp->chksum = odph_chksum(icmp, args->appl.payload + ODPH_ICMPHDR_LEN);
return pkt;
}
diff --git a/example/ipsec/odp_ipsec_stream.c b/example/ipsec/odp_ipsec_stream.c
index ff2ca3379..69bb3c7cf 100644
--- a/example/ipsec/odp_ipsec_stream.c
+++ b/example/ipsec/odp_ipsec_stream.c
@@ -271,7 +271,7 @@ odp_packet_t create_ipv4_packet(stream_db_entry_t *stream,
inner_ip->frag_offset = 0;
inner_ip->src_addr = odp_cpu_to_be_32(stream->src_ip);
inner_ip->dst_addr = odp_cpu_to_be_32(stream->dst_ip);
- inner_ip->chksum = odp_chksum(inner_ip, sizeof(*inner_ip));
+ inner_ip->chksum = odph_chksum(inner_ip, sizeof(*inner_ip));
data += sizeof(*inner_ip);
}
@@ -292,7 +292,7 @@ odp_packet_t create_ipv4_packet(stream_db_entry_t *stream,
/* Close ICMP */
icmp->chksum = 0;
- icmp->chksum = odp_chksum(icmp, data - (uint8_t *)icmp);
+ icmp->chksum = odph_chksum(icmp, data - (uint8_t *)icmp);
/* Close ESP if specified */
if (esp) {