diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-10-17 22:38:19 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-10-17 22:38:19 +0000 |
commit | 5b99f89521eb3b4a08cc274163736b667a8e76cc (patch) | |
tree | f6220c9d3a67de3fbba98ec0ba03720bc354b642 /packet-dsi.c | |
parent | 18dd6eff9e2a1b428ff53bfebb70d3f27bf1b1fc (diff) | |
download | wireshark-5b99f89521eb3b4a08cc274163736b667a8e76cc.tar.gz wireshark-5b99f89521eb3b4a08cc274163736b667a8e76cc.tar.bz2 wireshark-5b99f89521eb3b4a08cc274163736b667a8e76cc.zip |
From Didier Gautheron: better AFP 3.x dissector.
svn path=/trunk/; revision=6449
Diffstat (limited to 'packet-dsi.c')
-rw-r--r-- | packet-dsi.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/packet-dsi.c b/packet-dsi.c index 587e852e3d..6ff9ce8745 100644 --- a/packet-dsi.c +++ b/packet-dsi.c @@ -2,7 +2,7 @@ * Routines for dsi packet dissection * Copyright 2001, Randy McEoin <rmceoin@pe.com> * - * $Id: packet-dsi.c,v 1.24 2002/08/28 21:00:12 jmayer Exp $ + * $Id: packet-dsi.c,v 1.25 2002/10/17 22:38:19 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -122,6 +122,7 @@ static int hf_dsi_server_flag_tcpip = -1; static int hf_dsi_server_flag_notify = -1; static int hf_dsi_server_flag_reconnect = -1; static int hf_dsi_server_flag_directory = -1; +static int hf_dsi_server_flag_utf8_name = -1; static int hf_dsi_server_flag_fast_copy = -1; static int hf_dsi_server_signature = -1; @@ -142,6 +143,7 @@ const value_string afp_server_addr_type_vals[] = { {2, "IP+port address" }, {3, "DDP address" }, {4, "DNS name" }, + {5, "IP+port ssh tunnel" }, {0, NULL } }; /* end status stuff */ @@ -289,13 +291,14 @@ dissect_dsi_reply_get_status(tvbuff_t *tvb, proto_tree *tree, gint offset) proto_tree_add_item(sub_tree, hf_dsi_server_flag_notify , tvb, ofs, 2, FALSE); proto_tree_add_item(sub_tree, hf_dsi_server_flag_reconnect , tvb, ofs, 2, FALSE); proto_tree_add_item(sub_tree, hf_dsi_server_flag_directory , tvb, ofs, 2, FALSE); + proto_tree_add_item(sub_tree, hf_dsi_server_flag_utf8_name , tvb, ofs, 2, FALSE); proto_tree_add_item(sub_tree, hf_dsi_server_flag_fast_copy , tvb, ofs, 2, FALSE); proto_tree_add_item(tree, hf_dsi_server_name, tvb, offset +AFPSTATUS_PRELEN, 1, FALSE); flag = tvb_get_ntohs(tvb, ofs); if ((flag & AFPSRVRINFO_SRVSIGNATURE)) { - ofs = offset +AFPSTATUS_PRELEN +tvb_get_guint8(tvb, offset +AFPSTATUS_PRELEN); + ofs = offset +AFPSTATUS_PRELEN +tvb_get_guint8(tvb, offset +AFPSTATUS_PRELEN) +1; if ((ofs & 1)) ofs++; @@ -678,6 +681,10 @@ proto_register_dsi(void) { "Support directory services", "dsi.server_flag.directory", FT_BOOLEAN, 16, NULL, AFPSRVRINFO_SRVDIRECTORY, "Server support directory services", HFILL }}, + { &hf_dsi_server_flag_utf8_name, + { "Support UTF8 server name", "dsi.server_flag.utf8_name", + FT_BOOLEAN, 16, NULL, AFPSRVRINFO_SRVUTF8, + "Server support UTF8 server name", HFILL }}, { &hf_dsi_server_flag_fast_copy, { "Support fast copy", "dsi.server_flag.fast_copy", FT_BOOLEAN, 16, NULL, AFPSRVRINFO_FASTBOZO, |