aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-osi.h
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-12-23 01:16:00 +0000
committerMichael Mann <mmann78@netscape.net>2013-12-23 01:16:00 +0000
commit0ab7d560f3c5ec6e51889252346dec9fa6ee6812 (patch)
tree3290809d24339f490231a9d719391908d09d87f5 /epan/dissectors/packet-osi.h
parentdf25b7a7e0a658d9fcd0b25b32d6c4d0b9c7433c (diff)
Make (most) fields within packet-osi-options.c filterable.
Not sure how to handle the filter names. Even though OSI isn't a "protocol", there's enough commonality to justify a "dissector". Also not sure if packet-osi-options.c should just be merged with packet-osi.c to make the relationship more obvious (both files aren't that big) svn path=/trunk/; revision=54373
Diffstat (limited to 'epan/dissectors/packet-osi.h')
-rw-r--r--epan/dissectors/packet-osi.h22
1 files changed, 3 insertions, 19 deletions
diff --git a/epan/dissectors/packet-osi.h b/epan/dissectors/packet-osi.h
index 1162ea3941..4ddec47b0f 100644
--- a/epan/dissectors/packet-osi.h
+++ b/epan/dissectors/packet-osi.h
@@ -55,25 +55,6 @@
#define OSI_PDU_TYPE_MASK 0x1f
#define BIS_PDU_TYPE MASK 0xff
-
-#define BIT_1 0x01
-#define BIT_2 0x02
-#define BIT_3 0x04
-#define BIT_4 0x08
-#define BIT_5 0x10
-#define BIT_6 0x20
-#define BIT_7 0x40
-#define BIT_8 0x80
-
-#define BIT_9 0x0100
-#define BIT_10 0x0200
-#define BIT_11 0x0400
-#define BIT_12 0x0800
-#define BIT_13 0x1000
-#define BIT_14 0x2000
-#define BIT_15 0x4000
-#define BIT_16 0x8000
-
/*
* published API functions
*/
@@ -85,6 +66,9 @@ typedef enum {
CKSUM_NOT_OK /* checksum is not OK */
} cksum_status_t;
+/* Exposed to be used by packet-osi-options.c */
+extern int proto_osi;
+
extern cksum_status_t calc_checksum(tvbuff_t *, int, guint, guint);
extern cksum_status_t check_and_get_checksum(tvbuff_t *, int, guint, guint, int, guint16*);
extern gboolean check_atn_ec_32(tvbuff_t *tvb, guint tpdu_len, guint offset_ec_32_val, guint offset_iso8073_val, guint clnp_dst_len, const guint8 *clnp_dst, guint clnp_src_len, const guint8 *clnp_src);