Searched refs:source_addr (Results 1 – 6 of 6) sorted by relevance
/external/dnsmasq/src/ |
D | network.c | 589 if (sockaddr_isequal(&sfd->source_addr, addr) && in allocate_sfd() 614 sfd->source_addr = *addr; in allocate_sfd() 651 !allocate_sfd(&srv->source_addr, srv->interface) && in pre_allocate_sfds() 701 !(new->sfd = allocate_sfd(&new->source_addr, new->interface)) && in check_servers() 778 union mysockaddr addr, source_addr; in set_servers() local 780 memset(&source_addr, 0, sizeof(source_addr)); in set_servers() 785 source_addr.in.sin_len = addr.in.sin_len = sizeof(source_addr.in); in set_servers() 787 source_addr.in.sin_family = addr.in.sin_family = AF_INET; in set_servers() 789 source_addr.in.sin_addr.s_addr = INADDR_ANY; in set_servers() 790 source_addr.in.sin_port = htons(daemon->query_port); in set_servers() [all …]
|
D | dbus.c | 104 union mysockaddr addr, source_addr; in dbus_read_servers() local 126 source_addr.in.sin_len = addr.in.sin_len = sizeof(struct sockaddr_in); in dbus_read_servers() 129 source_addr.in.sin_family = addr.in.sin_family = AF_INET; in dbus_read_servers() 131 source_addr.in.sin_addr.s_addr = INADDR_ANY; in dbus_read_servers() 132 source_addr.in.sin_port = htons(daemon->query_port); in dbus_read_servers() 156 source_addr.in6.sin6_len = addr.in6.sin6_len = sizeof(struct sockaddr_in6); in dbus_read_servers() 158 source_addr.in6.sin6_family = addr.in6.sin6_family = AF_INET6; in dbus_read_servers() 160 source_addr.in6.sin6_flowinfo = addr.in6.sin6_flowinfo = 0; in dbus_read_servers() 161 source_addr.in6.sin6_scope_id = addr.in6.sin6_scope_id = 0; in dbus_read_servers() 162 source_addr.in6.sin6_addr = in6addr_any; in dbus_read_servers() [all …]
|
D | forward.c | 565 union mysockaddr source_addr; in receive_query() local 611 msg.msg_name = &source_addr; in receive_query() 612 msg.msg_namelen = sizeof(source_addr); in receive_query() 624 source_addr.sa.sa_family = listen->family; in receive_query() 627 source_addr.in6.sin6_flowinfo = 0; in receive_query() 694 (struct all_addr *)&source_addr.in.sin_addr, types); in receive_query() 698 (struct all_addr *)&source_addr.in6.sin6_addr, types); in receive_query() 707 m, &source_addr, &dst_addr, if_index); in receive_query() 710 else if (forward_query(listen->fd, &source_addr, &dst_addr, if_index, in receive_query() 818 (!local_bind(last_server->tcpfd, &last_server->source_addr, last_server->interface, 1) || in tcp_request()
|
D | option.c | 1455 newlist->source_addr.in.sin_port = htons(source_port); in one_opt() 1456 newlist->addr.sa.sa_family = newlist->source_addr.sa.sa_family = AF_INET; in one_opt() 1458 newlist->source_addr.in.sin_len = newlist->addr.in.sin_len = sizeof(struct sockaddr_in); in one_opt() 1463 if ((newlist->source_addr.in.sin_addr.s_addr = inet_addr(source)) == (in_addr_t) -1) in one_opt() 1466 newlist->source_addr.in.sin_addr.s_addr = INADDR_ANY; in one_opt() 1474 newlist->source_addr.in.sin_addr.s_addr = INADDR_ANY; in one_opt() 1480 newlist->source_addr.in6.sin6_port = htons(source_port); in one_opt() 1481 newlist->addr.sa.sa_family = newlist->source_addr.sa.sa_family = AF_INET6; in one_opt() 1483 newlist->addr.in6.sin6_len = newlist->source_addr.in6.sin6_len = sizeof(newlist->addr.in6); in one_opt() 1488 if (inet_pton(AF_INET6, source, &newlist->source_addr.in6.sin6_addr) == 0) in one_opt() [all …]
|
D | dnsmasq.h | 321 union mysockaddr source_addr; member 332 union mysockaddr addr, source_addr; member
|
D | dnsmasq.c | 1092 reply_query(serverfdp->fd, serverfdp->source_addr.sa.sa_family, now); in check_dns_listeners()
|