Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

#include <dummy.h>

Data Fields

struct net_if_api iface_api
 The net_if_api must be placed in first position in this struct so that we are compatible with network interface API.
 
int(* send )(const struct device *dev, struct net_pkt *pkt)
 Send a network packet.
 
enum net_verdict(* recv )(struct net_if *iface, struct net_pkt *pkt)
 Receive a network packet (only limited use for this, for example receiving capturing packets and post processing them).
 
int(* start )(const struct device *dev)
 Start the device.
 
int(* stop )(const struct device *dev)
 Stop the device.
 

Field Documentation

◆ iface_api

struct net_if_api dummy_api::iface_api

The net_if_api must be placed in first position in this struct so that we are compatible with network interface API.

◆ recv

enum net_verdict(* dummy_api::recv) (struct net_if *iface, struct net_pkt *pkt)

Receive a network packet (only limited use for this, for example receiving capturing packets and post processing them).

◆ send

int(* dummy_api::send) (const struct device *dev, struct net_pkt *pkt)

Send a network packet.

◆ start

int(* dummy_api::start) (const struct device *dev)

Start the device.

Called when the bound network interface is brought up.

◆ stop

int(* dummy_api::stop) (const struct device *dev)

Stop the device.

Called when the bound network interface is taken down.


The documentation for this struct was generated from the following file: