Pass even zero-length DSI and ASP "command" messages to the AFP
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 28 Apr 2002 22:19:49 +0000 (22:19 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 28 Apr 2002 22:19:49 +0000 (22:19 +0000)
dissector, so it can show them as replies.

Put the command code into the protocol tree for replies.

Fix some additional AFP function names to match the names in the AFP
spec.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5279 f5534014-38df-0310-8fa8-9805f1628bb7

packet-atalk.c

index 0cddbaa67ba3d1eeca2e571cd9b44dfb3952a6c5..c625b27f9efbd301ee0b43fbaaa8792702d0e52a 100644 (file)
@@ -1,7 +1,7 @@
 /* packet-atalk.c
  * Routines for Appletalk packet disassembly (DDP, currently).
  *
- * $Id: packet-atalk.c,v 1.66 2002/04/28 19:21:39 guy Exp $
+ * $Id: packet-atalk.c,v 1.67 2002/04/28 22:19:49 guy Exp $
  *
  * Simon Wilkinson <sxw@dcs.ed.ac.uk>
  *
@@ -736,13 +736,10 @@ dissect_asp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                   (fn == ASPFUNC_CMD || fn  == ASPFUNC_WRITE)) {
        tvbuff_t   *new_tvb;
 
-       if (len) {
-
-               if (asp_tree)
-                       proto_item_set_len(asp_tree, 4); 
-               new_tvb = tvb_new_subset(tvb, offset,-1,len);
-               call_dissector(afp_handle, new_tvb, pinfo, tree);       
-       }
+       if (asp_tree)
+               proto_item_set_len(asp_tree, 4);
+       new_tvb = tvb_new_subset(tvb, offset,-1,len);
+       call_dissector(afp_handle, new_tvb, pinfo, tree);       
   }
   else {       
        call_dissector(data_handle,tvb_new_subset(tvb, offset,-1,len), pinfo, tree);