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-ppp.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'packet-ppp.c') diff --git a/packet-ppp.c b/packet-ppp.c index c0dc47f9b3..546e1a3d45 100644 --- a/packet-ppp.c +++ b/packet-ppp.c @@ -1,7 +1,7 @@ /* packet-ppp.c * Routines for ppp packet disassembly * - * $Id: packet-ppp.c,v 1.3 1998/09/25 23:24:02 gerald Exp $ + * $Id: packet-ppp.c,v 1.4 1998/09/27 22:12:37 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -32,8 +32,8 @@ #include #include -#include "packet.h" #include "ethereal.h" +#include "packet.h" void dissect_ppp( const u_char *pd, frame_data *fd, GtkTree *tree ) { @@ -46,11 +46,11 @@ dissect_ppp( const u_char *pd, frame_data *fd, GtkTree *tree ) { /* load the top pane info. This should be overwritten by the next protocol in the stack */ - if(fd->win_info[0]) { - strcpy(fd->win_info[1], "N/A" ); - strcpy(fd->win_info[2], "N/A" ); - strcpy(fd->win_info[3], "N/A" ); - strcpy(fd->win_info[4], "PPP" ); + if(fd->win_info[COL_NUM]) { + strcpy(fd->win_info[COL_SOURCE], "N/A" ); + strcpy(fd->win_info[COL_DESTINATION], "N/A" ); + strcpy(fd->win_info[COL_PROTOCOL], "N/A" ); + strcpy(fd->win_info[COL_INFO], "PPP" ); } /* populate a tree in the second pane with the status of the link -- cgit v1.2.3