2 * helper functions for TPG
4 * (c) 2005, Luis E. Garcia Ontanon <luis@ontanon.org>
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
29 #include <epan/wmem/wmem.h>
30 #include <epan/packet.h>
32 extern guint32 tpg_ipv4(tvbparse_elem_t* e _U_) {
37 extern guint8* tpg_ipv6(tvbparse_elem_t* e _U_) {
42 extern tpg_parser_data_t* tpg_start(proto_tree* root_tree,
46 tvbparse_wanted_t* ignore,
48 tpg_parser_data_t* tpg = wmem_new(wmem_packet_scope(), tpg_parser_data_t);
49 tpg->private_data = private_data;
50 tpg->tt = tvbparse_init(tvb,offset,len,tpg,ignore);
52 tpg->stack = wmem_stack_new(wmem_packet_scope());
53 wmem_stack_push(tpg->stack, root_tree);
59 * Editor modelines - http://www.wireshark.org/tools/modelines.html
64 * indent-tabs-mode: nil
67 * vi: set shiftwidth=4 tabstop=8 expandtab:
68 * :indentSize=4:tabSize=8:noTabs=true: