<< " de " << src << " para " << dst << " (proto = "
<< unsigned(proto) << ")\n";
#endif
- if (proto == NAMESERVER_PROTO) // Si es para nosotros
+ if (proto == RESOLV_PROTO) // Si es para nosotros
{
rp_pkt_type_t type;
memcpy(&type, s.c_str(), sizeof(uint8_t));
#ifdef DEBUG_RESOLV
std::cout << "NameServer::send_loop() -> respondo " << res << "\n";
#endif
- ipout.send(res, NAMESERVER_PROTO, IPAddr(mac));
+ ipout.send(res, RESOLV_PROTO, IPAddr(mac));
}
else if (!snd_que.empty()) // Hay un request para enviar
{
std::cout << "NameServer::send_loop() -> envío request "
<< ResolvProtoRequest(buf) << "\n";
#endif
- ipout.send(buf, NAMESERVER_PROTO, IPAddr(mac));
+ ipout.send(buf, RESOLV_PROTO, IPAddr(mac));
}
else // No hay nada, esperamos un rato
{