Buffer *mBuf; /* message buffer */
#endif
{
- TRC2(cmPkCmIpv4TptAddr)
CMCHKPK(cmPkCmIpv4NetAddr, pkParam->address, mBuf);
CMCHKPK(oduUnpackUInt16, pkParam->port, mBuf);
*
*/
#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;
- TRC3(cmPkCmIpv6NetAddr)
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
{
- TRC3(cmPkCmIpv6TptAddr)
CMCHKPK(cmPkCmIpv6NetAddr, &pkParam->ipv6NetAddr, mBuf);
CMCHKPK(oduUnpackUInt16, pkParam->port, mBuf);
Buffer *mBuf; /* message buffer */
#endif
{
- U16 idx; /* Loop Index */
+ uint16_t idx; /* Loop Index */
CmNetAddr *netAddr; /* Network Address */
- TRC2(cmPkCmNetAddrTbl)
if (pkParam->count > CM_MAX_NET_ADDR)
return RFAILED;
Buffer *mBuf; /* message buffer */
#endif
{
- TRC3(cmPkCmNetAddr)
switch (pkParam->type)
{
Buffer *mBuf; /* message buffer */
#endif
{
- TRC3(cmPkCmTptAddr)
switch (pkParam->type)
{
Buffer *mBuf; /* message buffer */
#endif
{
- TRC3(cmPkCmTptLocalInf)
if (pkParam->intfPrsnt == TRUE)
{
Buffer *mBuf; /* message buffer */
#endif
{
- TRC3(cmPkCmNetMCastInf6)
CMCHKPK(cmPkCmIpv6NetAddr, &pkParam->mCastAddr, mBuf);
CMCHKPK(oduUnpackUInt32, pkParam->localInf, mBuf);
*
*/
#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
{
- TRC3(cmPkCmSockOpts)
switch (pkParam->option)
{
*
*/
#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;
- TRC3(cmPkCmSockParam)
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;
- TRC3(cmPkTlsTptParam)
if( pkParam->numOpts > CM_MAX_SOCK_OPTS)
{
Buffer *mBuf; /* message buffer */
#endif
{
- TRC3(cmPkCmTptParam)
switch (pkParam->type)
{
Buffer *mBuf; /* message buffer */
#endif
{
- TRC2(cmUnpkCmIpv4TptAddr)
CMCHKUNPK(oduPackUInt16, &unpkParam->port, mBuf);
CMCHKUNPK(cmUnpkCmIpv4NetAddr, &unpkParam->address, mBuf);
*
*/
#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;
- TRC3(cmUnpkCmIpv6NetAddr)
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
{
- TRC3(cmUnpkCmIpv6TptAddr)
CMCHKUNPK(oduPackUInt16, &unpkParam->port, mBuf);
CMCHKUNPK(cmUnpkCmIpv6NetAddr, &unpkParam->ipv6NetAddr, mBuf);
Buffer *mBuf; /* message buffer */
#endif
{
- U16 idx; /* Loop Index */
+ uint16_t idx; /* Loop Index */
CmNetAddr *netAddr; /* Network Address */
- TRC2(cmUnpkCmNetAddrTbl)
/* Unpack the count */
CMCHKUNPK(oduPackUInt16, &(unpkParam->count), mBuf);
Buffer *mBuf; /* message buffer */
#endif
{
- TRC3(cmUnpkCmNetAddr)
CMCHKUNPK(oduPackUInt8, &unpkParam->type, mBuf);
Buffer *mBuf; /* message buffer */
#endif
{
- TRC3(cmUnpkCmTptAddr)
CMCHKUNPK(oduPackUInt8, &unpkParam->type, mBuf);
Buffer *mBuf; /* message buffer */
#endif
{
- TRC3(cmUnpkCmNetMCastInf6)
CMCHKUNPK(oduPackUInt32, &unpkParam->localInf, mBuf);
CMCHKUNPK(cmUnpkCmIpv6NetAddr, &unpkParam->mCastAddr, mBuf);
*
*/
#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
{
- TRC3(cmUnpkCmSockOpts)
CMCHKUNPK(oduPackUInt32, &unpkParam->level, mBuf);
CMCHKUNPK(oduPackUInt32, &unpkParam->option, mBuf);
*
*/
#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;
- TRC3(cmUnpkCmSockParam)
CMCHKUNPK(oduPackUInt8, &unpkParam->listenQSize, mBuf);
CMCHKUNPK(oduPackUInt8, &unpkParam->numOpts, 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;
- TRC3(cmUnpkTlsTptParam)
CMCHKUNPK(SUnpkS16, &unpkParam->ctxId, mBuf);
CMCHKUNPK(oduPackUInt8, &unpkParam->listenQSize, mBuf);
Buffer *mBuf; /* message buffer */
#endif
{
- TRC3(cmUnpkCmTptParam)
CMCHKUNPK(oduPackUInt8, &unpkParam->type, mBuf);
Buffer *mBuf; /* message buffer */
#endif
{
- TRC3(cmPkCmIpHdrParm)
switch (pkParam->type)
{
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
{
- TRC3(cmUnpkCmTptLocalInf)
/* first unpack the bool intfPrsnt value which is always packed */
CMCHKUNPK(oduUnpackBool, &unpkParam->intfPrsnt, mBuf);
Buffer *mBuf; /* message buffer */
#endif
{
- TRC3(cmPkCmIpv6ExtHdr)
/* pack first Route hdr */
if (pkParam->rtOptsPrsnt)
Buffer *mBuf; /* message buffer */
#endif
{
- U8 idx;
+ uint8_t idx;
- TRC3(cmPkCmIpv6RtHdr);
/* pack all IPV6 addrs in the route hdr */
for(idx = 0; idx < pkParam->numAddrs; idx++)
Mem *memInfo; /* meminfo to allocate for Route hdr */
#endif
{
- U8 idx; /* array index */
+ uint8_t idx; /* array index */
S32 retVal; /* temporary return value */
- TRC3(cmUnpkCmIpv6RtHdr);
CMCHKUNPK(oduPackUInt8, &unpkParam->numAddrs, mBuf);
Mem *memInfo; /* meminfo to allocate for IPV6 ext hdr */
#endif
{
- TRC3(cmUnpkCmIpv6ExtHdr)
/* unpack HBH hdr first */
CMCHKUNPK(oduUnpackBool, &unpkParam->hbhHdrPrsnt, mBuf);
#endif
{
- U8 numOptions;
+ uint8_t numOptions;
- TRC3(cmPkCmIpv6DestOptsArr);
/* pack all HBH options */
for(numOptions = 0; numOptions<pkParam->numDestOpts; numOptions++)
Buffer *mBuf; /* message buffer */
#endif
{
- U8 optLen;
+ uint8_t optLen;
- TRC3(cmPkCmIpv6DestOptsHdr);
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 */
- TRC3(cmUnpkCmIpv6DestOptsHdr);
/* unpack type, length */
CMCHKUNPK(oduPackUInt8, &unpkParam->type, mBuf);
Mem *memInfo; /* meminfo to allocate mem for dest opts */
#endif
{
- U8 numOptions;
+ uint8_t numOptions;
S16 retVal;
- TRC3(cmUnpkCmIpv6DestOptsArr);
CMCHKUNPK(oduPackUInt8, &unpkParam->numDestOpts, mBuf);
if (unpkParam->numDestOpts)
Buffer *mBuf; /* message buffer */
#endif
{
- U8 numOptions;
+ uint8_t numOptions;
- TRC3(cmPkCmIpv6HBHHdrArr);
for(numOptions = 0; numOptions<pkParam->numHBHOpts; numOptions++)
CMCHKPK(cmPkCmIpv6HBHHdr, &pkParam->hbhOpts[numOptions], mBuf);
Buffer *mBuf; /* message buffer */
#endif
{
- U8 optLen;
+ uint8_t optLen;
- TRC3(cmPkCmIpv6HBHHdr);
/* pack value field */
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 */
- TRC3(cmUnpkCmIpv6HBHHdr)
CMCHKUNPK(oduPackUInt8, &unpkParam->type, mBuf);
CMCHKUNPK(oduPackUInt8, &unpkParam->length, mBuf);
Mem *memInfo; /* meminfo to allocate space for HBH opt */
#endif
{
- U8 numOptions;
+ uint8_t numOptions;
S16 retVal;
- TRC3(cmUnpkCmIpv6HBHHdrArr);
CMCHKUNPK(oduPackUInt8, &unpkParam->numHBHOpts, mBuf);
if (unpkParam->numHBHOpts)
#endif /* IPV6_OPTS_SUPPORTED */
#endif
{
- TRC3(cmUnpkCmIpHdrParm)
CMCHKUNPK(oduPackUInt8, &unpkParam->type, mBuf);
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);
/* Variable declaration */
S16 idx;
- TRC3(cmPkCmIcmpFilter)
switch (pkParam->type)
{
/* Variable declaration */
S16 idx;
- TRC3(cmUnpkCmIcmpFilter)
-
CMCHKUNPK(oduPackUInt8, &unpkParam->type, mBuf);
switch (unpkParam->type)