mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Removed "static" from declaration of netif in ip_forward and ip_output
(Bug #1909)
This commit is contained in:
parent
3984e521ad
commit
771fb0f2cd
@ -158,7 +158,7 @@ ip_route(struct ip_addr *dest)
|
|||||||
static void
|
static void
|
||||||
ip_forward(struct pbuf *p, struct ip_hdr *iphdr, struct netif *inp)
|
ip_forward(struct pbuf *p, struct ip_hdr *iphdr, struct netif *inp)
|
||||||
{
|
{
|
||||||
static struct netif *netif;
|
struct netif *netif;
|
||||||
|
|
||||||
PERF_START;
|
PERF_START;
|
||||||
|
|
||||||
@ -539,8 +539,7 @@ err_t
|
|||||||
ip_output(struct pbuf *p, struct ip_addr *src, struct ip_addr *dest,
|
ip_output(struct pbuf *p, struct ip_addr *src, struct ip_addr *dest,
|
||||||
u8_t ttl, u8_t proto)
|
u8_t ttl, u8_t proto)
|
||||||
{
|
{
|
||||||
static struct netif *netif;
|
struct netif *netif;
|
||||||
|
|
||||||
|
|
||||||
if((netif = ip_route(dest)) == NULL) {
|
if((netif = ip_route(dest)) == NULL) {
|
||||||
DEBUGF(IP_DEBUG, ("ip_output: No route to 0x%lx\n", dest->addr));
|
DEBUGF(IP_DEBUG, ("ip_output: No route to 0x%lx\n", dest->addr));
|
||||||
|
Loading…
Reference in New Issue
Block a user