X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/61db0fa798876deeb90fc27f4ebdc207d3a53457..78d6e1ce97611abe9f0d083033197773f93c33f7:/practicas/pipi/src/nameserver.cpp diff --git a/practicas/pipi/src/nameserver.cpp b/practicas/pipi/src/nameserver.cpp index 86f18e8..b007975 100644 --- a/practicas/pipi/src/nameserver.cpp +++ b/practicas/pipi/src/nameserver.cpp @@ -364,7 +364,7 @@ void NameServer::recv_loop() << " 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)); @@ -407,7 +407,7 @@ void NameServer::send_loop() #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 { @@ -417,7 +417,7 @@ void NameServer::send_loop() 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 {