*
*/
#ifdef ANSI
-PRIVATE S16 cmPkCmIpv6NetAddr
+static S16 cmPkCmIpv6NetAddr
(
CmIpv6NetAddr *pkParam,
Buffer *mBuf /* message buffer */
)
#else
-PRIVATE S16 cmPkCmIpv6NetAddr (pkParam, mBuf)
+static S16 cmPkCmIpv6NetAddr (pkParam, mBuf)
CmIpv6NetAddr *pkParam;
Buffer *mBuf; /* message buffer */
#endif
{
- U8 num;
- U8 *ptr = (U8*)pkParam;
+ uint8_t num;
+ uint8_t *ptr = (uint8_t*)pkParam;
for(num = 0; num < CM_IPV6ADDR_SIZE; num++)
*
*/
#ifdef ANSI
-PRIVATE S16 cmPkCmIpv6TptAddr
+static S16 cmPkCmIpv6TptAddr
(
CmIpv6TptAddr *pkParam, /* IPv6 transport address */
Buffer *mBuf /* message buffer */
)
#else
-PRIVATE S16 cmPkCmIpv6TptAddr (pkParam, mBuf)
+static S16 cmPkCmIpv6TptAddr (pkParam, mBuf)
CmIpv6TptAddr *pkParam; /* IPv6 transport address */
Buffer *mBuf; /* message buffer */
#endif
Buffer *mBuf; /* message buffer */
#endif
{
- U16 idx; /* Loop Index */
+ uint16_t idx; /* Loop Index */
CmNetAddr *netAddr; /* Network Address */
*
*/
#ifdef ANSI
-PRIVATE S16 cmPkCmSockOpts
+static S16 cmPkCmSockOpts
(
CmSockOpts *pkParam,
Buffer *mBuf /* message buffer */
)
#else
-PRIVATE S16 cmPkCmSockOpts (pkParam, mBuf)
+static S16 cmPkCmSockOpts (pkParam, mBuf)
CmSockOpts *pkParam;
Buffer *mBuf; /* message buffer */
#endif
*
*/
#ifdef ANSI
-PRIVATE S16 cmPkCmSockParam
+static S16 cmPkCmSockParam
(
CmSockParam *pkParam,
Buffer *mBuf /* message buffer */
)
#else
-PRIVATE S16 cmPkCmSockParam (pkParam, mBuf)
+static S16 cmPkCmSockParam (pkParam, mBuf)
CmSockParam *pkParam;
Buffer *mBuf; /* message buffer */
#endif
{
- U32 num;
+ uint32_t num;
if( pkParam->numOpts > CM_MAX_SOCK_OPTS)
*
*/
#ifdef ANSI
-PRIVATE S16 cmPkTlsTptParam
+static S16 cmPkTlsTptParam
(
TlsTptParam *pkParam, /**/
Buffer *mBuf /* message buffer */
)
#else
-PRIVATE S16 cmPkTlsTptParam(pkParam, mBuf)
+static S16 cmPkTlsTptParam(pkParam, mBuf)
TlsTptParam *pkParam; /**/
Buffer *mBuf; /* message buffer */
#endif
{
- U32 num;
+ uint32_t num;
if( pkParam->numOpts > CM_MAX_SOCK_OPTS)
*
*/
#ifdef ANSI
-PRIVATE S16 cmUnpkCmIpv6NetAddr
+static S16 cmUnpkCmIpv6NetAddr
(
CmIpv6NetAddr *unpkParam, /* IPv6 address */
Buffer *mBuf /* message buffer */
)
#else
-PRIVATE S16 cmUnpkCmIpv6NetAddr (unpkParam, mBuf)
+static S16 cmUnpkCmIpv6NetAddr (unpkParam, mBuf)
CmIpv6NetAddr *unpkParam; /* IPv6 address */
Buffer *mBuf; /* message buffer */
#endif
{
- U32 num;
- U8 *ptr = (U8*)unpkParam;
+ uint32_t num;
+ uint8_t *ptr = (uint8_t*)unpkParam;
ptr += (CM_INET_IPV6ADDR_SIZE - 1);
*
*/
#ifdef ANSI
-PRIVATE S16 cmUnpkCmIpv6TptAddr
+static S16 cmUnpkCmIpv6TptAddr
(
CmIpv6TptAddr *unpkParam, /* IPv6 transport address */
Buffer *mBuf /* message buffer */
)
#else
-PRIVATE S16 cmUnpkCmIpv6TptAddr (unpkParam, mBuf)
+static S16 cmUnpkCmIpv6TptAddr (unpkParam, mBuf)
CmIpv6TptAddr *unpkParam; /* IPv6 transport address */
Buffer *mBuf; /* message buffer */
#endif
Buffer *mBuf; /* message buffer */
#endif
{
- U16 idx; /* Loop Index */
+ uint16_t idx; /* Loop Index */
CmNetAddr *netAddr; /* Network Address */
*
*/
#ifdef ANSI
-PRIVATE S16 cmUnpkCmSockOpts
+static S16 cmUnpkCmSockOpts
(
CmSockOpts *unpkParam, /* socket options */
Buffer *mBuf /* message buffer */
)
#else
-PRIVATE S16 cmUnpkCmSockOpts (unpkParam, mBuf)
+static S16 cmUnpkCmSockOpts (unpkParam, mBuf)
CmSockOpts *unpkParam; /* socket options */
Buffer *mBuf; /* message buffer */
#endif
*
*/
#ifdef ANSI
-PRIVATE S16 cmUnpkCmSockParam
+static S16 cmUnpkCmSockParam
(
CmSockParam *unpkParam, /* socket parameters */
Buffer *mBuf /* message buffer */
)
#else
-PRIVATE S16 cmUnpkCmSockParam (unpkParam, mBuf)
+static S16 cmUnpkCmSockParam (unpkParam, mBuf)
CmSockParam *unpkParam; /* socket parameters */
Buffer *mBuf; /* message buffer */
#endif
{
- U32 num;
+ uint32_t num;
CMCHKUNPK(oduPackUInt8, &unpkParam->listenQSize, mBuf);
*
*/
#ifdef ANSI
-PRIVATE S16 cmUnpkTlsTptParam
+static S16 cmUnpkTlsTptParam
(
TlsTptParam *unpkParam, /* TLS parameters */
Buffer *mBuf /* message buffer */
)
#else
-PRIVATE S16 cmUnpkTlsTptParam (unpkParam, mBuf)
+static S16 cmUnpkTlsTptParam (unpkParam, mBuf)
TlsTptParam *unpkParam; /* TLS parameters */
Buffer *mBuf; /* message buffer */
#endif
{
- U32 num;
+ uint32_t num;
CMCHKUNPK(SUnpkS16, &unpkParam->ctxId, mBuf);
CMCHKPK(cmPkTknStr64, &pkParam->u.hdrParmIpv4.ipv4HdrOpt, mBuf);
#endif /* IPV4_OPTS_SUPPORTED */
- CMCHKPK(cmPkTknU8, &pkParam->u.hdrParmIpv4.ttl, mBuf);
- CMCHKPK(cmPkTknU8, &pkParam->u.hdrParmIpv4.tos, mBuf);
- CMCHKPK(cmPkTknU8, &pkParam->u.hdrParmIpv4.dfBit, mBuf);
- CMCHKPK(cmPkTknU8, &pkParam->u.hdrParmIpv4.proto, mBuf);
+ CMCHKPK(cmPkTknUInt8, &pkParam->u.hdrParmIpv4.ttl, mBuf);
+ CMCHKPK(cmPkTknUInt8, &pkParam->u.hdrParmIpv4.tos, mBuf);
+ CMCHKPK(cmPkTknUInt8, &pkParam->u.hdrParmIpv4.dfBit, mBuf);
+ CMCHKPK(cmPkTknUInt8, &pkParam->u.hdrParmIpv4.proto, mBuf);
break;
case CM_HDRPARM_IPV6:
CMCHKPK(cmPkCmIpv6ExtHdr, &pkParam->u.hdrParmIpv6.ipv6ExtHdr, mBuf);
#endif /* IPV6_OPTS_SUPPORTED */
CMCHKPK(cmPkCmNetAddr, &pkParam->u.hdrParmIpv6.srcAddr6, mBuf);
- CMCHKPK(cmPkTknU8, &pkParam->u.hdrParmIpv6.ttl, mBuf);
+ CMCHKPK(cmPkTknUInt8, &pkParam->u.hdrParmIpv6.ttl, mBuf);
#endif /* IPV6_SUPPORTED */
break;
Buffer *mBuf; /* message buffer */
#endif
{
- U8 idx;
+ uint8_t idx;
/* pack all IPV6 addrs in the route hdr */
Mem *memInfo; /* meminfo to allocate for Route hdr */
#endif
{
- U8 idx; /* array index */
+ uint8_t idx; /* array index */
S32 retVal; /* temporary return value */
#endif
{
- U8 numOptions;
+ uint8_t numOptions;
/* pack all HBH options */
Buffer *mBuf; /* message buffer */
#endif
{
- U8 optLen;
+ uint8_t optLen;
for(optLen = 0; optLen < pkParam->length; optLen++)
#endif
{
S32 retVal; /* temporary return value */
- U8 optLen; /* length of value field */
+ uint8_t optLen; /* length of value field */
/* unpack type, length */
Mem *memInfo; /* meminfo to allocate mem for dest opts */
#endif
{
- U8 numOptions;
+ uint8_t numOptions;
S16 retVal;
Buffer *mBuf; /* message buffer */
#endif
{
- U8 numOptions;
+ uint8_t numOptions;
for(numOptions = 0; numOptions<pkParam->numHBHOpts; numOptions++)
Buffer *mBuf; /* message buffer */
#endif
{
- U8 optLen;
+ uint8_t optLen;
/* pack value field */
#endif
{
S32 retVal; /* temporary return value */
- U8 optLen; /* length of value field */
+ uint8_t optLen; /* length of value field */
CMCHKUNPK(oduPackUInt8, &unpkParam->type, mBuf);
Mem *memInfo; /* meminfo to allocate space for HBH opt */
#endif
{
- U8 numOptions;
+ uint8_t numOptions;
S16 retVal;
break;
case CM_HDRPARM_IPV4:
- CMCHKUNPK(cmUnpkTknU8, &unpkParam->u.hdrParmIpv4.proto, mBuf);
- CMCHKUNPK(cmUnpkTknU8, &unpkParam->u.hdrParmIpv4.dfBit, mBuf);
- CMCHKUNPK(cmUnpkTknU8, &unpkParam->u.hdrParmIpv4.tos, mBuf);
- CMCHKUNPK(cmUnpkTknU8, &unpkParam->u.hdrParmIpv4.ttl, mBuf);
+ CMCHKUNPK(cmUnpkTknUInt8, &unpkParam->u.hdrParmIpv4.proto, mBuf);
+ CMCHKUNPK(cmUnpkTknUInt8, &unpkParam->u.hdrParmIpv4.dfBit, mBuf);
+ CMCHKUNPK(cmUnpkTknUInt8, &unpkParam->u.hdrParmIpv4.tos, mBuf);
+ CMCHKUNPK(cmUnpkTknUInt8, &unpkParam->u.hdrParmIpv4.ttl, mBuf);
#ifdef IPV4_OPTS_SUPPORTED
CMCHKUNPK(cmUnpkTknStr64, &unpkParam->u.hdrParmIpv4.ipv4HdrOpt, mBuf);
#endif /* IPV4_OPTS_SUPPORTED */
case CM_HDRPARM_IPV6:
#ifdef IPV6_SUPPORTED
- CMCHKUNPK(cmUnpkTknU8, &unpkParam->u.hdrParmIpv6.ttl, mBuf);
+ CMCHKUNPK(cmUnpkTknUInt8, &unpkParam->u.hdrParmIpv6.ttl, mBuf);
CMCHKUNPK(cmUnpkCmNetAddr,
&unpkParam->u.hdrParmIpv6.srcAddr6, mBuf);