aboutsummaryrefslogtreecommitdiffstats
path: root/packet-pppoe.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-01-21 22:51:46 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-01-21 22:51:46 +0000
commit15ee7ec7e36a70a762fadfb7c506545f4a69b430 (patch)
treea5ba5f29141aafb5d72821e978779663274ab03c /packet-pppoe.c
parentba1b7ba06a1dc3a1db136febfb0a58a217f83b3c (diff)
Remove some more "CHECK_DISPLAY_AS_DATA()" calls and code to set
"pinfo->current_proto", in dissectors always called through dissector tables and handles. Make the IEEE 802.11 dissector static, as it's not called externally. Clear the Info column in the Linux cooked capture and 802.1q VLAN dissectors, before extracting anything from the packet, so that if an exception is thrown, the Info column doesn't reflect the previous protocol. Don't extract the encapsulated protocol in the VLAN dissector until you use it, so that if the frame contains the VLAN ID but not the encapsulated protocol, we at least put the VLAN ID into the protocol tree. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2927 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-pppoe.c')
-rw-r--r--packet-pppoe.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/packet-pppoe.c b/packet-pppoe.c
index 64a78430d2..58230d5050 100644
--- a/packet-pppoe.c
+++ b/packet-pppoe.c
@@ -1,7 +1,7 @@
/* packet-pppoe.c
* Routines for PPP Over Ethernet (PPPoE) packet disassembly (RFC2516)
*
- * $Id: packet-pppoe.c,v 1.15 2001/01/09 06:31:40 guy Exp $
+ * $Id: packet-pppoe.c,v 1.16 2001/01/21 22:51:46 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -163,10 +163,6 @@ dissect_pppoed(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
proto_tree *pppoe_tree;
proto_item *ti;
- CHECK_DISPLAY_AS_DATA(proto_pppoed, tvb, pinfo, tree);
-
- pinfo->current_proto = "PPPoED";
-
if (check_col(pinfo->fd, COL_PROTOCOL)) {
col_set_str(pinfo->fd,COL_PROTOCOL, "PPPoED");
}
@@ -239,10 +235,6 @@ dissect_pppoes(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
proto_item *ti;
tvbuff_t *next_tvb;
- CHECK_DISPLAY_AS_DATA(proto_pppoes, tvb, pinfo, tree);
-
- pinfo->current_proto = "PPPoES";
-
if (check_col(pinfo->fd, COL_PROTOCOL)) {
col_set_str(pinfo->fd,COL_PROTOCOL, "PPPoES");
}