aboutsummaryrefslogtreecommitdiffstats
path: root/packet-isl.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2000-03-20 22:22:45 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2000-03-20 22:22:45 +0000
commita56b23acd8cfefb2f0743c3f1492f15f8b73caa2 (patch)
tree34f7520df4d999a7e9b2e65012f9b7f75a1838c1 /packet-isl.c
parent12011ce127bd4aad93894a443e68770e5f83f256 (diff)
Add fields tr.addr, fddi.addr, and isl.addr that act like eth.addr, matching
either *.src or *.dst svn path=/trunk/; revision=1732
Diffstat (limited to 'packet-isl.c')
-rw-r--r--packet-isl.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/packet-isl.c b/packet-isl.c
index ff0a626ba4..b821c7d095 100644
--- a/packet-isl.c
+++ b/packet-isl.c
@@ -1,7 +1,7 @@
/* packet-isl.c
* Routines for Cisco ISL Ethernet header disassembly
*
- * $Id: packet-isl.c,v 1.6 2000/03/12 04:47:41 gram Exp $
+ * $Id: packet-isl.c,v 1.7 2000/03/20 22:22:45 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -58,6 +58,7 @@ static int hf_isl_type = -1;
static int hf_isl_user_eth = -1;
static int hf_isl_user = -1;
static int hf_isl_src = -1;
+static int hf_isl_addr = -1;
static int hf_isl_len = -1;
static int hf_isl_hsa = -1;
static int hf_isl_vlan_id = -1;
@@ -161,6 +162,7 @@ dissect_isl(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
"ISL");
fh_tree = proto_item_add_subtree(ti, ett_isl);
proto_tree_add_item(fh_tree, hf_isl_dst, offset+0, 6, &pd[offset+0]);
+ proto_tree_add_item_hidden(fh_tree, hf_isl_addr, offset+0, 6, &pd[offset+0]);
proto_tree_add_item(fh_tree, hf_isl_type, offset+5, 1, pd[offset+5]);
switch (type) {
@@ -176,6 +178,7 @@ dissect_isl(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
break;
}
proto_tree_add_item(fh_tree, hf_isl_src, offset+6, 6, &pd[offset+6]);
+ proto_tree_add_item_hidden(fh_tree, hf_isl_addr, offset+6, 6, &pd[offset+6]);
length = pntohs(&pd[offset+12]);
proto_tree_add_item(fh_tree, hf_isl_len, offset+12, 2, length);
@@ -249,6 +252,9 @@ proto_register_isl(void)
{ &hf_isl_src,
{ "Source", "isl.src", FT_ETHER, BASE_NONE, NULL, 0x0,
"Source Hardware Address" }},
+ { &hf_isl_addr,
+ { "Source or Destination Address", "isl.addr", FT_ETHER, BASE_NONE, NULL, 0x0,
+ "Source or Destination Hardware Address" }},
{ &hf_isl_len,
{ "Length", "isl.len", FT_UINT16, BASE_DEC, NULL, 0x0,
"" }},