@@ -426,7 +426,7 @@ static odp_packet_t setup_icmp_pkt_ref(odp_pool_t pool,
ip->ttl = 64;
ip->tot_len = odp_cpu_to_be_16(args->appl.payload + ODPH_ICMPHDR_LEN +
ODPH_IPV4HDR_LEN);
- ip->proto = ODPH_IPPROTO_ICMPv4;
+ ip->proto = ODPH_IPPROTO_ICMPV4;
ip->id = 0;
ip->chksum = 0;
@@ -806,7 +806,7 @@ static void print_pkts(int thr, thread_args_t *thr_args,
thr_args->counters.ctr_udp_rcv++;
/* icmp */
- if (ip->proto == ODPH_IPPROTO_ICMPv4) {
+ if (ip->proto == ODPH_IPPROTO_ICMPV4) {
icmp = (odph_icmphdr_t *)(buf + offset);
process_icmp_pkt(thr_args, icmp, msg);
@@ -217,7 +217,7 @@ odp_packet_t create_ipv4_packet(stream_db_entry_t *stream,
ip->src_addr = odp_cpu_to_be_32(entry->tun_src_ip);
ip->dst_addr = odp_cpu_to_be_32(entry->tun_dst_ip);
} else {
- ip->proto = ODPH_IPPROTO_ICMPv4;
+ ip->proto = ODPH_IPPROTO_ICMPV4;
ip->src_addr = odp_cpu_to_be_32(stream->src_ip);
ip->dst_addr = odp_cpu_to_be_32(stream->dst_ip);
}
@@ -260,7 +260,7 @@ odp_packet_t create_ipv4_packet(stream_db_entry_t *stream,
inner_ip = (odph_ipv4hdr_t *)data;
memset((char *)inner_ip, 0, sizeof(*inner_ip));
inner_ip->ver_ihl = 0x45;
- inner_ip->proto = ODPH_IPPROTO_ICMPv4;
+ inner_ip->proto = ODPH_IPPROTO_ICMPV4;
inner_ip->id = odp_cpu_to_be_16(stream->id);
inner_ip->ttl = 64;
inner_ip->tos = 0;
@@ -518,7 +518,7 @@ odp_bool_t verify_ipv4_packet(stream_db_entry_t *stream,
icmp = (odph_icmphdr_t *)(inner_ip + 1);
data = (uint8_t *)icmp;
} else {
- if (ODPH_IPPROTO_ICMPv4 != ip->proto)
+ if (ODPH_IPPROTO_ICMPV4 != ip->proto)
return FALSE;
icmp = (odph_icmphdr_t *)data;
}
@@ -251,14 +251,14 @@ typedef struct ODP_PACKED {
* IP protocol values (IPv4:'proto' or IPv6:'next_hdr')
* @{*/
#define ODPH_IPPROTO_HOPOPTS 0x00 /**< IPv6 hop-by-hop options */
-#define ODPH_IPPROTO_ICMPv4 0x01 /**< Internet Control Message Protocol (1) */
+#define ODPH_IPPROTO_ICMPV4 0x01 /**< Internet Control Message Protocol (1) */
#define ODPH_IPPROTO_TCP 0x06 /**< Transmission Control Protocol (6) */
#define ODPH_IPPROTO_UDP 0x11 /**< User Datagram Protocol (17) */
#define ODPH_IPPROTO_ROUTE 0x2B /**< IPv6 Routing header (43) */
#define ODPH_IPPROTO_FRAG 0x2C /**< IPv6 Fragment (44) */
#define ODPH_IPPROTO_AH 0x33 /**< Authentication Header (51) */
#define ODPH_IPPROTO_ESP 0x32 /**< Encapsulating Security Payload (50) */
-#define ODPH_IPPROTO_ICMPv6 0x3A /**< Internet Control Message Protocol (58) */
+#define ODPH_IPPROTO_ICMPV6 0x3A /**< Internet Control Message Protocol (58) */
#define ODPH_IPPROTO_INVALID 0xFF /**< Reserved invalid by IANA */
/**@}*/