Use "pinfo", not "pi", to get packet info.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 3 Feb 2001 08:07:04 +0000 (08:07 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 3 Feb 2001 08:07:04 +0000 (08:07 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2984 f5534014-38df-0310-8fa8-9805f1628bb7

packet-irc.c

index 5b3e325913e3a14639652062e13978d24e5c446c..8a09ac5ffd61b6145e203b7a23c0e2f13896e4ad 100644 (file)
@@ -1,7 +1,7 @@
 /* packet-irc.c
- * Routines for MSX irc packet dissection
+ * Routines for IRC packet dissection
  *
- * $Id: packet-irc.c,v 1.12 2001/02/03 07:58:27 guy Exp $
+ * $Id: packet-irc.c,v 1.13 2001/02/03 08:07:04 guy Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@zing.org>
@@ -87,7 +87,7 @@ dissect_irc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        if (check_col(pinfo->fd, COL_INFO))
        {
                col_set_str(pinfo->fd, COL_INFO,
-                   (pi.match_port == pi.destport) ? "Request" : "Response");
+                   (pinfo->match_port == pinfo->destport) ? "Request" : "Response");
        }
 
        if (tree)
@@ -115,7 +115,7 @@ dissect_irc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
 
                        if (linelen != 0)
                        {
-                               if (pi.match_port == pi.destport)
+                               if (pinfo->match_port == pinfo->destport)
                                {
                                        dissect_irc_request(irc_tree, tvb,
                                            offset, next_offset - offset,