components/open-fabrics/libibmad/patches/base.patch
branchs11u1-sru
changeset 2587 576c01af714c
parent 2586 66a039ce738d
child 2639 b9179dac77f4
equal deleted inserted replaced
2586:66a039ce738d 2587:576c01af714c
   637 -	memcpy(&val, ((char *)buf + base_offs + f->bitoffs / 8),
   637 -	memcpy(&val, ((char *)buf + base_offs + f->bitoffs / 8),
   638 +	memcpy( (void *)&val, (void *)((char *)buf + base_offs + f->bitoffs / 8),
   638 +	memcpy( (void *)&val, (void *)((char *)buf + base_offs + f->bitoffs / 8),
   639  	       sizeof(uint64_t));
   639  	       sizeof(uint64_t));
   640  	return ntohll(val);
   640  	return ntohll(val);
   641  }
   641  }
       
   642 diff -r -u /tmp/libibmad-1.3.7/src/mad.c libibmad-1.3.7/src/mad.c
       
   643 --- /tmp/libibmad-1.3.7/src/mad.c	Wed Feb 16 02:12:53 2011
       
   644 +++ libibmad-1.3.7/src/mad.c	Wed Apr 10 12:12:42 2013
       
   645 @@ -61,6 +61,7 @@
       
   646  		trid = random();
       
   647  	}
       
   648  	next = ++trid | (base << 32);
       
   649 +	next &= 0x00ffffffffffffff;
       
   650  	return next;
       
   651  }
       
   652  
   642 diff -r -u /tmp/libibmad-1.3.7/src/resolve.c libibmad-1.3.7/src/resolve.c
   653 diff -r -u /tmp/libibmad-1.3.7/src/resolve.c libibmad-1.3.7/src/resolve.c
   643 --- /tmp/libibmad-1.3.7/src/resolve.c	Wed Feb 16 02:12:53 2011
   654 --- /tmp/libibmad-1.3.7/src/resolve.c	Wed Feb 16 02:12:53 2011
   644 +++ libibmad-1.3.7/src/resolve.c	Wed Jan  9 09:41:48 2013
   655 +++ libibmad-1.3.7/src/resolve.c	Wed Jan  9 09:41:48 2013
   645 @@ -40,6 +40,7 @@
   656 @@ -40,6 +40,7 @@
   646  #include <stdlib.h>
   657  #include <stdlib.h>