]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
fixed set_address bug, wrong target-address, must be 0xffff
authorhadaq <hadaq>
Thu, 19 Jul 2012 10:19:45 +0000 (10:19 +0000)
committerhadaq <hadaq>
Thu, 19 Jul 2012 10:19:45 +0000 (10:19 +0000)
libtrbnet/trbnet.c

index 3a3f2f16d6374e97341cd535abf60bf2c3b9dd2f..e99e225140454ff3fb6a07a26379425c3c2ea6f2 100644 (file)
@@ -1,11 +1,11 @@
 #ifdef ETRAX
-const char trbnet_version[] = "$Revision: 4.34 $  Local Etrax";
+const char trbnet_version[] = "$Revision: 4.35 $  Local Etrax";
 #elif defined PEXOR
-const char trbnet_version[] = "$Revision: 4.34 $  Local Pexor";
+const char trbnet_version[] = "$Revision: 4.35 $  Local Pexor";
 #elif defined TRB3
-const char trbnet_version[] = "$Revision: 4.34 $  Local TRB3";
+const char trbnet_version[] = "$Revision: 4.35 $  Local TRB3";
 #else
-const char trbnet_version[] = "$Revision: 4.34 $  UNKNOWN, i.e. ERROR";
+const char trbnet_version[] = "$Revision: 4.35 $  UNKNOWN, i.e. ERROR";
 #endif
 
 #include <stdlib.h>
@@ -2463,7 +2463,7 @@ int trb_set_address(uint64_t uid,
 
   udpBuffer[0] = HEADER_HDR | 0x30;
   udpBuffer[1] = sender_address;
-  udpBuffer[2] = trb_address;
+  udpBuffer[2] = 0xffff;
   udpBuffer[3] = 0;
   udpBuffer[4] = CMD_NETADMINISTRATION;