Promiscuous mode support.
More...
Promiscuous mode support.
◆ net_promisc_mode_off()
static int net_promisc_mode_off |
( |
struct net_if * |
iface | ) |
|
|
inlinestatic |
#include <zephyr/net/promiscuous.h>
Disable promiscuous mode for a given network interface.
- Parameters
-
- Returns
- 0 if ok, <0 if error
◆ net_promisc_mode_on()
static int net_promisc_mode_on |
( |
struct net_if * |
iface | ) |
|
|
inlinestatic |
#include <zephyr/net/promiscuous.h>
Enable promiscuous mode for a given network interface.
- Parameters
-
- Returns
- 0 if ok, <0 if error
◆ net_promisc_mode_wait_data()
#include <zephyr/net/promiscuous.h>
Start to wait received network packets.
- Parameters
-
timeout | How long to wait before returning. |
- Returns
- Received net_pkt, NULL if not received any packet.