net: remove doarp flag from netdev

This commit is contained in:
Matheus
2024-04-10 19:53:42 -03:00
parent 231eb98375
commit 4a15120f7a
4 changed files with 3 additions and 8 deletions
+3 -5
View File
@@ -168,11 +168,9 @@ int ipv4_sendpacket(void *buffer, size_t packetsize, uint32_t ip, int proto, net
if (entry.netdev == NULL)
return 0; // if a packet can't be routed to anywhere just pretend it was sent somewhere
if (entry.netdev->doarp) {
int error = arp_lookup(entry.netdev, entry.gateway ? entry.gateway : ip, &mac);
if (error)
return error;
}
int error = arp_lookup(entry.netdev, entry.gateway ? entry.gateway : ip, &mac);
if (error)
return error;
netdev = entry.netdev;
} else {