|
From: | Marcelo Mollo |
Subject: | [lwip-users] LwIP virtual netif |
Date: | Mon, 20 Nov 2017 22:40:21 +0100 |
I’m using LwIP v2.0.0 (together wih freeRTOS v9.0) in
a system with a single ethernet controller (STM32F779NI). The application must
work with two different subnetworks (let’s say 192.168.1.0 and 10.0.0.0).
The virtual interface belongs to the second subnetwork. Searching in internet I found these old threads that
just talk about what I need: 1)
[lwip-users] multiple IP addresses on network
interface https://lists.gnu.org/archive/html/lwip-users/2012-12/msg00031.html 2)
[lwip-users] LWIP and second IP feasible? http://lists.nongnu.org/archive/html/lwip-users/2011-03/msg00056.html I tried with the macros LWIP_ARP_FILTER_NETIF and
LWIP_ARP_FILTER_NETIF_FN() but I’m having problems to get it working. The
behavior of the virtual netif is quite irregular (I pinged both IPs continously
and after a while, the virtual interface stops sending ping replies). Could anyone please tell me how the filter must be properly
implemented? I used the technique to change the netif returned by
LWIP_ARP_FILTER_NETIF_FN() based on the destination IP address. Just another question. In the second thread there is a
mention to multiple netifs implemented in IPv6 that can be taken as a hint. I
did not find any reference to the multiple addresses per netif implemented in
IPv6. Could anyone please tell me where I can find it? Thandk you in advance. Marcelo |
[Prev in Thread] | Current Thread | [Next in Thread] |