1 /** @file 2 * @brief Packet Socket related functions 3 * 4 * This is not to be included by the application. 5 */ 6 7 /* 8 * Copyright (c) 2019 Intel Corporation 9 * 10 * SPDX-License-Identifier: Apache-2.0 11 */ 12 13 #ifndef __PACKET_SOCKET_H 14 #define __PACKET_SOCKET_H 15 16 #include <zephyr/types.h> 17 18 /** 19 * @brief Called by net_core.c when a network packet is received. 20 * 21 * @param pkt Network packet 22 * 23 */ 24 #if defined(CONFIG_NET_SOCKETS_PACKET) 25 void net_packet_socket_input(struct net_pkt *pkt, uint16_t proto, enum net_sock_type type); 26 #else net_packet_socket_input(struct net_pkt * pkt,uint16_t proto,enum net_sock_type type)27static inline void net_packet_socket_input(struct net_pkt *pkt, 28 uint16_t proto, 29 enum net_sock_type type) 30 { 31 } 32 #endif 33 34 #endif /* __PACKET_SOCKET_H */ 35