aboutsummaryrefslogtreecommitdiffstats
path: root/packet-eth.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-11-20 03:27:02 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-11-20 03:27:02 +0000
commita0704a2c7b84684284b7deba2e08928e3e0030ca (patch)
treed6f7e427622eaed08d4e90a62433213ecba5fc7e /packet-eth.c
parent259982160a498817f378ef708efd9dfea55f48a3 (diff)
The code for Ethernet II was using proto_tree_add_item_format() even
though it doesn't need to. (I missed that section when I converted packet-eth.c to use hfinfo fields). Fixed. svn path=/trunk/; revision=1073
Diffstat (limited to 'packet-eth.c')
-rw-r--r--packet-eth.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/packet-eth.c b/packet-eth.c
index ee05abdbb2..8016337526 100644
--- a/packet-eth.c
+++ b/packet-eth.c
@@ -1,7 +1,7 @@
/* packet-eth.c
* Routines for ethernet packet disassembly
*
- * $Id: packet-eth.c,v 1.23 1999/11/19 05:12:50 gram Exp $
+ * $Id: packet-eth.c,v 1.24 1999/11/20 03:27:02 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -185,13 +185,8 @@ dissect_eth(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
fh_tree = proto_item_add_subtree(ti, ett_ether2);
- proto_tree_add_item_format(fh_tree, hf_eth_dst, offset+0, 6, &pd[offset+0],
- "Destination: %s (%s)", ether_to_str((guint8 *) &pd[offset+0]),
- get_ether_name((u_char *) &pd[offset+0]));
-
- proto_tree_add_item_format(fh_tree, hf_eth_src, offset+6, 6, &pd[offset+6],
- "Source: %s (%s)", ether_to_str((guint8 *) &pd[offset+6]),
- get_ether_name((u_char *) &pd[offset+6]));
+ proto_tree_add_item(fh_tree, hf_eth_dst, offset+0, 6, &pd[offset+0]);
+ proto_tree_add_item(fh_tree, hf_eth_src, offset+6, 6, &pd[offset+6]);
}
}
offset += ETH_HEADER_SIZE;