[openib-general] [PATCH][MINOR] OpenSM/osm_helper.c: Support InformInfoRecord attribute ID decode

Hal Rosenstock halr at voltaire.com
Wed Jul 19 12:15:37 PDT 2006


OpenSM/osm_helper.c: Support InformInfoRecord attribute ID decode

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

Index: opensm/osm_helper.c
===================================================================
--- opensm/osm_helper.c	(revision 8596)
+++ opensm/osm_helper.c	(working copy)
@@ -257,10 +257,194 @@ const char* const __ib_sa_attr_str[] =
   "TraceRecord",               /* 39 */
   "MultiPathRecord",           /* 3A */
   "ServiceAssociationRecord",  /* 3B */
-  "UNKNOWN"                    /* 3C - always highest value */
+  "UNKNOWN",                   /* 3C */
+  "UNKNOWN",                   /* 3D */
+  "UNKNOWN",                   /* 3E */
+  "UNKNOWN",                   /* 3F */
+  "UNKNOWN",                   /* 40 */
+  "UNKNOWN",                   /* 41 */
+  "UNKNOWN",                   /* 42 */
+  "UNKNOWN",                   /* 43 */
+  "UNKNOWN",                   /* 44 */
+  "UNKNOWN",                   /* 45 */
+  "UNKNOWN",                   /* 46 */
+  "UNKNOWN",                   /* 47 */
+  "UNKNOWN",                   /* 48 */
+  "UNKNOWN",                   /* 49 */
+  "UNKNOWN",                   /* 4A */
+  "UNKNOWN",                   /* 4B */
+  "UNKNOWN",                   /* 4C */
+  "UNKNOWN",                   /* 4D */
+  "UNKNOWN",                   /* 4E */
+  "UNKNOWN",                   /* 4F */
+  "UNKNOWN",                   /* 50 */
+  "UNKNOWN",                   /* 51 */
+  "UNKNOWN",                   /* 52 */
+  "UNKNOWN",                   /* 53 */
+  "UNKNOWN",                   /* 54 */
+  "UNKNOWN",                   /* 55 */
+  "UNKNOWN",                   /* 56 */
+  "UNKNOWN",                   /* 57 */
+  "UNKNOWN",                   /* 58 */
+  "UNKNOWN",                   /* 59 */
+  "UNKNOWN",                   /* 5A */
+  "UNKNOWN",                   /* 5B */
+  "UNKNOWN",                   /* 5C */
+  "UNKNOWN",                   /* 5D */
+  "UNKNOWN",                   /* 5E */
+  "UNKNOWN",                   /* 5F */
+  "UNKNOWN",                   /* 60 */
+  "UNKNOWN",                   /* 61 */
+  "UNKNOWN",                   /* 62 */
+  "UNKNOWN",                   /* 63 */
+  "UNKNOWN",                   /* 64 */
+  "UNKNOWN",                   /* 65 */
+  "UNKNOWN",                   /* 66 */
+  "UNKNOWN",                   /* 67 */
+  "UNKNOWN",                   /* 68 */
+  "UNKNOWN",                   /* 69 */
+  "UNKNOWN",                   /* 6A */
+  "UNKNOWN",                   /* 6B */
+  "UNKNOWN",                   /* 6C */
+  "UNKNOWN",                   /* 6D */
+  "UNKNOWN",                   /* 6E */
+  "UNKNOWN",                   /* 6F */
+  "UNKNOWN",                   /* 70 */
+  "UNKNOWN",                   /* 71 */
+  "UNKNOWN",                   /* 72 */
+  "UNKNOWN",                   /* 73 */
+  "UNKNOWN",                   /* 74 */
+  "UNKNOWN",                   /* 75 */
+  "UNKNOWN",                   /* 76 */
+  "UNKNOWN",                   /* 77 */
+  "UNKNOWN",                   /* 78 */
+  "UNKNOWN",                   /* 79 */
+  "UNKNOWN",                   /* 7A */
+  "UNKNOWN",                   /* 7B */
+  "UNKNOWN",                   /* 7C */
+  "UNKNOWN",                   /* 7D */
+  "UNKNOWN",                   /* 7E */
+  "UNKNOWN",                   /* 7F */
+  "UNKNOWN",                   /* 80 */
+  "UNKNOWN",                   /* 81 */
+  "UNKNOWN",                   /* 82 */
+  "UNKNOWN",                   /* 83 */
+  "UNKNOWN",                   /* 84 */
+  "UNKNOWN",                   /* 85 */
+  "UNKNOWN",                   /* 86 */
+  "UNKNOWN",                   /* 87 */
+  "UNKNOWN",                   /* 88 */
+  "UNKNOWN",                   /* 89 */
+  "UNKNOWN",                   /* 8A */
+  "UNKNOWN",                   /* 8B */
+  "UNKNOWN",                   /* 8C */
+  "UNKNOWN",                   /* 8D */
+  "UNKNOWN",                   /* 8E */
+  "UNKNOWN",                   /* 8F */
+  "UNKNOWN",                   /* 90 */
+  "UNKNOWN",                   /* 91 */
+  "UNKNOWN",                   /* 92 */
+  "UNKNOWN",                   /* 93 */
+  "UNKNOWN",                   /* 94 */
+  "UNKNOWN",                   /* 95 */
+  "UNKNOWN",                   /* 96 */
+  "UNKNOWN",                   /* 97 */
+  "UNKNOWN",                   /* 98 */
+  "UNKNOWN",                   /* 99 */
+  "UNKNOWN",                   /* 9A */
+  "UNKNOWN",                   /* 9B */
+  "UNKNOWN",                   /* 9C */
+  "UNKNOWN",                   /* 9D */
+  "UNKNOWN",                   /* 9E */
+  "UNKNOWN",                   /* 9F */
+  "UNKNOWN",                   /* A0 */
+  "UNKNOWN",                   /* A1 */
+  "UNKNOWN",                   /* A2 */
+  "UNKNOWN",                   /* A3 */
+  "UNKNOWN",                   /* A4 */
+  "UNKNOWN",                   /* A5 */
+  "UNKNOWN",                   /* A6 */
+  "UNKNOWN",                   /* A7 */
+  "UNKNOWN",                   /* A8 */
+  "UNKNOWN",                   /* A9 */
+  "UNKNOWN",                   /* AA */
+  "UNKNOWN",                   /* AB */
+  "UNKNOWN",                   /* AC */
+  "UNKNOWN",                   /* AD */
+  "UNKNOWN",                   /* AE */
+  "UNKNOWN",                   /* AF */
+  "UNKNOWN",                   /* B0 */
+  "UNKNOWN",                   /* B1 */
+  "UNKNOWN",                   /* B2 */
+  "UNKNOWN",                   /* B3 */
+  "UNKNOWN",                   /* B4 */
+  "UNKNOWN",                   /* B5 */
+  "UNKNOWN",                   /* B6 */
+  "UNKNOWN",                   /* B7 */
+  "UNKNOWN",                   /* B8 */
+  "UNKNOWN",                   /* B9 */
+  "UNKNOWN",                   /* BA */
+  "UNKNOWN",                   /* BB */
+  "UNKNOWN",                   /* BC */
+  "UNKNOWN",                   /* BD */
+  "UNKNOWN",                   /* BE */
+  "UNKNOWN",                   /* BF */
+  "UNKNOWN",                   /* C0 */
+  "UNKNOWN",                   /* C1 */
+  "UNKNOWN",                   /* C2 */
+  "UNKNOWN",                   /* C3 */
+  "UNKNOWN",                   /* C4 */
+  "UNKNOWN",                   /* C5 */
+  "UNKNOWN",                   /* C6 */
+  "UNKNOWN",                   /* C7 */
+  "UNKNOWN",                   /* C8 */
+  "UNKNOWN",                   /* C9 */
+  "UNKNOWN",                   /* CA */
+  "UNKNOWN",                   /* CB */
+  "UNKNOWN",                   /* CC */
+  "UNKNOWN",                   /* CD */
+  "UNKNOWN",                   /* CE */
+  "UNKNOWN",                   /* CF */
+  "UNKNOWN",                   /* D0 */
+  "UNKNOWN",                   /* D1 */
+  "UNKNOWN",                   /* D2 */
+  "UNKNOWN",                   /* D3 */
+  "UNKNOWN",                   /* D4 */
+  "UNKNOWN",                   /* D5 */
+  "UNKNOWN",                   /* D6 */
+  "UNKNOWN",                   /* D7 */
+  "UNKNOWN",                   /* D8 */
+  "UNKNOWN",                   /* D9 */
+  "UNKNOWN",                   /* DA */
+  "UNKNOWN",                   /* DB */
+  "UNKNOWN",                   /* DC */
+  "UNKNOWN",                   /* DD */
+  "UNKNOWN",                   /* DE */
+  "UNKNOWN",                   /* DF */
+  "UNKNOWN",                   /* E0 */
+  "UNKNOWN",                   /* E1 */
+  "UNKNOWN",                   /* E2 */
+  "UNKNOWN",                   /* E3 */
+  "UNKNOWN",                   /* E4 */
+  "UNKNOWN",                   /* E5 */
+  "UNKNOWN",                   /* E6 */
+  "UNKNOWN",                   /* E7 */
+  "UNKNOWN",                   /* E8 */
+  "UNKNOWN",                   /* E9 */
+  "UNKNOWN",                   /* EA */
+  "UNKNOWN",                   /* EB */
+  "UNKNOWN",                   /* EC */
+  "UNKNOWN",                   /* ED */
+  "UNKNOWN",                   /* EE */
+  "UNKNOWN",                   /* EF */
+  "UNKNOWN",                   /* F0 */
+  "UNKNOWN",                   /* F1 */
+  "UNKNOWN",                   /* F2 */
+  "InformInfoRecord",          /* F3 */
+  "UNKNOWN"                    /* F4 - always highest value */
 };
 
-#define OSM_SA_ATTR_STR_UNKNOWN_VAL 0x3C
+#define OSM_SA_ATTR_STR_UNKNOWN_VAL 0xF4
 
 
 /**********************************************************************







More information about the general mailing list