/external/dnsmasq/src/ |
D | tftp.c | 230 strcpy(daemon->namebuff, "/"); in tftp_request() 234 daemon->namebuff[0] = 0; in tftp_request() 235 strncat(daemon->namebuff, daemon->tftp_prefix, (MAXDNAME-1) - strlen(daemon->namebuff)); in tftp_request() 237 strncat(daemon->namebuff, "/", (MAXDNAME-1) - strlen(daemon->namebuff)); in tftp_request() 241 size_t oldlen = strlen(daemon->namebuff); in tftp_request() 244 strncat(daemon->namebuff, inet_ntoa(peer.sin_addr), (MAXDNAME-1) - strlen(daemon->namebuff)); in tftp_request() 245 strncat(daemon->namebuff, "/", (MAXDNAME-1) - strlen(daemon->namebuff)); in tftp_request() 248 if (stat(daemon->namebuff, &statbuf) == -1 || !S_ISDIR(statbuf.st_mode)) in tftp_request() 249 daemon->namebuff[oldlen] = 0; in tftp_request() 255 if (strstr(filename, daemon->namebuff) == filename) in tftp_request() [all …]
|
D | forward.c | 211 unsigned int crc = questions_crc(header, plen, daemon->namebuff); in forward_query() 213 unsigned short gotname = extract_request(header, plen, daemon->namebuff, NULL); in forward_query() 237 flags = search_servers(now, &addrp, gotname, daemon->namebuff, &type, &domain); in forward_query() 349 strcpy(daemon->namebuff, "query"); in forward_query() 351 log_query(F_SERVER | F_IPV4 | F_FORWARD, daemon->namebuff, in forward_query() 355 log_query(F_SERVER | F_IPV6 | F_FORWARD, daemon->namebuff, in forward_query() 420 prettyprint_addr(&server->addr, daemon->namebuff); in process_reply() 421 my_syslog(LOG_WARNING, _("nameserver %s refused to do a recursive query"), daemon->namebuff); in process_reply() 427 check_for_bogus_wildcard(header, n, daemon->namebuff, daemon->bogus_addr, now)) in process_reply() 436 extract_request(header, n, daemon->namebuff, NULL) && in process_reply() [all …]
|
D | network.c | 475 prettyprint_addr(&iface->addr, daemon->namebuff); in create_bound_listener() 476 die(_("failed to bind listening socket for %s: %s"), daemon->namebuff, EC_BADNET); in create_bound_listener() 533 int port = prettyprint_addr(&listener->iface->addr, daemon->namebuff); in delete_listener() 534 my_syslog(LOG_INFO, _("Closing listener [%s]:%d"), daemon->namebuff, port); in delete_listener() 658 prettyprint_addr(&iface->addr, daemon->namebuff); in create_bound_listeners() 660 daemon->namebuff, EC_BADNET); in create_bound_listeners() 869 prettyprint_addr(&srv->addr, daemon->namebuff); in pre_allocate_sfds() 872 strcat(daemon->namebuff, " "); in pre_allocate_sfds() 873 strcat(daemon->namebuff, srv->interface); in pre_allocate_sfds() 876 daemon->namebuff, EC_BADNET); in pre_allocate_sfds() [all …]
|
D | rfc2131.c | 350 strcpy(daemon->namebuff, inet_ntoa(context_tmp->start)); in dhcp_reply() 353 ntohl(mess->xid), daemon->namebuff, inet_ntoa(context_tmp->netmask)); in dhcp_reply() 356 ntohl(mess->xid), daemon->namebuff, inet_ntoa(context_tmp->end)); in dhcp_reply() 695 if (sanitise(option_find(mess, sz, OPTION_VENDOR_ID, 1), daemon->namebuff)) in dhcp_reply() 696 my_syslog(MS_DHCP | LOG_INFO, _("%u Vendor class: %s"), ntohl(mess->xid), daemon->namebuff); in dhcp_reply() 697 if (sanitise(option_find(mess, sz, OPTION_USER_CLASS, 1), daemon->namebuff)) in dhcp_reply() 698 my_syslog(MS_DHCP | LOG_INFO, _("%u User class: %s"), ntohl(mess->xid), daemon->namebuff); in dhcp_reply() 907 addrs, print_mac(daemon->namebuff, mac, len)); in dhcp_reply() 1095 print_mac(daemon->namebuff, ltmp->hwaddr, ltmp->hwaddr_len), in dhcp_reply() 1395 print_mac(daemon->namebuff, ext_mac, mac_len); in log_packet() [all …]
|
D | cache.c | 756 char *token = daemon->namebuff, *domain_suffix = NULL; in read_hostsfile() 1050 strcpy(daemon->namebuff, inet_ntoa(crec->addr.addr.addr.addr4)); in cache_add_dhcp_entry() 1055 record_source(crec->uid), daemon->namebuff); in cache_add_dhcp_entry() 1167 char *a, *p = daemon->namebuff; in dump_cache() 1208 my_syslog(LOG_DEBUG, daemon->namebuff); in dump_cache()
|
D | lease.c | 76 &ei, daemon->dhcp_buff2, daemon->namebuff, in lease_init() 84 addr.s_addr = inet_addr(daemon->namebuff); in lease_init()
|
D | dnsmasq.h | 651 char *namebuff; /* MAXDNAME size buffer */ member 718 int extract_addresses(HEADER *header, size_t qlen, char *namebuff, time_t now);
|
D | dbus.c | 398 char *action_str, *addr, *mac = daemon->namebuff; in emit_dbus_signal()
|
D | helper.c | 114 unsigned char *buf = (unsigned char *)daemon->namebuff; in create_helper()
|
D | dnsmasq.c | 187 prettyprint_addr(&if_tmp->addr, daemon->namebuff); in main() 188 die(_("no interface with address %s"), daemon->namebuff, EC_BADNET); in main()
|
D | dhcp.c | 722 char *buff = daemon->namebuff; in dhcp_read_ethers()
|
D | option.c | 2519 char *p, *arg, *start, *buff = daemon->namebuff; in one_file() 2773 daemon->namebuff = buff; in read_opts()
|
D | rfc1035.c | 1133 char *name = daemon->namebuff; in answer_request()
|
/external/curl/lib/ |
D | curl_addrinfo.c | 361 struct namebuff { struct 395 struct namebuff *buf; in Curl_ip2addr() 402 buf = malloc(sizeof(struct namebuff)); in Curl_ip2addr()
|
/external/dnsmasq/contrib/lease-access/ |
D | lease.access.patch | 472 …my_syslog(LOG_INFO, _("Available DHCP range: %s -- %s"), daemon->namebuff, inet_ntoa(context_tmp->…
|