aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorChristophe Milard <christophe.milard@linaro.org>2016-01-27 15:59:41 +0100
committerMaxim Uvarov <maxim.uvarov@linaro.org>2016-02-08 20:45:24 +0300
commit2c4f0006c83a17ab910ff275f3fbe8a468be6e5c (patch)
treee3b5574567b3f51fc209c02cf1e945b65a9ca218 /example
parent6538ae64a15cc2c9467ca3c577c28ce2c655297b (diff)
api: endian: rename endian types with odp_ prefix
The following types: uint16le_t, uint16be_t, uint32le_t, uint32be_t, uint64le_t, uint64be_t, uint16sum_t, uint32sum_t defined in the api and in platform/linux-generic/include/odp/plat/byteorder_types.h were not odp_* prefixed and could create name clash with an applications. This patch prefixes those with odp_*, suppressing "int" for shortness. e.g. uint16le_t becomes odp_u16le_t Also modifies files using these types, of course. Signed-off-by: Christophe Milard <christophe.milard@linaro.org> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'example')
-rw-r--r--example/classifier/odp_classifier.c2
-rw-r--r--example/ipsec/odp_ipsec_cache.h2
-rw-r--r--example/ipsec/odp_ipsec_stream.c2
-rw-r--r--example/packet/odp_pktio.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/example/classifier/odp_classifier.c b/example/classifier/odp_classifier.c
index 5a8cd37fc..9e5bec912 100644
--- a/example/classifier/odp_classifier.c
+++ b/example/classifier/odp_classifier.c
@@ -667,7 +667,7 @@ static void swap_pkt_addrs(odp_packet_t pkt_tbl[], unsigned len)
odph_ethhdr_t *eth;
odph_ethaddr_t tmp_addr;
odph_ipv4hdr_t *ip;
- uint32be_t ip_tmp_addr; /* tmp ip addr */
+ odp_u32be_t ip_tmp_addr; /* tmp ip addr */
unsigned i;
for (i = 0; i < len; ++i) {
diff --git a/example/ipsec/odp_ipsec_cache.h b/example/ipsec/odp_ipsec_cache.h
index 91d9d7e14..56be9d86b 100644
--- a/example/ipsec/odp_ipsec_cache.h
+++ b/example/ipsec/odp_ipsec_cache.h
@@ -57,7 +57,7 @@ typedef struct ipsec_cache_entry_s {
uint32_t esp_seq; /**< ESP TX sequence number */
uint32_t ah_seq; /**< AH TX sequence number */
uint8_t iv[MAX_IV_LEN]; /**< ESP IV storage */
- uint16be_t tun_hdr_id; /**< Tunnel header IP ID */
+ odp_u16be_t tun_hdr_id; /**< Tunnel header IP ID */
} state;
} ipsec_cache_entry_t;
diff --git a/example/ipsec/odp_ipsec_stream.c b/example/ipsec/odp_ipsec_stream.c
index 9c2722e9d..ff2ca3379 100644
--- a/example/ipsec/odp_ipsec_stream.c
+++ b/example/ipsec/odp_ipsec_stream.c
@@ -36,7 +36,7 @@
* Stream packet header
*/
typedef struct ODP_PACKED stream_pkt_hdr_s {
- uint64be_t magic; /**< Stream magic value for verification */
+ odp_u64be_t magic; /**< Stream magic value for verification */
uint8_t data[0]; /**< Incrementing data stream */
} stream_pkt_hdr_t;
diff --git a/example/packet/odp_pktio.c b/example/packet/odp_pktio.c
index 75e92ac7e..13f044f2c 100644
--- a/example/packet/odp_pktio.c
+++ b/example/packet/odp_pktio.c
@@ -502,7 +502,7 @@ static void swap_pkt_addrs(odp_packet_t pkt_tbl[], unsigned len)
odph_ethhdr_t *eth;
odph_ethaddr_t tmp_addr;
odph_ipv4hdr_t *ip;
- uint32be_t ip_tmp_addr; /* tmp ip addr */
+ odp_u32be_t ip_tmp_addr; /* tmp ip addr */
unsigned i;
for (i = 0; i < len; ++i) {