diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-12-08 21:36:53 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-12-08 21:36:53 +0000 |
commit | d06dc0727a5a4d8e952a96ea275190a8298d725b (patch) | |
tree | babff8fb96181ceae0b8420269ce69214cada67a /packet-mtp3.h | |
parent | 556c517b888e371846034e69df336ea79d6fe655 (diff) | |
download | wireshark-d06dc0727a5a4d8e952a96ea275190a8298d725b.tar.gz wireshark-d06dc0727a5a4d8e952a96ea275190a8298d725b.tar.bz2 wireshark-d06dc0727a5a4d8e952a96ea275190a8298d725b.zip |
From Michael Lum: support an AT_SS7PC address type for SS7 point codes,
and set the direction in pinfo for SS7 packets based on source and
destination addresses.
svn path=/trunk/; revision=9209
Diffstat (limited to 'packet-mtp3.h')
-rw-r--r-- | packet-mtp3.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/packet-mtp3.h b/packet-mtp3.h index 950465e9aa..f8b566bfb2 100644 --- a/packet-mtp3.h +++ b/packet-mtp3.h @@ -1,6 +1,6 @@ /* packet-mtp3.h * - * $Id: packet-mtp3.h,v 1.3 2003/04/10 18:52:11 guy Exp $ + * $Id: packet-mtp3.h,v 1.4 2003/12/08 21:36:53 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -29,6 +29,20 @@ typedef enum { extern Standard_Type mtp3_standard; +typedef enum { + MTP3_NET_ADDR_FMT_DEC = 1, + MTP3_NET_ADDR_FMT_HEX = 2, + MTP3_NET_ADDR_FMT_NI_DEC = 3, + MTP3_NET_ADDR_FMT_NI_HEX = 4, + MTP3_NET_ADDR_FMT_DASHED = 5 +} mtp3_net_addr_fmt_e; + +typedef struct _mtp3_addr_pc_t { + mtp3_net_addr_fmt_e type; + guint32 pc; + guint8 ni; +} mtp3_addr_pc_t; + #define ITU_PC_LENGTH 2 #define ITU_PC_MASK 0x3FFF @@ -37,7 +51,10 @@ extern Standard_Type mtp3_standard; #define ANSI_MEMBER_OFFSET 0 #define ANSI_CLUSTER_OFFSET 1 #define ANSI_NETWORK_OFFSET 2 +#define ANSI_PC_MASK 0xFFFFFF #define ANSI_NETWORK_MASK 0x0000FF #define ANSI_CLUSTER_MASK 0x00FF00 #define ANSI_MEMBER_MASK 0xFF0000 #define ANSI_PC_STRING_LENGTH 16 + +extern void mtp3_addr_to_str_buf(const guint8 *data, gchar *buf); |