Skip to content

Commit b962780

Browse files
committed
net: Skip checks on outgoing MAC address when ARP PASSTHROUGH is enabled
1 parent 807b424 commit b962780

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/net/ethernet/ethernet.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ namespace net {
6969

7070
debug("<Ethernet OUT> Transmitting %i b, from %s -> %s. Type: 0x%hx\n",
7171
pckt->size(), mac_.str().c_str(), dest.str().c_str(), type);
72+
#ifndef ARP_PASSTHROUGH
7273
Expects(dest.major or dest.minor);
74+
#endif
7375

7476
// Populate ethernet header for each packet in the (potential) chain
7577
// NOTE: It's assumed that chained packets are for the same destination

0 commit comments

Comments
 (0)