aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-osi.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-11-17 22:12:37 +0000
committerGuy Harris <guy@alum.mit.edu>2012-11-17 22:12:37 +0000
commit7ef91b394d9e2e1a96f187069ced4e02707cb9b2 (patch)
tree2dd1cc7fe0ef774435300fde47abe7ceb6c5d78b /epan/dissectors/packet-osi.h
parent9aaa01039bc4d90cdb3f1a53c7417637097df43b (diff)
Handle the pseudo-trailer for the ATN extended checksums by passing in
the source and destination address lengths and data, and adding them in, rather than by copying those fields to a fixed-size static buffer - that gets rid of a global variable (global variables considered harmful), and also means that we don't try to copy 24 bytes of length+address from packets that don't *have* 24 bytes of length+address (which caused exceptions to be thrown on some OSI captures I have). Construct some LI #defines out of other LI #defines, to make it a bit clearer why they have the values they do. Support the "additional information related to the clearing of the connection" variable part parameter of the COTP DR packet (which just means giving it a name, as its contents are user-defined - some HP-UX OSI stack appears to just stick in a string saying that it's said stack). Make the code that decodes the variable part of a DR packet look like the code that decodes the variable part of most other packets. For COTP CR packets, determine the class up front by checking whether the length is > 2. (At some point we might want to associate a class indication with the COTP connection, if we see the connection setup, and, if we have that indication, use it in preference to the heuristics.) Make the code to handle various length indicator values in the ATN case more like the code in the non-ATN case. Dissect the variable part of COTP ER packets. Fix tpyos (TDPU->TPDU, tdpu->tpdu) and typpoes (accross->across). Clean up white space. svn path=/trunk/; revision=46060
Diffstat (limited to 'epan/dissectors/packet-osi.h')
-rw-r--r--epan/dissectors/packet-osi.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-osi.h b/epan/dissectors/packet-osi.h
index 8b88d4d235..1162ea3941 100644
--- a/epan/dissectors/packet-osi.h
+++ b/epan/dissectors/packet-osi.h
@@ -86,8 +86,8 @@ typedef enum {
} cksum_status_t;
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 tdpu_len, guint offset_ec_32_val, guint offset_iso8073_val, guint clnp_pt_len, guint8 * clnp_pt_buffer);
-extern gboolean check_atn_ec_16( tvbuff_t *tvb, guint tdpu_len, guint offset_ec_16_val, guint offset_iso8073_val, guint clnp_pt_len, guint8 * clnp_pt_buffer );
+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);
+extern gboolean check_atn_ec_16(tvbuff_t *tvb, guint tpdu_len, guint offset_ec_16_val, guint offset_iso8073_val, guint clnp_dst_len, const guint8 *clnp_dst, guint clnp_src_len, const guint8 *clnp_src);
#endif /* _PACKET_OSI_H */