[openib-general] [PATCH] osm: bug in PathRecord.HopLimit access function

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Sun Jan 21 06:27:47 PST 2007


Hi Hal

Fixing bug in PathRecord.HopLimit access function.

Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 osm/include/iba/ib_types.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/osm/include/iba/ib_types.h b/osm/include/iba/ib_types.h
index 26727df..22f7f62 100644
--- a/osm/include/iba/ib_types.h
+++ b/osm/include/iba/ib_types.h
@@ -3052,7 +3052,7 @@ static inline uint8_t	OSM_API
 ib_path_rec_hop_limit(
 	IN	const	ib_path_rec_t* const	p_rec )
 {
-	return( (uint8_t)(p_rec->hop_flow_raw & 0x000000FF ) );
+	return( (uint8_t)( cl_ntoh32(p_rec->hop_flow_raw) & 0x000000FF ) );
 }
 /*
 * PARAMETERS
-- 
1.4.4.1.GIT






More information about the general mailing list