>The number of records is an SA thing and not RMPP thing. This is transparent to >RMPP itself. > >The need to determine the number of records is a consumer issue (SA or SA >client). To do this, AttributeOffset and (at least the last) PayloadLength >field is needed (as one can't rely on the first PayloadLength being non zero).
The RMPP code returns the size of the receive as sizeof MAD header + sizeof RMPP header + optional sizeof other header (e.g. SA header) + actual payload. This size can be used to allocate a data buffer large enough to hold the reassembled MAD. You should be able to use this to determine the number of records in the payload. - Sean _______________________________________________ openib-general mailing list [email protected] http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
