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-dns.c | |
parent | 8d616b03429fe2185782f5153d7b187a44698b5d (diff) |
* 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-dns.c')
-rw-r--r-- | packet-dns.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-dns.c b/packet-dns.c index 21f7a67be0..5416706934 100644 --- a/packet-dns.c +++ b/packet-dns.c @@ -1,7 +1,7 @@ /* packet-dns.c * Routines for DNS packet disassembly * - * $Id: packet-dns.c,v 1.8 1998/11/12 00:06:26 gram Exp $ + * $Id: packet-dns.c,v 1.9 1998/11/17 04:28:51 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -463,10 +463,10 @@ dissect_dns(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) { query = ! (flags & (1 << 15)); - if (fd->win_info[COL_NUM]) { - strcpy(fd->win_info[COL_PROTOCOL], "DNS (UDP)"); - strcpy(fd->win_info[COL_INFO], query ? "Query" : "Response"); - } + if (check_col(fd, COL_PROTOCOL)) + col_add_str(fd, COL_PROTOCOL, "DNS (UDP)"); + if (check_col(fd, COL_INFO)) + col_add_str(fd, COL_INFO, query ? "Query" : "Response"); if (tree) { ti = add_item_to_tree(GTK_WIDGET(tree), offset, 4, |