X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/cc20509697bcad0600d4622c275b53ac65445776..ee2c9342f9c89340987e8f4cfec54a7c05c532a8:/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 {