Lines Matching refs:local
1100 mh->msg_control = msg->local != NULL ? control : NULL; in translate_msg()
1101 mh->msg_controllen = msg->local != NULL ? BIO_CMSG_ALLOC_LEN : 0; in translate_msg()
1108 static int extract_local(BIO *b, MSGHDR_TYPE *mh, BIO_ADDR *local) { in extract_local() argument
1123 local->s_in.sin_addr = in extract_local()
1130 local->s_in.sin_addr = *(struct in_addr *)BIO_CMSG_DATA(cmsg); in extract_local()
1137 local->s_in.sin_family = AF_INET; in extract_local()
1138 local->s_in.sin_port = data->local_addr.s_in.sin_port; in extract_local()
1155 local->s_in6.sin6_addr = in extract_local()
1157 local->s_in6.sin6_family = AF_INET6; in extract_local()
1158 local->s_in6.sin6_port = data->local_addr.s_in6.sin6_port; in extract_local()
1159 local->s_in6.sin6_scope_id = in extract_local()
1161 local->s_in6.sin6_flowinfo = 0; in extract_local()
1173 static int pack_local(BIO *b, MSGHDR_TYPE *mh, const BIO_ADDR *local) { in pack_local() argument
1196 info->ipi_spec_dst = local->s_in.sin_addr; in pack_local()
1207 if (local->s_in.sin_port != 0 in pack_local()
1208 && data->local_addr.s_in.sin_port != local->s_in.sin_port) { in pack_local()
1230 if (local->s_in.sin_addr.s_addr == data->local_addr.s_in.sin_addr.s_addr) { in pack_local()
1242 *info = local->s_in.sin_addr; in pack_local()
1245 if (local->s_in.sin_port != 0 in pack_local()
1246 && data->local_addr.s_in.sin_port != local->s_in.sin_port) { in pack_local()
1270 info->ipi6_addr = local->s_in6.sin6_addr; in pack_local()
1277 if (local->s_in6.sin6_port != 0 in pack_local()
1278 && data->local_addr.s_in6.sin6_port != local->s_in6.sin6_port) { in pack_local()
1283 if (local->s_in6.sin6_scope_id != 0 in pack_local()
1284 && data->local_addr.s_in6.sin6_scope_id != local->s_in6.sin6_scope_id) { in pack_local()
1377 if (BIO_MSG_N(msg, stride, i).local != NULL) { in dgram_sendmmsg()
1385 BIO_MSG_N(msg, stride, i).local) < 1) { in dgram_sendmmsg()
1415 if (msg->local != NULL) { in dgram_sendmmsg()
1422 if (pack_local(b, &mh, msg->local) < 1) { in dgram_sendmmsg()
1447 if (msg[0].local != NULL) { in dgram_sendmmsg()
1454 if (pack_local(b, &wmsg, msg[0].local) < 1) { in dgram_sendmmsg()
1478 if (msg[0].local != NULL) { in dgram_sendmmsg()
1579 if (BIO_MSG_N(msg, stride, i).local != NULL && !have_local_enabled) { in dgram_recvmmsg()
1601 if (BIO_MSG_N(msg, stride, i).local != NULL) in dgram_recvmmsg()
1603 BIO_MSG_N(msg, stride, i).local) < 1) in dgram_recvmmsg()
1610 BIO_ADDR_clear(msg->local); in dgram_recvmmsg()
1623 if (msg->local != NULL && !have_local_enabled) { in dgram_recvmmsg()
1643 if (msg->local != NULL) in dgram_recvmmsg()
1644 if (extract_local(b, &mh, msg->local) < 1) in dgram_recvmmsg()
1666 BIO_ADDR_clear(msg->local); in dgram_recvmmsg()
1678 if (msg[0].local != NULL && !have_local_enabled) { in dgram_recvmmsg()
1693 if (msg[0].local != NULL) in dgram_recvmmsg()
1694 if (extract_local(b, &wmsg, msg[0].local) < 1) in dgram_recvmmsg()
1711 BIO_ADDR_clear(msg[0].local); in dgram_recvmmsg()
1721 if (msg[0].local != NULL) { in dgram_recvmmsg()