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 /ethertype.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 'ethertype.c')
-rw-r--r-- | ethertype.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethertype.c b/ethertype.c index a42ad8b43f..0ae599aec7 100644 --- a/ethertype.c +++ b/ethertype.c @@ -2,7 +2,7 @@ * Routines for calling the right protocol for the ethertype. * This is called by both packet-eth.c (Ethernet II) and packet-llc.c (SNAP) * - * $Id: ethertype.c,v 1.9 1998/11/12 00:06:20 gram Exp $ + * $Id: ethertype.c,v 1.10 1998/11/17 04:28:46 gerald Exp $ * * Gilbert Ramirez <gram@verdict.uthscsa.edu> * @@ -95,7 +95,7 @@ ethertype(guint16 etype, int offset, break; default: dissect_data(pd, offset, fd, tree); - if (fd->win_info[COL_NUM]) { sprintf(fd->win_info[COL_PROTOCOL], "0x%04x", etype); } + if (check_col(fd, COL_PROTOCOL)) { col_add_fstr(fd, COL_PROTOCOL, "0x%04x", etype); } break; } } |