aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ppp.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-ppp.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-ppp.c')
-rw-r--r--packet-ppp.c14
1 files changed, 7 insertions, 7 deletions
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 <gerald@zing.org>
@@ -32,8 +32,8 @@
#include <stdio.h>
#include <pcap.h>
-#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