mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-10 01:23:48 +08:00
netif: Add getter for loopif for unit tests
This commit is contained in:
@@ -143,6 +143,14 @@ static err_t netif_loop_output_ipv6(struct netif *netif, struct pbuf *p, const i
|
||||
|
||||
static struct netif loop_netif;
|
||||
|
||||
#if LWIP_TESTMODE
|
||||
struct netif* netif_get_loopif(void)
|
||||
{
|
||||
return &loop_netif;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
* Initialize a lwip network interface structure for a loopback interface
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user