34 #ifndef _RTE_IP_FRAG_H_
35 #define _RTE_IP_FRAG_H_
85 TAILQ_ENTRY(ip_frag_pkt) lru;
86 struct ip_frag_key key;
94 #define IP_FRAG_DEATH_ROW_LEN 32
97 struct rte_ip_frag_death_row {
127 struct ip_frag_pkt
pkt[0];
145 } __attribute__((__packed__));
208 uint16_t nb_pkts_out,
251 rte_ipv6_frag_get_ipv6_fragment_header(
struct ipv6_hdr *hdr)
253 if (hdr->
proto == IPPROTO_FRAGMENT) {
285 uint16_t nb_pkts_out, uint16_t mtu_size,
321 rte_ipv4_frag_pkt_is_fragmented(
const struct ipv4_hdr * hdr) {
322 uint16_t flag_offset, ip_flag, ip_ofs;
325 ip_ofs = (uint16_t)(flag_offset & IPV4_HDR_OFFSET_MASK);
326 ip_flag = (uint16_t)(flag_offset & IPV4_HDR_MF_FLAG);
328 return ip_flag != 0 || ip_ofs != 0;
352 rte_ip_frag_table_statistics_dump(FILE * f,
const struct rte_ip_frag_tbl *tbl);