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>
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1998 Gerald Combs
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 * http://www.ietf.org/rfc/rfc3320.txt?number=3320
27 * http://www.ietf.org/rfc/rfc3321.txt?number=3321
29 * http://www.ietf.org/internet-drafts/draft-ietf-rohc-sigcomp-impl-guide-03.txt
30 * http://www.ietf.org/internet-drafts/draft-ietf-rohc-sigcomp-sip-01.txt
33 #ifndef SIGCOMP_STATE_HDLR_H
34 #define SIGCOMP_STATE_HDLR_H
36 extern const value_string result_code_vals
[];
37 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
,
38 guint16
*state_address
, guint16
*state_instruction
, gint hf_id
);
40 extern void udvm_state_create(guint8
*state_buff
,guint8
*state_identifier_buff
,guint16 p_id_length
);
41 extern void udvm_state_free(guint8 buff
[],guint16 p_id_start
,guint16 p_id_length
);
43 extern void sigcomp_init_udvm(void);
45 #define STATE_BUFFER_SIZE 20
46 #define STATE_MIN_ACCESS_LEN 6
49 /* SIGCOMP_STATE_HDLR_H */