pike.git / lib / modules / Protocols.pmod / DNS.pmod

version» Context lines:

pike.git/lib/modules/Protocols.pmod/DNS.pmod:551:    /* We failed miserably to find a request id to use,    * so we create a second UDP port to be able to have more    * requests 'in the air'. /Hubbe    */    if(!next_client)    next_client=async_client(nameservers,domains);       next_client->do_query(domain, cl, type, callback, @args);    }    -  static private void rec_data() +  static private void rec_data(mapping m)    {    mixed err;    if (err = catch { -  mapping m=udp::read(); +     if(m->port != 53 || search(nameservers, m->ip) == -1) return;    sscanf(m->data,"%2c",int id);    object r=requests[id];    if(!r) return;    m_delete(requests,id);    r->callback(r->domain,decode_res(m->data),@r->args);    destruct(r);    }) {    werror(sprintf("DNS: Failed to read UDP packet. Connection refused?\n"    "%s\n",