src/dpdk/lib/librte_ip_frag/rte_ip_frag.h
static inline struct ipv6_extension_fragment *
rte_ipv6_frag_get_ipv6_fragment_header(struct rte_ipv6_hdr *hdr)
{
	if (hdr->proto == IPPROTO_FRAGMENT) {
		return (struct ipv6_extension_fragment *) ++hdr;
	}
	else
		return NULL;
}
/**
 * Return a pointer to the packet's fragment header, if found.
 * It only looks at the extension header that's right after the fixed IPv6
 * header, and doesn't follow the whole chain of extension headers.
 *
 * @param hdr
 *   Pointer to the IPv6 header.
 * @return
 *   Pointer to the IPv6 fragment extension header, or NULL if it's not
 *   present.
 */
Return a pointer to the packet's fragment header, if found.
It only looks at the extension header that's right after the fixed IPv6
header, and doesn't follow the whole chain of extension headers.

@param hdr
Pointer to the IPv6 header.
@return
Pointer to the IPv6 fragment extension header, or NULL if it's not
present.
Return a pointer to the packet ' s fragment header if found . It only looks at the extension header that ' s right after the fixed IPv6 header and doesn ' t follow the whole chain of extension headers . @param hdr Pointer to the IPv6 header . @return Pointer to the IPv6 fragment extension header or NULL if it ' s not present .
static inline struct ipv6_extension_fragment *
rte_ipv6_frag_get_ipv6_fragment_header(struct rte_ipv6_hdr *hdr)
{
	if (hdr->proto == IPPROTO_FRAGMENT) {
		return (struct ipv6_extension_fragment *) ++hdr;
	}
	else
		return NULL;
}
static inline struct ipv6_extension_fragment * rte_ipv6_frag_get_ipv6_fragment_header ( struct rte_ipv6_hdr * hdr ) { if ( hdr -> proto == IPPROTO_FRAGMENT ) { return ( struct ipv6_extension_fragment * ) ++ hdr ; } else return NULL ; }
Return a pointer to the packet's fragment header, if found.
Return a pointer to the packet ' s fragment header if found .