mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-14 23:16:55 -04:00
Refactor
This commit is contained in:
parent
234ea4f11a
commit
e91631b2f2
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user