aboutsummaryrefslogtreecommitdiffstats
path: root/packet-lpd.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>1998-09-27 22:12:47 +0000
committerGerald Combs <gerald@wireshark.org>1998-09-27 22:12:47 +0000
commit2e7e493198543e3fdb4b404763b02a2ad22d180e (patch)
tree01aa8a843d84f24a66f7bd9af00e105efe1ffcdc /packet-lpd.c
parent385699d4310480e19aecf08dcff23e792667747a (diff)
Merged in a _huge_ patch from Guy Harris. It adds a time stap column,
generalizes the column printing code, adds a "frame" tree item to the tree view, and fixes a bunch of miscellaneous coding bugs. svn path=/trunk/; revision=31
Diffstat (limited to 'packet-lpd.c')
-rw-r--r--packet-lpd.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/packet-lpd.c b/packet-lpd.c
index 9770ad7575..39740b95f3 100644
--- a/packet-lpd.c
+++ b/packet-lpd.c
@@ -2,7 +2,7 @@
* Routines for LPR and LPRng packet disassembly
* Gilbert Ramirez <gram@verdict.uthscsa.edu>
*
- * $Id: packet-lpd.c,v 1.2 1998/09/16 03:22:07 gerald Exp $
+ * $Id: packet-lpd.c,v 1.3 1998/09/27 22:12:32 gerald Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -43,8 +43,8 @@
#include <pcap.h>
-#include "packet.h"
#include "ethereal.h"
+#include "packet.h"
#include "etypes.h"
enum lpr_type { request, response };
@@ -90,13 +90,13 @@ dissect_lpd(const u_char *pd, int offset, frame_data *fd, GtkTree *tree)
}
- if (fd->win_info[0]) {
- strcpy(fd->win_info[3], "LPD");
+ if (fd->win_info[COL_NUM]) {
+ strcpy(fd->win_info[COL_PROTOCOL], "LPD");
if (lpr_packet_type == request) {
- strcpy(fd->win_info[4], lpd_client_code[pd[offset]]);
+ strcpy(fd->win_info[COL_INFO], lpd_client_code[pd[offset]]);
}
else {
- strcpy(fd->win_info[4], "LPD response");
+ strcpy(fd->win_info[COL_INFO], "LPD response");
}
}