Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
Promiscuous mode

Promiscuous mode support. More...

Functions

static struct net_pktnet_promisc_mode_wait_data (k_timeout_t timeout)
 Start to wait received network packets. More...
 
static int net_promisc_mode_on (struct net_if *iface)
 Enable promiscuous mode for a given network interface. More...
 
static int net_promisc_mode_off (struct net_if *iface)
 Disable promiscuous mode for a given network interface. More...
 

Detailed Description

Promiscuous mode support.

Function Documentation

◆ net_promisc_mode_off()

static int net_promisc_mode_off ( struct net_if iface)
inlinestatic

#include <include/net/promiscuous.h>

Disable promiscuous mode for a given network interface.

Parameters
ifaceNetwork interface
Returns
0 if ok, <0 if error

◆ net_promisc_mode_on()

static int net_promisc_mode_on ( struct net_if iface)
inlinestatic

#include <include/net/promiscuous.h>

Enable promiscuous mode for a given network interface.

Parameters
ifaceNetwork interface
Returns
0 if ok, <0 if error

◆ net_promisc_mode_wait_data()

static struct net_pkt * net_promisc_mode_wait_data ( k_timeout_t  timeout)
inlinestatic

#include <include/net/promiscuous.h>

Start to wait received network packets.

Parameters
timeoutHow long to wait before returning.
Returns
Received net_pkt, NULL if not received any packet.