1 /* sigcomp_state_hdlr.c
2 * Routines making up the State handler of the Univerasl Decompressor Virtual Machine (UDVM)
3 * used for Signaling Compression (SigComp) dissection.
4 * Copyright 2004, Anders Broman <anders.broman@ericsson.com>
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.
24 * http://www.ietf.org/rfc/rfc3320.txt?number=3320
25 * http://www.ietf.org/rfc/rfc3321.txt?number=3321
27 * http://www.ietf.org/internet-drafts/draft-ietf-rohc-sigcomp-impl-guide-03.txt
28 * http://www.ietf.org/internet-drafts/draft-ietf-rohc-sigcomp-sip-01.txt
31 #ifndef SIGCOMP_STATE_HDLR_H
32 #define SIGCOMP_STATE_HDLR_H
34 extern const value_string result_code_vals[];
35 extern int udvm_state_access(tvbuff_t *tvb, proto_tree *tree,guint8 *buff,guint16 p_id_start, guint16 p_id_length, guint16 state_begin, guint16 *state_length,
36 guint16 *state_address, guint16 *state_instruction, gint hf_id);
38 extern void udvm_state_create(guint8 *state_buff,guint8 *state_identifier_buff,guint16 p_id_length);
39 extern void udvm_state_free(guint8 buff[],guint16 p_id_start,guint16 p_id_length);
41 extern void sigcomp_init_udvm(void);
43 #define STATE_BUFFER_SIZE 20
44 #define STATE_MIN_ACCESS_LEN 6
47 /* SIGCOMP_STATE_HDLR_H */