Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
|
Network core library . More...
Enumerations | |
enum | net_verdict { NET_OK , NET_CONTINUE , NET_DROP } |
Net Verdict. More... | |
Functions | |
int | net_recv_data (struct net_if *iface, struct net_pkt *pkt) |
Called by lower network stack or network device driver when a network packet has been received. | |
int | net_send_data (struct net_pkt *pkt) |
Send data to network. | |
Network core library .
enum net_verdict |
#include <zephyr/net/net_core.h>
Net Verdict.
Enumerator | |
---|---|
NET_OK | Packet has been taken care of. |
NET_CONTINUE | Packet has not been touched, other part should decide about its fate. |
NET_DROP | Packet must be dropped. |
#include <zephyr/net/net_core.h>
Called by lower network stack or network device driver when a network packet has been received.
The function will push the packet up in the network stack for further processing.
iface | Network interface where the packet was received. |
pkt | Network packet data. |
int net_send_data | ( | struct net_pkt * | pkt | ) |
#include <zephyr/net/net_core.h>
Send data to network.
Send data to network. This should not be used normally by applications as it requires that the network packet is properly constructed.
pkt | Network packet. |