diff options
author | Gerald Combs <gerald@wireshark.org> | 1998-09-27 22:12:47 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 1998-09-27 22:12:47 +0000 |
commit | 2e7e493198543e3fdb4b404763b02a2ad22d180e (patch) | |
tree | 01aa8a843d84f24a66f7bd9af00e105efe1ffcdc /packet-null.c | |
parent | 385699d4310480e19aecf08dcff23e792667747a (diff) | |
download | wireshark-2e7e493198543e3fdb4b404763b02a2ad22d180e.tar.gz wireshark-2e7e493198543e3fdb4b404763b02a2ad22d180e.tar.bz2 wireshark-2e7e493198543e3fdb4b404763b02a2ad22d180e.zip |
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-null.c')
-rw-r--r-- | packet-null.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/packet-null.c b/packet-null.c index 95ae464cf6..574becfec8 100644 --- a/packet-null.c +++ b/packet-null.c @@ -1,7 +1,7 @@ /* packet-null.c * Routines for null packet disassembly * - * $Id: packet-null.c,v 1.1 1998/09/25 23:24:02 gerald Exp $ + * $Id: packet-null.c,v 1.2 1998/09/27 22:12:33 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -37,8 +37,8 @@ #include <sys/socket.h> #include <pcap.h> -#include "packet.h" #include "ethereal.h" +#include "packet.h" void dissect_null( const u_char *pd, frame_data *fd, GtkTree *tree ) { @@ -51,11 +51,11 @@ dissect_null( 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], "Null/Loopback" ); + 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], "Null/Loopback" ); } /* populate a tree in the second pane with the status of the link |