12#ifndef ZEPHYR_INCLUDE_NET_NET_OFFLOAD_H_
13#define ZEPHYR_INCLUDE_NET_NET_OFFLOAD_H_
30#if defined(CONFIG_NET_OFFLOAD)
142static inline int net_offload_get(
struct net_if *
iface,
168static inline int net_offload_bind(
struct net_if *
iface,
192static inline int net_offload_listen(
struct net_if *
iface,
232static inline int net_offload_connect(
struct net_if *
iface,
245 context, addr, addrlen, cb,
277static inline int net_offload_accept(
struct net_if *
iface,
319static inline int net_offload_send(
struct net_if *
iface,
363static inline int net_offload_sendto(
struct net_if *
iface,
376 pkt, dst_addr, addrlen, cb,
414static inline int net_offload_recv(
struct net_if *
iface,
443static inline int net_offload_put(
struct net_if *
iface,
457static inline int net_offload_get(
struct net_if *
iface,
466static inline int net_offload_bind(
struct net_if *
iface,
474static inline int net_offload_listen(
struct net_if *
iface,
481static inline int net_offload_connect(
struct net_if *
iface,
492static inline int net_offload_accept(
struct net_if *
iface,
501static inline int net_offload_send(
struct net_if *
iface,
510static inline int net_offload_sendto(
struct net_if *
iface,
521static inline int net_offload_recv(
struct net_if *
iface,
530static inline int net_offload_put(
struct net_if *
iface,
ZTEST_BMEM int timeout
Definition: main.c:31
#define K_FOREVER
Generate infinite timeout delay.
Definition: kernel.h:1186
#define K_NO_WAIT
Generate null timeout delay.
Definition: kernel.h:1076
#define K_TIMEOUT_EQ(a, b)
Compare timeouts for equality.
Definition: sys_clock.h:80
unsigned short int sa_family_t
Definition: net_ip.h:158
net_sock_type
Definition: net_ip.h:84
size_t socklen_t
Definition: net_ip.h:161
net_ip_protocol
Definition: net_ip.h:62
void(* net_context_recv_cb_t)(struct net_context *context, struct net_pkt *pkt, union net_ip_header *ip_hdr, union net_proto_header *proto_hdr, int status, void *user_data)
Network data receive callback.
Definition: net_context.h:93
void(* net_tcp_accept_cb_t)(struct net_context *new_context, struct sockaddr *addr, socklen_t addrlen, int status, void *user_data)
Accept callback.
Definition: net_context.h:134
void(* net_context_send_cb_t)(struct net_context *context, int status, void *user_data)
Network data send callback.
Definition: net_context.h:114
void(* net_context_connect_cb_t)(struct net_context *context, int status, void *user_data)
Connection callback.
Definition: net_context.h:161
static struct net_offload * net_if_offload(struct net_if *iface)
Return the IP offload plugin.
Definition: net_if.h:644
Network context definitions.
IPv6 and IPv4 definitions.
__INT32_TYPE__ int32_t
Definition: stdint.h:44
Kernel timeout type.
Definition: sys_clock.h:65
Definition: net_context.h:201
int8_t iface
Definition: net_context.h:325
Network Interface structure.
Definition: net_if.h:468
Network packet.
Definition: net_pkt.h:62
static uint32_t k_ticks_to_ms_floor32(uint32_t t)
Convert ticks to milliseconds.
Definition: time_units.h:1055
static const intptr_t user_data[5]
Definition: main.c:590
NMI_API sint8 connect(SOCKET sock, struct sockaddr *pstrAddr, uint8 u8AddrLen)
NMI_API sint8 listen(SOCKET sock, uint8 backlog)
NMI_API sint16 sendto(SOCKET sock, void *pvSendBuffer, uint16 u16SendLength, uint16 flags, struct sockaddr *pstrDestAddr, uint8 u8AddrLen)
NMI_API sint16 send(SOCKET sock, void *pvSendBuffer, uint16 u16SendLength, uint16 u16Flags)
NMI_API sint8 bind(SOCKET sock, struct sockaddr *pstrAddr, uint8 u8AddrLen)
NMI_API sint8 accept(SOCKET sock, struct sockaddr *addr, uint8 *addrlen)
NMI_API sint16 recv(SOCKET sock, void *pvRecvBuf, uint16 u16BufLen, uint32 u32Timeoutmsec)