Safety net

This commit is contained in:
Baptiste Wicht 2016-07-10 12:27:24 +02:00
parent 3a3dff93e1
commit ab8c9534f6

View File

@ -81,6 +81,9 @@ void network::ethernet::decode(network::interface_descriptor& interface, packet&
case ether_type::UNKNOWN:
logging::logf(logging::log_level::TRACE, "ethernet: Unhandled Packet Type: %u\n", uint64_t(switch_endian_16(ether_header->type)));
break;
default:
logging::logf(logging::log_level::ERROR, "ethernet: Unhandled Packet Type in switch: %u\n", uint64_t(switch_endian_16(ether_header->type)));
break;
}
}