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/generator/odp_generator.c | |
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/generator/odp_generator.c')
-rw-r--r-- | example/generator/odp_generator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c index cefe13683..b1d1f83e2 100644 --- a/example/generator/odp_generator.c +++ b/example/generator/odp_generator.c @@ -462,7 +462,7 @@ static odp_packet_t setup_icmp_pkt_ref(odp_pool_t pool, /* icmp */ icmp = (odph_icmphdr_t *)(buf + ODPH_ETHHDR_LEN + ODPH_IPV4HDR_LEN); - icmp->type = ICMP_ECHO; + icmp->type = ODPH_ICMP_ECHO; icmp->code = 0; icmp->un.echo.id = 0; icmp->un.echo.sequence = 0; @@ -813,7 +813,7 @@ static void process_icmp_pkt(int thr, thread_args_t *thr_args, uint64_t rtt_ms, rtt_us; odph_icmphdr_t *icmp = (odph_icmphdr_t *)_icmp; - if (icmp->type == ICMP_ECHOREPLY) { + if (icmp->type == ODPH_ICMP_ECHOREPLY) { thr_args->counters.ctr_icmp_reply_rcv++; memcpy(&tsend, (uint8_t *)icmp + ODPH_ICMPHDR_LEN, @@ -826,7 +826,7 @@ static void process_icmp_pkt(int thr, thread_args_t *thr_args, PRIu64 ".%.03" PRIu64" ms\n", thr, odp_be_to_cpu_16(icmp->un.echo.sequence), rtt_ms, rtt_us); - } else if (icmp->type == ICMP_ECHO) { + } else if (icmp->type == ODPH_ICMP_ECHO) { printf(" [%02i] ICMP Echo Request\n", thr); } } |