/* * Copyright (c) 2020 AIIT XUOS Lab * XiUOS is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * http://license.coscl.org.cn/MulanPSL2 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. * See the Mulan PSL v2 for more details. */ /************************************************* History: 1. Date: 2024-08-14 Author: AIIT XUOS Lab Modification: New file lwip_rndis_service.c, in order to avoid rndis compiling other module functions. Refer to $(KERNEL_ROOT)/services/net/libnet/lwip_service.c. *************************************************/ #include "lwip_rndis_service.h" // The interface between lwip and rndis IPC_INTERFACE(Ipc_lwip_rndis_data_recv, 2, dataptr, len, *(size_t *)len, sizeof(size_t)); int ipc_lwip_rndis_data_recv(struct Session* session, void *dataptr, size_t len){ return IPC_CALL(Ipc_lwip_rndis_data_recv)(session, dataptr, &len); }