X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/810ed30ec72d5339d6efa8a88702b74d95693503..c1b28b595a388df043997c87faf75c06959405d0:/practicas/pipi/src/ip.cpp diff --git a/practicas/pipi/src/ip.cpp b/practicas/pipi/src/ip.cpp index f3fed6e..b131524 100644 --- a/practicas/pipi/src/ip.cpp +++ b/practicas/pipi/src/ip.cpp @@ -132,7 +132,7 @@ void add_routes(RouteTable& rt, std::istream& is, Dev& dev) iss >> net >> gw >> mtu >> metric; if (net == "0") net = "0.0.0.0"; if (gw == "0") gw = "0.0.0.0"; - rt.add(net.c_str(), gw.c_str(), metric, mtu, dev); + rt.add(net, gw, metric, mtu, dev); } }