From c37cc76f9b42a4333ad4eaf998a5fd9cc3139706 Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Tue, 9 Jul 2024 10:12:26 +0100 Subject: [PATCH] - Linux Ethernet Socket: set interface to promisc mode by default --- hal/ethernet/linux/ethernet_linux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hal/ethernet/linux/ethernet_linux.c b/hal/ethernet/linux/ethernet_linux.c index ebf66c4d..9ad6da8d 100644 --- a/hal/ethernet/linux/ethernet_linux.c +++ b/hal/ethernet/linux/ethernet_linux.c @@ -208,6 +208,8 @@ Ethernet_createSocket(const char* interfaceId, uint8_t* destAddress) memcpy(ethernetSocket->socketAddress.sll_addr, destAddress, 6); ethernetSocket->isBind = false; + + Ethernet_setMode(ethernetSocket, ETHERNET_SOCKET_MODE_PROMISC); } return ethernetSocket;