Lines Matching refs:sin_addr
328 if (IN_MULTICAST(sin->sin_addr.s_addr)) { in inpcb_bindableaddr()
330 } else if (!in_nullhost(sin->sin_addr)) { in inpcb_bindableaddr()
333 ia = in_get_ia(sin->sin_addr); in inpcb_bindableaddr()
362 in4p_laddr(inp) = sin->sin_addr; in inpcb_bind_addr()
374 if (IN_MULTICAST(sin->sin_addr.s_addr)) { in inpcb_bind_port()
415 in6_in_2_v4mapin6(&sin->sin_addr, &mapped); in inpcb_bind_port()
427 if (so->so_uidinfo->ui_uid && !IN_MULTICAST(sin->sin_addr.s_addr)) { in inpcb_bind_port()
428 t = inpcb_lookup_local(table, sin->sin_addr, sin->sin_port, 1, &vestige); in inpcb_bind_port()
435 (!in_nullhost(sin->sin_addr) || in inpcb_bind_port()
442 if ((!in_nullhost(sin->sin_addr) in inpcb_bind_port()
450 t = inpcb_lookup_local(table, sin->sin_addr, sin->sin_port, wild, &vestige); in inpcb_bind_port()
540 if (IN_MULTICAST(sin->sin_addr.s_addr) && in inpcb_connect()
553 if (in_nullhost(sin->sin_addr)) { in inpcb_connect()
555 sin->sin_addr = in inpcb_connect()
556 IN_ADDRLIST_READER_FIRST()->ia_addr.sin_addr; in inpcb_connect()
557 } else if (sin->sin_addr.s_addr == INADDR_BROADCAST) { in inpcb_connect()
562 sin->sin_addr = in inpcb_connect()
563 ia->ia_broadaddr.sin_addr; in inpcb_connect()
600 _ia = in_get_ia(IA_SIN(ia)->sin_addr); in inpcb_connect()
608 laddr = IA_SIN(ia)->sin_addr; in inpcb_connect()
613 if (inpcb_lookup(inp->inp_table, sin->sin_addr, sin->sin_port, in inpcb_connect()
632 in4p_faddr(inp) = sin->sin_addr; in inpcb_connect()
639 lsin.sin_addr = in4p_laddr(inp); in inpcb_connect()