lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Multiple interfaces Query


From: Kieran Mansley
Subject: Re: [lwip-users] Multiple interfaces Query
Date: Tue, 01 Nov 2011 13:02:52 +0000

On Mon, 2011-10-31 at 13:05 +0000, Dance, Brian wrote:
>  Is it possible to set two different IP addresses for one hardware
> interface with lwip 1.4.0?  Is it as simple as doing a netif_add and a
> netif_set_up for the second IP?

You would need two netifs rather than just calling netif_add() a second
time on the same netif with a different IP.  This is likely to be
something that is not often used in lwIP, so there may be other issues,
but it should be possible.  Your driver will need to pass the received
packets up to the correct netif, which might be difficult as it may not
know which is which - normally a driver has only a single netif per
hardware interface and so doesn't have to worry about that.

Kieran 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]