Searched refs:all_addr (Results 1 – 6 of 6) sorted by relevance
/external/dnsmasq/src/ |
D | forward.c | 29 struct all_addr* source, unsigned int iface) { in send_from() 104 static unsigned short search_servers(time_t now, struct all_addr** addrpp, unsigned short qtype, in search_servers() 129 *addrpp = (struct all_addr*) &serv->addr.in.sin_addr; in search_servers() 132 *addrpp = (struct all_addr*) &serv->addr.in6.sin6_addr; in search_servers() 154 *addrpp = (struct all_addr*) &serv->addr.in.sin_addr; in search_servers() 157 *addrpp = (struct all_addr*) &serv->addr.in6.sin6_addr; in search_servers() 183 static int forward_query(int udpfd, union mysockaddr* udpaddr, struct all_addr* dst_addr, in forward_query() 188 struct all_addr* addrp = NULL; in forward_query() 304 (struct all_addr*) &start->addr.in.sin_addr, NULL); in forward_query() 308 (struct all_addr*) &start->addr.in6.sin6_addr, NULL); in forward_query() [all …]
|
D | dnsmasq.h | 195 struct all_addr { struct 260 struct all_addr addr; 379 struct all_addr dest; 650 void log_query(unsigned short flags, char* name, struct all_addr* addr, char* arg); 653 struct crec* cache_find_by_addr(struct crec* crecp, struct all_addr* addr, time_t now, 658 struct crec* cache_insert(char* name, struct all_addr* addr, time_t now, unsigned long ttl, 669 size_t setup_reply(HEADER* header, size_t qlen, struct all_addr* addrp, unsigned short flags, 742 int iface_check(int family, struct all_addr* addr, char* name, int* indexp);
|
D | cache.c | 205 static int cache_scan_free(char* name, struct all_addr* addr, time_t now, unsigned short flags) { in cache_scan_free() 292 struct crec* cache_insert(char* name, struct all_addr* addr, time_t now, unsigned long ttl, in cache_insert() 474 struct crec* cache_find_by_addr(struct crec* crecp, struct all_addr* addr, time_t now, in cache_find_by_addr() 525 static void add_hosts_entry(struct crec* cache, struct all_addr* addr, int addrlen, in add_hosts_entry() 620 struct all_addr addr, saved_addr; in read_hostsfile() 883 if ((crec = cache_find_by_addr(NULL, (struct all_addr*) host_address, 0, F_IPV4))) { in cache_add_dhcp_entry() 885 cache_scan_free(NULL, (struct all_addr*) host_address, 0, F_IPV4 | F_REVERSE); in cache_add_dhcp_entry() 1030 void log_query(unsigned short flags, char* name, struct all_addr* addr, char* arg) { in log_query()
|
D | rfc1035.c | 146 static int in_arpa_name_2_addr(char* namein, struct all_addr* addrp) { in in_arpa_name_2_addr() 154 memset(addrp, 0, sizeof(struct all_addr)); in in_arpa_name_2_addr() 223 for (j = sizeof(struct all_addr) - 1; j > 0; j--) in in_arpa_name_2_addr() 524 struct all_addr addr; in extract_addresses() 730 size_t setup_reply(HEADER* header, size_t qlen, struct all_addr* addrp, unsigned short flags, in setup_reply() 942 struct all_addr addr; in answer_request()
|
D | network.c | 46 int iface_check(int family, struct all_addr* addr, char* name, int* indexp) { in iface_check() 152 !iface_check(AF_INET, (struct all_addr*) &addr->in.sin_addr, ifr.ifr_name, NULL)) in iface_allowed() 161 !iface_check(AF_INET6, (struct all_addr*) &addr->in6.sin6_addr, ifr.ifr_name, &ifindex)) in iface_allowed()
|
D | dhcp.c | 170 if (!iface_check(AF_INET, (struct all_addr*) addrp, ifr.ifr_name, &iface_index)) return; in dhcp_packet() 648 lookup = cache_find_by_addr(NULL, (struct all_addr*) &addr, 0, F_IPV4); in host_from_dns()
|