aboutsummaryrefslogtreecommitdiffstats
path: root/packet-osi.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-01-20 19:16:41 +0000
committerGuy Harris <guy@alum.mit.edu>2000-01-20 19:16:41 +0000
commit0ce1dab01d875ce868b7a9feab29dee995f0968a (patch)
tree7587dae6bf6f3e76e48b4fdc84a4fee0a7ac2242 /packet-osi.c
parentea77c943c51d098265abf7f01f562fca7aac9599 (diff)
Gerrit Gehnen's patch to add support for the "Inactive Subset" of the
ISO 8473 CLNP protocol. svn path=/trunk/; revision=1513
Diffstat (limited to 'packet-osi.c')
-rw-r--r--packet-osi.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/packet-osi.c b/packet-osi.c
index 180c46105e..891d5f71d4 100644
--- a/packet-osi.c
+++ b/packet-osi.c
@@ -1,7 +1,7 @@
/* packet-osi.c
* Routines for ISO/OSI network and transport protocol packet disassembly
*
- * $Id: packet-osi.c,v 1.16 2000/01/13 06:07:53 guy Exp $
+ * $Id: packet-osi.c,v 1.17 2000/01/20 19:16:33 guy Exp $
* Laurent Deniel <deniel@worldnet.fr>
*
* Ethereal - Network traffic analyzer
@@ -1450,6 +1450,18 @@ void dissect_clnp(const u_char *pd, int offset, frame_data *fd,
u_char src_len, dst_len, nsel;
u_int first_offset = offset;
+ if (pd[offset]==NLPID_NULL) {
+ if (tree) {
+ ti = proto_tree_add_item(tree, proto_clnp, offset, 1, NULL);
+ clnp_tree = proto_item_add_subtree(ti, ett_clnp);
+ proto_tree_add_item_format(clnp_tree, hf_clnp_id, offset, 1,
+ clnp.cnf_proto_id,
+ "Inactive subset");
+ }
+ dissect_cotp(pd, offset+1, fd, tree);
+ return;
+ }
+
if (fd->cap_len < offset + sizeof(clnp)) {
dissect_data(pd, offset, fd, tree);
return;
@@ -1601,6 +1613,7 @@ void dissect_osi(const u_char *pd, int offset, frame_data *fd,
/* ESIS is not currently decoded */
case NLPID_ISO8473_CLNP:
+ case NLPID_NULL: /* "Inactive Subset" of ISO 8473 CLNP */
if (check_col(fd, COL_PROTOCOL)) {
col_add_str(fd, COL_PROTOCOL, "CLNP");
}