Prosody SPRT end point: API: sm_sprt_config_ipv6
Prototype Definition
int sm_sprt_config_ipv6(struct sm_sprt_config_ipv6_parms *configp)
Parameters
- *configp
-
a structure of the following type:
typedef struct sm_sprt_config_ipv6_parms {
tSMSPRTId sprt; /* in */
SOCKADDR_IN6 dest; /* in */
SOCKADDR_IN6 src; /* in */
int payload_type; /* in */
} SM_SPRT_CONFIG_IPV6_PARMS;
Description
Configures the destination of the transmitted SPRT packets and the
payload type identifier to use in those packets.
Fields
- sprt
- The SPRT end point to configure.
- dest
- The SOCKADDR_IN6 structure specifying the destination IPv6 address and port
of the remote SPRT end point. A struct SOCKADDR_IN6 must be configured with
an address family, an IP address and a port. Note that most operating
systems define this structure such that fields are in network byte order.
- src
- The SOCKADDR_IN6 structure specifying the source IPv6 address and port
of the local SPRT end point. A struct SOCKADDR_IN6 must be configured with
an address family, an IP address and a port. Note that most operating
systems define this structure such that fields are in network byte order.
This should match the values returned by the VMP[rx] receiving
the SPRT packets.
- payload_type
- The payload type of the SPRT packets.
Returns
0
if call completed successfully, otherwise a standard error such as:
- ERR_SM_DEVERR - device error
This function is part of the Prosody SPRT end point API.