aboutsummaryrefslogtreecommitdiffstats
path: root/packet-raw.c
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>1998-09-27 22:12:47 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>1998-09-27 22:12:47 +0000
commit214a634bcfe889e619b41634937ce756759baead (patch)
tree01aa8a843d84f24a66f7bd9af00e105efe1ffcdc /packet-raw.c
parent7a0ec6611ba62ef31112df49e825f6104fccb39b (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-raw.c')
-rw-r--r--packet-raw.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/packet-raw.c b/packet-raw.c
index 1f02eaed20..b1ada2500d 100644
--- a/packet-raw.c
+++ b/packet-raw.c
@@ -1,7 +1,7 @@
/* packet-raw.c
* Routines for raw packet disassembly
*
- * $Id: packet-raw.c,v 1.2 1998/09/16 03:22:09 gerald Exp $
+ * $Id: packet-raw.c,v 1.3 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_raw( const u_char *pd, frame_data *fd, GtkTree *tree ) {
@@ -41,10 +41,10 @@ dissect_raw( 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[4], "Raw packet data" );
+ 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_INFO], "Raw packet data" );
}
/* populate a tree in the second pane with the status of the link