X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/0a2739fe97762f57a80599ef170df98e07422a3d..cf90d8bc6c8e339682d96ae43959e1dabc5fefb9:/practicas/pipi/src/routetable.cpp?ds=sidebyside 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)