[Top][All Lists]

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

Re: [lwip-users] Lwip with two ethernet ports

From: address@hidden
Subject: Re: [lwip-users] Lwip with two ethernet ports
Date: Fri, 08 May 2015 20:43:14 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

Eason wrote:
My boss assign me a strange project, he wants lwip doing a simple job as a
router, and this device have two ethernet ports, but it has only one network
interface card, the device maybe route for different network segment, eg: send data to

I see what you're talking about. lwIP might do the job, but having only 1 hardware interface and 2 netifs, you have to program some extra (custom) logic to ensure that packets are fed into the correct netif. You only have one RX ISR, so you might need to check the destination address and decide for one of the two netifs before calling netif->input().


reply via email to

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