4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 2001 Gerald Combs
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27 #include "syntax-tree.h"
29 #include <epan/proto.h>
32 /* Passed back to user */
37 gboolean *attempted_load;
38 int *interesting_fields;
39 int num_interesting_fields;
43 /* Syntax Tree stuff */
45 gboolean syntax_error;
47 GHashTable *loaded_fields;
48 GHashTable *interesting_fields;
53 /* Constructor/Destructor prototypes for Lemon Parser */
54 void *DfilterAlloc(void* (*)(gulong));
55 void DfilterFree(void*, void (*)(void *));
56 void Dfilter(void*, int, stnode_t*, dfwork_t*);
59 extern stnode_t *df_lval;
61 /* Return value for error in scanner. */
62 #define SCAN_FAILED -1 /* not 0, as that means end-of-input */
64 /* Set dfilter_error_msg_buf and dfilter_error_msg */
66 dfilter_fail(const char *format, ...);
69 DfilterTrace(FILE *TraceFILE, char *zTracePrompt);