Set the local address to associate with a socket
#include <sys/dcmd_ip.h> #define DCMD_IP_SSRCADDR __DIOT(_DCMD_IP, 0x01, struct sockaddr)
Argument | Value |
---|---|
filedes | A descriptor for a socket. |
dcmd | DCMD_IP_SSRCADDR |
dev_data_ptr | A pointer to a struct sockaddr |
n_bytes | sizeof(struct sockaddr) |
dev_info_ptr | NULL |
This command sets the local address to associate with a socket. Clients usually use bind() to generate this request.
A struct sockaddr that specifies the address.
None.