Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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.
 
static int net_promisc_mode_on (struct net_if *iface)
 Enable promiscuous mode for a given network interface.
 
static int net_promisc_mode_off (struct net_if *iface)
 Disable promiscuous mode for a given network interface.
 

Detailed Description

Promiscuous mode support.

Since
1.13
Version
0.8.0

Function Documentation

◆ 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
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 <zephyr/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 <zephyr/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.