- 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)
+ throw (std::runtime_error, std::logic_error):
+ mac(mac), mtu(mtu)
+ {
+ if (mtu > DEV_MAX_MTU)
+ throw std::logic_error("MTU más grande que DEV_MAX_MTU");
+ }