X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/0a2739fe97762f57a80599ef170df98e07422a3d..26fc1173c5122fd73d1cd2191e20d49fef1e1f32:/practicas/pipi/src/routetable.cpp diff --git a/practicas/pipi/src/routetable.cpp b/practicas/pipi/src/routetable.cpp index 66ccd80..4a043cd 100644 --- a/practicas/pipi/src/routetable.cpp +++ b/practicas/pipi/src/routetable.cpp @@ -1,4 +1,7 @@ #include "routetable.h" +#ifdef DEBUG +#include +#endif RouteTable::RouteTable(Dev& default_iface): default_iface(default_iface) { @@ -7,6 +10,10 @@ RouteTable::RouteTable(Dev& default_iface): default_iface(default_iface) void RouteTable::add(const IPAddr& net, const IPAddr& gw, unsigned metric, Dev& iface) { table[net] = Route(gw, metric, iface); +#ifdef DEBUG + std::cout << "Se agregó tabla para " << net << ": gw = " << gw + << ", metric = " << metric << "\n"; +#endif } void RouteTable::del(const IPAddr& net)