aboutsummaryrefslogtreecommitdiffstats
path: root/packet-sdp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-01-25 06:14:14 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-01-25 06:14:14 +0000
commitd6703cb426bce30ebc61f4b4afe7c0858440500e (patch)
treeb1874a0778b3163345ccecf56d1ae88804b2f7cb /packet-sdp.c
parent3aaaefdd5c4f70166fc76793d24450c8b1fd21a0 (diff)
Remove more "CHECK_DISPLAY_AS_DATA()" calls and "pinfo->current_proto ="
statements. Move the setting of the Protocol column in various dissectors before anything is fetched from the packet, and also clear the Info column at that point in those and some other dissectors, so that if an exception is thrown, the columns don't reflect the previous protocol. "Tvbuffify" the Mobile IP dissector (it took old-style arguments, and then converted them into tvbuff arguments, so there wasn't much to do, other than to fix references to "fd" to refer to "pinfo->fd"). In the SCTP dissector, refer to the port type and source and destination ports through "pinfo" rather than through the global "pi", as it's a tvbuffified dissector. In the SMTP and Time Protocol dissectors, use "pinfo->match_port" rather than "TCP_PORT_SMTP" when checking whether the packet is a request or reply, just in case somebody makes a non-standard port be dissected as SMTP or Time. (Also, remove a bogus comment from the Time dissector; it was probably cut-and-pasted from the TFTP dissector.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2938 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-sdp.c')
-rw-r--r--packet-sdp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/packet-sdp.c b/packet-sdp.c
index 73c465047c..b76019c05b 100644
--- a/packet-sdp.c
+++ b/packet-sdp.c
@@ -4,7 +4,7 @@
* Jason Lango <jal@netapp.com>
* Liberally copied from packet-http.c, by Guy Harris <guy@alum.mit.edu>
*
- * $Id: packet-sdp.c,v 1.19 2001/01/09 06:31:43 guy Exp $
+ * $Id: packet-sdp.c,v 1.20 2001/01/25 06:14:14 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -61,10 +61,6 @@ dissect_sdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
const char *typename;
int datalen;
- CHECK_DISPLAY_AS_DATA(proto_sdp, tvb, pinfo, tree);
-
- pinfo->current_proto = "SDP";
-
/*
* As RFC 2327 says, "SDP is purely a format for session
* description - it does not incorporate a transport protocol,