HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / epan / dissectors / packet-erf.h
blobd90ff58bbcd9e75fd95814629ebc15b0de2dc18c
1 /* packet-erf.h
3 * $Id$
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #ifndef __PACKET_ERF_H__
25 #define __PACKET_ERF_H__
27 /** Gets the ERF extension header of the specified type,
29 * Afterindex may be NULL, or set to a gint initialized to -1 and the function
30 * re-called in a loop to iterate through extension headers of hdrtype type.
32 * Note: pinfo is assumed to be a pointer to an ERF pinfo.
34 * @param pinfo Packet info of ERF record to get extension header of.
35 * @param hdrtype Type code of extension header. More headers bit is ignored.
36 * @param afterinstance Pointer to header index to begin searching at,
37 * exclusive.
38 * Updated with index of extension header found. If NULL or initialized to -1
39 * begin searching at the first extension header.
41 * @returns Pointer to extension header or NULL.
42 * */
43 guint64* erf_get_ehdr(packet_info *pinfo, guint8 hdrtype, gint* afterinstance);
44 #endif /* packet-erf.h */