Ethereal-dev: [Ethereal-dev] [patch] packet-skinny.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Paul E. Erkkila" <pee@xxxxxxxxxxx>
Date: Sat, 21 Sep 2002 02:37:02 +0000
Greetings,

2 small fixes from Renzo Tomas (renzo.toma [AT] xs4all.nl)

-pee


---


Index: packet-skinny.c
===================================================================
RCS file: /cvsroot/ethereal/packet-skinny.c,v
retrieving revision 1.20
diff -c -r1.20 packet-skinny.c
*** packet-skinny.c     2002/08/28 21:00:31     1.20
--- packet-skinny.c     2002/09/21 02:30:15
***************
*** 1199,1205 ****
       break;

     case 0x93 : /* configStat */
! proto_tree_add_item(skinny_tree, hf_skinny_deviceName, tvb, offset+12, 4, TRUE);
       i = offset+12+StationMaxDeviceNameSize;
proto_tree_add_item(skinny_tree, hf_skinny_stationUserId, tvb, i, 4, TRUE);
       i += 4;
--- 1199,1205 ----
       break;

     case 0x93 : /* configStat */
! proto_tree_add_item(skinny_tree, hf_skinny_deviceName, tvb, offset+12, StationMaxDeviceNameSize, TRUE);
       i = offset+12+StationMaxDeviceNameSize;
proto_tree_add_item(skinny_tree, hf_skinny_stationUserId, tvb, i, 4, TRUE);
       i += 4;
***************
*** 1274,1280 ****

     case 0x9e : /* serverRes */
       for (i = 0; i < StationMaxServers; i++) {
! proto_tree_add_item(skinny_tree, hf_skinny_serverIdentifier, tvb, offset+12+(i*StationMaxServers), StationMaxServers, TRUE);
       }
       j = offset+12+(i*StationMaxServers);
       for (i = 0; i < StationMaxServers; i++) {
--- 1274,1280 ----

     case 0x9e : /* serverRes */
       for (i = 0; i < StationMaxServers; i++) {
! proto_tree_add_item(skinny_tree, hf_skinny_serverIdentifier, tvb, offset+12+(i*StationMaxServers), StationMaxServerNameSize, TRUE);
       }
       j = offset+12+(i*StationMaxServers);
       for (i = 0; i < StationMaxServers; i++) {