3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef __PACKET_ERF_H__
11 #define __PACKET_ERF_H__
13 /** Gets the ERF extension header of the specified type,
15 * Afterindex may be NULL, or set to a int initialized to -1 and the function
16 * re-called in a loop to iterate through extension headers of hdrtype type.
18 * Note: pinfo is assumed to be a pointer to an ERF pinfo.
20 * @param pinfo Packet info of ERF record to get extension header of.
21 * @param hdrtype Type code of extension header. More headers bit is ignored.
22 * @param afterinstance Pointer to header index to begin searching at,
24 * Updated with index of extension header found. If NULL or initialized to -1
25 * begin searching at the first extension header.
27 * @returns Pointer to extension header or NULL.
29 uint64_t* erf_get_ehdr(packet_info
*pinfo
, uint8_t hdrtype
, int* afterinstance
);
30 #endif /* packet-erf.h */