Lines Matching refs:ss
68 #define SOCK_FAMILY(ss) ((ss).ss_family)
70 #define SOCK_PORT(ss) ((ss).ss_family == AF_INET6 ? \
71 ((struct sockaddr_in6 *)&(ss))->sin6_port : \
72 ((struct sockaddr_in *)&(ss))->sin_port)
74 #define SOCK_ADDR(ss) ((ss).ss_family == AF_INET6 ? \
75 (void *)&((struct sockaddr_in6 *)&(ss))->sin6_addr : \
76 (void *)&((struct sockaddr_in *)&(ss))->sin_addr)
78 #define SET_SOCK_FAMILY(ss, family) (SOCK_FAMILY(ss) = (family))
80 #define SET_SOCK_PORT(ss, port) \
81 ((ss).ss_family == AF_INET6 ? \
82 (((struct sockaddr_in6 *)&(ss))->sin6_port = (port)) : \
83 (((struct sockaddr_in *)&(ss))->sin_port = (port)))
85 #define SET_SOCK_ADDR4(ss, addr) ((void)(sock_set_inaddr(&(ss), (addr))))
87 #define SET_SOCK_ADDR_ANY(ss) \
88 ((void) ((ss).ss_family == AF_INET6 ? \
89 (void) (((struct sockaddr_in6 *)&(ss))->sin6_addr = in6addr_any) : \
90 (void) (((struct sockaddr_in *)&(ss))->sin_addr.s_addr = \