packet-e212.h 2.72 KB
Newer Older
1 2 3 4
/* packet-e212.h
 * E212 tables
 * Copyright 2006, Anders Broman <anders.broman@ericsson.com>
 *
5 6
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
7 8 9 10 11 12 13 14 15 16 17 18 19 20
 * Copyright 1998 Gerald Combs
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
21
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 23 24 25 26
 */

#ifndef __PACKET_E212_H__
#define __PACKET_E212_H__

27
#include <epan/value_string.h>
28
#include "ws_symbol_export.h"
29

30
extern value_string_ext E212_codes_ext;
31

32
gchar* dissect_e212_mcc_mnc_wmem_packet_str(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, gboolean little_endian);
33

34
WS_DLL_PUBLIC
35
int dissect_e212_mcc_mnc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, gboolean little_endian);
36

37
WS_DLL_PUBLIC
Gerasimos Dimitriadis's avatar
Gerasimos Dimitriadis committed
38
int dissect_e212_mcc_mnc_in_address(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset);
39

40 41 42 43 44
/**
 *
 * Given a tvbuff, an offset into the tvbuff, and a length that starts
 * at that offset, fetch BCD encoded digits from a tvbuff starting from either
 * the low or high half byte, formatting the digits according to a digit
45 46
 * set of 0-9 returning "?" for overdecadic digits and then
 * create a string in the tree and a corresponding filter
47 48 49
 *
 * Note a tvbuff content of 0xf is considered a 'filler' and will end the
 * conversion.
50
 * A wmem allocated string will be returned.
51 52 53 54
 */
WS_DLL_PUBLIC
const gchar * dissect_e212_imsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, int length, gboolean skip_first);

55 56 57 58 59 60 61 62 63 64 65
/**
 *
 * Given a tvbuff, an offset into the tvbuff, and a length that starts
 * at that offset, fetch UTF8-encoded digits from the tvbuff and then
 * create a string in the tree and a corresponding filter.
 *
 * The wmem allocated string will be returned.
 */
WS_DLL_PUBLIC
const gchar * dissect_e212_utf8_imsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, int length);

66 67
#endif /* __PACKET_E212_H__ */

68 69 70 71 72 73 74 75 76 77 78 79
/*
 * Editor modelines  -  http://www.wireshark.org/tools/modelines.html
 *
 * Local variables:
 * c-basic-offset: 4
 * tab-width: 8
 * indent-tabs-mode: nil
 * End:
 *
 * vi: set shiftwidth=4 tabstop=8 expandtab:
 * :indentSize=4:tabSize=8:noTabs=true:
 */