[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #53125] netif_find(const char *name) cannot return cor
From: |
luocheng |
Subject: |
[lwip-devel] [bug #53125] netif_find(const char *name) cannot return correct netif |
Date: |
Mon, 12 Feb 2018 04:24:51 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0 |
Follow-up Comment #2, bug #53125 (project lwip):
After calling netif_add() to register a new netif, netif->num is increased
every time.
According your way, it doesn't return correct netif due to the following
logic:
netif_find(const char *name)
{
...
if (num == netif->num &&
...
}
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?53125>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/