diff options
author | Matias Elo <matias.elo@nokia.com> | 2023-08-24 17:51:04 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2023-10-23 09:25:59 +0300 |
commit | 5182ce145834f70501ff707f4790399d8512bb00 (patch) | |
tree | ada6f8e5d137e27d3e556e1883426875af441850 /example/ipsec_crypto | |
parent | e784307d5c78fd9874f560ddd07ada39ab038909 (diff) |
helper: icmp: remove and rename defines
Remove unused ICMP defines and add missing ODPH_ prefix to the remaining
ones.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'example/ipsec_crypto')
-rw-r--r-- | example/ipsec_crypto/odp_ipsec_stream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/ipsec_crypto/odp_ipsec_stream.c b/example/ipsec_crypto/odp_ipsec_stream.c index 0a0710a13..f8bc64eae 100644 --- a/example/ipsec_crypto/odp_ipsec_stream.c +++ b/example/ipsec_crypto/odp_ipsec_stream.c @@ -324,7 +324,7 @@ odp_packet_t create_ipv4_packet(stream_db_entry_t *stream, /* ICMP header so we can see it on wireshark */ icmp = (odph_icmphdr_t *)data; data += sizeof(*icmp); - icmp->type = ICMP_ECHO; + icmp->type = ODPH_ICMP_ECHO; icmp->code = 0; icmp->un.echo.id = odp_cpu_to_be_16(0x1234); icmp->un.echo.sequence = odp_cpu_to_be_16(stream->created); @@ -583,7 +583,7 @@ clear_packet: /* Verify ICMP header */ data += sizeof(*icmp); - if (ICMP_ECHO != icmp->type) + if (ODPH_ICMP_ECHO != icmp->type) return FALSE; if (0x1234 != odp_be_to_cpu_16(icmp->un.echo.id)) return FALSE; |