X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/0a2739fe97762f57a80599ef170df98e07422a3d..c1b28b595a388df043997c87faf75c06959405d0:/practicas/pipi/src/routetable.h diff --git a/practicas/pipi/src/routetable.h b/practicas/pipi/src/routetable.h index 2fe1586..20f62e8 100644 --- a/practicas/pipi/src/routetable.h +++ b/practicas/pipi/src/routetable.h @@ -13,11 +13,12 @@ struct RouteTable struct Route { IPAddr gateway; + unsigned mtu; unsigned metric; Dev* iface; - Route(): gateway(0), metric(0), iface(0) {} - Route(const IPAddr& gateway, unsigned metric, Dev& iface): - gateway(gateway), metric(metric), iface(&iface) {} + Route(): gateway(0), mtu(0), metric(0), iface(0) {} + Route(const IPAddr& gateway, unsigned mtu, unsigned metric, Dev& iface): + gateway(gateway), mtu(mtu), metric(metric), iface(&iface) {} }; /// Tabla @@ -30,7 +31,7 @@ struct RouteTable RouteTable(Dev& default_iface); /// Agrega ruta - void add(const IPAddr& net, const IPAddr& gw, unsigned metric, Dev& iface); + void add(const IPAddr& net, const IPAddr& gw, unsigned mtu, unsigned metric, Dev& iface); /// Borra ruta void del(const IPAddr& net);