Lines Matching defs:sa
218 #define SIN(sa) ((struct sockaddr_in *)(size_t)(sa))
219 #define SINIFSCOPE(sa) ((struct sockaddr_inifscope *)(size_t)(sa))
221 #define ASSERT_SINIFSCOPE(sa) { \
222 if ((sa)->sa_family != AF_INET || \
223 (sa)->sa_len < sizeof (struct sockaddr_in)) \
224 panic("%s: bad sockaddr_in %p\n", __func__, sa); \
289 sa_set_ifscope(struct sockaddr *sa, unsigned int ifscope)
292 ASSERT_SINIFSCOPE(sa);
294 SINIFSCOPE(sa)->sin_ifscope = ifscope;
301 sa_get_ifscope(struct sockaddr *sa)
304 ASSERT_SINIFSCOPE(sa);
306 return (SINIFSCOPE(sa)->sin_ifscope);