[openib-general] [RMPP] RMPP formatting assumptions

Sean Hefty mshefty at ichips.intel.com
Fri Apr 1 14:12:40 PST 2005


Sean Hefty wrote:
> The payload field in the RMPP header should be set to the size of the 
> class specific header plus the number of valid bytes of user data in the 
> data buffer.  The RMPP code will adjust the payload value to account for 
> multiple headers.

Doing this brings up the issue with the byte-ordering of the payload 
value set by the user.  One on hand, the value is used to communicate 
with the RMPP code, so could be in host-order.  But on the other hand, 
the value is in a data structure where all of the other fields are in 
network-byte order...

I'm leaning towards network-byte order, which would set the payload to 
the correct value for a single-segment RMPP MAD.

- Sean



More information about the general mailing list