Home
last modified time | relevance | path

Searched refs:_sa46 (Results 1 – 1 of 1) sorted by relevance

/third_party/libwebsockets/include/libwebsockets/
Dlws-adopt.h97 #define sa46_sockaddr(_sa46) ((struct sockaddr *)(_sa46)) argument
100 #define sa46_socklen(_sa46) (socklen_t)((_sa46)->sa4.sin_family == AF_INET ? \ argument
103 #define sa46_sockport(_sa46, _sp) { if ((_sa46)->sa4.sin_family == AF_INET) \ argument
104 (_sa46)->sa4.sin_port = (_sp); else \
105 (_sa46)->sa6.sin6_port = (_sp); }
106 #define sa46_address(_sa46) ((uint8_t *)((_sa46)->sa4.sin_family == AF_INET ? \ argument
107 &_sa46->sa4.sin_addr : &_sa46->sa6.sin6_addr ))
109 #define sa46_socklen(_sa46) (socklen_t)sizeof(struct sockaddr_in) argument
110 #define sa46_sockport(_sa46, _sp) (_sa46)->sa4.sin_port = (_sp) argument
111 #define sa46_address(_sa46) (uint8_t *)&_sa46->sa4.sin_addr argument
[all …]