File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
source/portable/NetworkInterface/libslirp Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,9 @@ extern void vMBuffNetifBackendDeInit( void * pvBackendContext );
7777
7878static void vNetifReceiveTask ( void * pvParameters );
7979
80+ extern NetworkInterface_t * pxLibslirp_FillInterfaceDescriptor ( BaseType_t xEMACIndex ,
81+ NetworkInterface_t * pxInterface );
82+
8083/**
8184 * @brief Initialize the MessageBuffer backed network interface.
8285 *
@@ -381,6 +384,21 @@ BaseType_t xGetPhyLinkStatus( NetworkInterface_t * pxNetif )
381384 return xResult ;
382385}
383386
387+
388+ #if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
389+
390+
391+ /* Do not call the following function directly. It is there for downward compatibility.
392+ * The function FreeRTOS_IPInit() will call it to initialice the interface and end-point
393+ * objects. See the description in FreeRTOS_Routing.h. */
394+ NetworkInterface_t * pxFillInterfaceDescriptor ( BaseType_t xEMACIndex ,
395+ NetworkInterface_t * pxInterface )
396+ {
397+ return pxLibslirp_FillInterfaceDescriptor ( xEMACIndex , pxInterface );
398+ }
399+
400+ #endif
401+
384402NetworkInterface_t * pxLibslirp_FillInterfaceDescriptor ( BaseType_t xEMACIndex ,
385403 NetworkInterface_t * pxInterface )
386404{
You can’t perform that action at this time.
0 commit comments