X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/0a2739fe97762f57a80599ef170df98e07422a3d..659563a75d668130df84664e7e6b1220667cbc28:/practicas/pipi/src/routetable.cpp diff --git a/practicas/pipi/src/routetable.cpp b/practicas/pipi/src/routetable.cpp index 66ccd80..3363952 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)