X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/810ed30ec72d5339d6efa8a88702b74d95693503..9ee7a97ec97d3dc41e1367f1f457d5ed5d5270ea:/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); } }