diff options
author | Gerald Combs <gerald@wireshark.org> | 1998-11-17 04:29:13 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 1998-11-17 04:29:13 +0000 |
commit | 6ca358948b8c5aa99a4e0db8595f601ab834e76e (patch) | |
tree | 750ab11a6661c391b126d4ce990b7fc01cb98d46 /packet-rip.c | |
parent | 8d616b03429fe2185782f5153d7b187a44698b5d (diff) | |
download | wireshark-6ca358948b8c5aa99a4e0db8595f601ab834e76e.tar.gz |
* Added column formatting functionality.
* Added check_col(), add_col_str() and add_col_fmt() to replace references
to ft->win_info.
* Added column prefs handling code.
svn path=/trunk/; revision=97
Diffstat (limited to 'packet-rip.c')
-rw-r--r-- | packet-rip.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-rip.c b/packet-rip.c index 589061fdd1..ae5f251678 100644 --- a/packet-rip.c +++ b/packet-rip.c @@ -2,7 +2,7 @@ * Routines for RIPv1 and RIPv2 packet disassembly * (c) Copyright Hannes R. Boehm <hannes@boehm.org> * - * $Id: packet-rip.c,v 1.3 1998/09/27 22:12:38 gerald Exp $ + * $Id: packet-rip.c,v 1.4 1998/11/17 04:29:04 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -86,10 +86,10 @@ dissect_rip(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) { } - if (fd->win_info[COL_NUM]) { - strcpy(fd->win_info[COL_PROTOCOL], version[rip_header->version] ); - sprintf(fd->win_info[COL_INFO], "%s", packet_type[rip_header->command]); - } + if (check_col(fd, COL_PROTOCOL)) + col_add_str(fd, COL_PROTOCOL, version[rip_header->version] ); + if (check_col(fd, COL_INFO)) + col_add_str(fd, COL_INFO, packet_type[rip_header->command]); if (tree) { ti = add_item_to_tree(GTK_WIDGET(tree), offset, (fd->cap_len - offset), "Routing Information Protocol"); |