[openib-general] RE: RMPP Message Format Errors

Sean Hefty sean.hefty at intel.com
Mon Aug 22 09:49:36 PDT 2005


>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




More information about the general mailing list