19 Route(): gateway(0), mtu(0), metric(0), iface(0) {}
20 Route(const IPAddr& gateway, unsigned mtu, unsigned metric, Dev& iface):
21 gateway(gateway), mtu(mtu), metric(metric), iface(&iface) {}
25 std::map< IPAddr, Route > table;
27 /// Interfaz por default
31 RouteTable(Dev& default_iface);
34 void add(const IPAddr& net, const IPAddr& gw, unsigned mtu, unsigned metric, Dev& iface);
37 void del(const IPAddr& net);
39 /// Obtiene dirección e interfaz por la cual salir para un destino
40 Route* get(const IPAddr& dst);
44 #endif // _ROUTETABLE_H_
46 // vim: set et sw=4 sts=4 :