This commit is contained in:
Baptiste Wicht 2016-07-06 21:20:34 +02:00
parent 234ea4f11a
commit e91631b2f2

View File

@ -48,8 +48,10 @@ void network::arp::decode(network::ethernet::packet& packet){
return;
}
if(operation == 0x1){
logging::logf(logging::log_level::TRACE, "arp: Handle Request\n");
if (operation != 0x1 && operation != 0x2) {
logging::logf(logging::log_level::TRACE, "arp: Unhandled operation %h\n", size_t(operation));
return;J
}
size_t source_hw = 0;
size_t target_hw = 0;
@ -81,10 +83,13 @@ void network::arp::decode(network::ethernet::packet& packet){
logging::logf(logging::log_level::TRACE, "arp: Target Protocol Address %u.%u.%u.%u \n",
uint64_t(target_prot[0]), uint64_t(target_prot[1]), uint64_t(target_prot[2]), uint64_t(target_prot[3]));
if(operation == 0x1){
logging::logf(logging::log_level::TRACE, "arp: Handle Request\n");
//TODO
} else if(operation == 0x2){
logging::logf(logging::log_level::TRACE, "arp: Handle Query\n");
} else {
logging::logf(logging::log_level::TRACE, "arp: Unhandled operation %h\n", size_t(operation));
//TODO
}
}