API Reference Manual 1.51.0
Loading...
Searching...
No Matches
odp_ipfragreass_helpers.h
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright (c) 2017-2018 Linaro Limited
3 */
4
7#ifndef ODP_FRAGREASS_PP_HELPERS_H_
8#define ODP_FRAGREASS_PP_HELPERS_H_
9
10#include <odp/helper/ip.h>
11
22odp_packet_t pack_udp_ipv4_packet(odp_pool_t pool, odp_u16be_t ip_id,
23 uint32_t max_size, uint32_t min_size);
24
31void shuffle(odp_packet_t *packets, int num_packets);
32
44int packet_memcmp(odp_packet_t a, odp_packet_t b, uint32_t offset_a,
45 uint32_t offset_b, uint32_t length);
46
55static inline uint32_t min(uint32_t a, uint32_t b)
56{
57 return a < b ? a : b;
58}
59
68static inline uint32_t max(uint32_t a, uint32_t b)
69{
70 return a > b ? a : b;
71}
72
73#endif
uint16_t odp_u16be_t
unsigned 16bit big endian