X-Git-Url: https://git.llucax.com/z.facultad/75.74/practicos.git/blobdiff_plain/9145fe7228349a5f457d65f33b7888d2b69b6306..659563a75d668130df84664e7e6b1220667cbc28:/practicas/pipi/src/dev.h?ds=inline diff --git a/practicas/pipi/src/dev.h b/practicas/pipi/src/dev.h index f8bd771..129f78f 100644 --- a/practicas/pipi/src/dev.h +++ b/practicas/pipi/src/dev.h @@ -4,6 +4,7 @@ #include #define DEV_DEFAULT_KEY 0x1abcdef1 +#define DEV_MAX_MTU 1500 /// Dispositivo de red (capa de enlace) struct Dev @@ -22,8 +23,8 @@ struct Dev int que_id; /// Constructor - Dev(mac_type mac, size_t mtu = 1500, key_t key = DEV_DEFAULT_KEY) - throw (std::runtime_error); + Dev(mac_type mac, size_t mtu = DEV_MAX_MTU, key_t key = DEV_DEFAULT_KEY) + throw (std::runtime_error, std::logic_error); /// Envía un frame void transmit(const std::string& data, const mac_type& mac)