Lines Matching +full:ip +full:- +full:addr
4 * SPDX-License-Identifier: Apache-2.0
9 * @brief Public API for offloading IP stack
41 return -1; in timeout_to_int32()
62 * This function is called when user wants to bind to local IP address.
65 const struct sockaddr *addr,
79 const struct sockaddr *addr,
128 * @brief Get a network socket/context from the offloaded IP stack.
131 * 5-tuple (protocol, remote address, remote port, source
135 * @param iface Network interface where the offloaded IP stack can be
137 * @param family IP address family (AF_INET or AF_INET6)
139 * @param ip_proto IP protocol, IPPROTO_UDP or IPPROTO_TCP
152 NET_ASSERT(net_if_offload(iface)->get); in net_offload_get()
154 return net_if_offload(iface)->get(family, type, ip_proto, context); in net_offload_get()
162 * @param iface Network interface where the offloaded IP stack can be
165 * @param addr Address to assigned.
172 const struct sockaddr *addr, in net_offload_bind() argument
177 NET_ASSERT(net_if_offload(iface)->bind); in net_offload_bind()
179 return net_if_offload(iface)->bind(context, addr, addrlen); in net_offload_bind()
187 * @param iface Network interface where the offloaded IP stack can be
200 NET_ASSERT(net_if_offload(iface)->listen); in net_offload_listen()
202 return net_if_offload(iface)->listen(context, backlog); in net_offload_listen()
209 * connection to the host specified by addr. After the
210 * connection is established, the user-supplied callback (cb)
217 * @param iface Network interface where the offloaded IP stack can be
220 * @param addr The peer address to connect to.
231 * @return -EINVAL if an invalid parameter is passed as an argument.
232 * @return -ENOTSUP if the operation is not supported or implemented.
236 const struct sockaddr *addr, in net_offload_connect() argument
244 NET_ASSERT(net_if_offload(iface)->connect); in net_offload_connect()
246 return net_if_offload(iface)->connect( in net_offload_connect()
247 context, addr, addrlen, cb, in net_offload_connect()
263 * After the connection is established a caller-supplied callback is called.
269 * @param iface Network interface where the offloaded IP stack can be
272 * @param cb Caller-supplied callback function.
275 * @param user_data Caller-supplied user data.
287 NET_ASSERT(net_if_offload(iface)->accept); in net_offload_accept()
289 return net_if_offload(iface)->accept( in net_offload_accept()
303 * a caller-supplied callback is called. The callback is called even
311 * @param iface Network interface where the offloaded IP stack can be
314 * @param cb Caller-supplied callback function.
317 * @param user_data Caller-supplied user data.
329 NET_ASSERT(net_if_offload(iface)->send); in net_offload_send()
331 return net_if_offload(iface)->send( in net_offload_send()
346 * is sent, a caller-supplied callback is called. The callback is called
352 * @param iface Network interface where the offloaded IP stack can be
358 * @param cb Caller-supplied callback function.
361 * @param user_data Caller-supplied user data.
375 NET_ASSERT(net_if_offload(iface)->sendto); in net_offload_sendto()
377 return net_if_offload(iface)->sendto( in net_offload_sendto()
396 * After the network packet is received, a caller-supplied callback is
406 * @param iface Network interface where the offloaded IP stack can be
409 * @param cb Caller-supplied callback function.
410 * @param timeout Caller-supplied timeout. Possible values
412 * @param user_data Caller-supplied user data.
424 NET_ASSERT(net_if_offload(iface)->recv); in net_offload_recv()
426 return net_if_offload(iface)->recv( in net_offload_recv()
439 * @param iface Network interface where the offloaded IP stack can be
450 NET_ASSERT(net_if_offload(iface)->put); in net_offload_put()
452 return net_if_offload(iface)->put(context); in net_offload_put()
470 const struct sockaddr *addr,
485 const struct sockaddr *addr,