Prosody DTLS processing: API: sm_dtlstx_config_ipv6
Prototype Definition
int sm_dtlstx_config_ipv6(struct sm_dtlstx_config_ipv6_parms *configp)
Parameters
- *configp
-
a structure of the following type:
typedef struct sm_dtlstx_config_ipv6_parms {
tSMDTLStxId dtlstx; /* in */
SOCKADDR_IN6 destination; /* in */
SOCKADDR_IN6 source; /* in */
} SM_DTLSTX_CONFIG_IPV6_PARMS;
Description
Configures a DTLS[tx] to send DTLS packets to a device with the
specified IPv6 address.
Fields
- dtlstx
- The DTLS[tx] to configure
- destination
- The SOCKADDR_IN6 structure specifying the destination IP address
and port for the DTLS packets. A struct SOCKADDR_IN6 must be
configured with an address family, an IPv6 address and a port.
Note that most operating systems define this structure such that
fields are in network byte order.
- source
- The SOCKADDR_IN6 structure allows you to specify the source IPv6
address and port for the DTLS packets. A struct SOCKADDR_IN6 must
be configured with an address family. The IPv6 address may be
specified, or the value INADDR_ANY may be used to indicate
that any suitable address may be used. The port number may be
specified, or the value zero may be used to indicate that a
suitable port number is to be automatically allocated and
used.
Note that most operating systems define this structure such that
fields are in network byte order.
Returns
0
if call completed successfully, otherwise a standard error such as:
- ERR_SM_DEVERR - device error
This function is part of the Prosody DTLS processing API.