From 2e7e493198543e3fdb4b404763b02a2ad22d180e Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Sun, 27 Sep 1998 22:12:47 +0000 Subject: 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 --- packet-lpd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'packet-lpd.c') 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 * - * $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 @@ -43,8 +43,8 @@ #include -#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"); } } -- cgit v1.2.3