SCTP network address substructures

This topic describes the following SCTP network address substructures:

SCTPNetAddrLst

The following SCTPNetAddrLst defines an array of network addresses. SCTPNetAddrLst is a substructure to the SCTPAssocSta, SCTPSctSapCfg, and SCTPTSapCfg structures.

 typedef struct _sctptNetAddrLst
 {
    U32           nmb;                        /* Number of Network Addresses */
    CmNetAddr     nAddr[SCT_MAX_NET_ADDRS];   /* List of Network Addresses */
 } SCTPNetAddrLst;

The SCTPNetAddrLst structure contains the following fields:

Field

Type

Description

nmb

U32

Number of network addresses.

nAddr[SCT_MAX_NET_ADDRS]

CmNetAddr

List of network addresses, defined by the CmNetAddr structure, where SCT_MAX_NET_ADDRS is an array of network addresses. For information, see CmNetAddr.


CmNetAddr

The following CmNetAddr structure defines an IPv4 or IPv6 network address. CmNetAddr is a substructure to the SCTPAssocSta, SCTPDtaSta, and SCTPNetAddrLst structures.

typedef struct cmNetAddr
{
    U32     type;       /* type of network address */
    union
    {
        Ip4Addr ipv4NetAddr;    /* IP network address (U32) */
        Ip6Addr ipv6NetAddr;    /* IPv6 network address (16 bytes) */
    }u;
} CmNetAddr;

The following table describes the fields in the CmNetAddr structure. These fields are not re-configurable.

Field

Type

Description

type

U8

Network address type. Valid values are:

CM_NETADDR_IPV4 = IPV4

CM_NETADDR_IPV6 = IPV6

 

Note: IPV6 is not supported in the current release.

ipv4NetAddr

U32

IPv4 network address.

ipv6NetAddr[16]

U8

Not supported in the current release.