components/open-fabrics/libibmad/patches/base.patch
branchs11-update
changeset 2407 772750492a43
parent 2358 4e7c1a169924
child 2459 8037cea4458f
--- a/components/open-fabrics/libibmad/patches/base.patch	Tue Oct 23 23:31:19 2012 -0700
+++ b/components/open-fabrics/libibmad/patches/base.patch	Thu Oct 25 09:57:49 2012 -0700
@@ -89,6 +89,17 @@
  	       sizeof(uint64_t));
  	return ntohll(val);
  }
+diff -r -u /tmp/libibmad-1.3.7/src/mad.c libibmad-1.3.7/src/mad.c
+--- /tmp/libibmad-1.3.7/src/mad.c	Wed Feb 16 02:12:53 2011
++++ libibmad-1.3.7/src/mad.c	Wed Oct 10 10:28:45 2012
[email protected]@ -61,6 +61,7 @@
+ 		trid = random();
+ 	}
+ 	next = ++trid | (base << 32);
++	next &= 0x00ffffffffffffff;
+ 	return next;
+ }
+ 
 diff -r -u /tmp/libibmad-1.3.7/src/resolve.c libibmad-1.3.7/src/resolve.c
 --- /tmp/libibmad-1.3.7/src/resolve.c	Wed Feb 16 02:12:53 2011
 +++ libibmad-1.3.7/src/resolve.c	Mon Oct  1 01:41:17 2012