RFC 2960 says that the payload protocol ID _is_ a 32 bit unsigned
integer AND it is in network byte order.
RFC 2960, section 3:
-----------------------------------------------------------------
3. SCTP packet Format
An SCTP packet is composed of a common header and chunks. A chunk
contains either control information or user data.
...
All integer fields in an SCTP packet MUST be transmitted in network
byte order, unless otherwise stated.
-----------------------------------------------------------------
RFC 2960, section 3.3.1:
-----------------------------------------------------------------
3.3.1 Payload Data (DATA) (0)
Length: 16 bits (unsigned integer)
TSN : 32 bits (unsigned integer)
Stream Identifier S: 16 bits (unsigned integer)
Stream Sequence Number n: 16 bits (unsigned integer)
Payload Protocol Identifier: 32 bits (unsigned integer)
-----------------------------------------------------------------
RFC 2960 is clear: the Payload Protocol Identifier _is_
a 32-bit unsigned integer AND since it is an integer field,
it MUST be sent in network byte order.
So even though SCTP treats the value as opaque (i.e. it is not
interpreted by SCTP), the SCTP _user_ may interpreted it and
expects a 32-bit unsigned integer.
-- David Lehmann Ulticom, Inc. http://www.ulticom.comReceived on Wed Mar 2 09:08:55 2005
This archive was generated by hypermail 2.1.8 : Mon Mar 13 2006 - 15:22:24 EST