lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] manage pbuf using multiple netif on the same hw


From: Piero 74
Subject: [lwip-devel] manage pbuf using multiple netif on the same hw
Date: Wed, 20 Feb 2008 14:12:11 +0100

Hi all!

i need to define TWO different netif on the same HW, which work in this way:

- the first is binded on FIXED ip, ie. 192.168.0.1 and is always up
- the second use DHCP, and can change IP dependingo on network.

the idea is to have always the possibility to comunicate with board using the first and PC application (i.e. PC and board connecting on the same hub) , so it could be possible read DHCP status (if new ip is avalaible and what is the ip)

but i have some doubts about ethernetif.c implementation:

if i have ONLY one netif:
- if a packet is received on hw, my code build pbuf (it based on scheleton) and call tcpip_input using current netif and pbuf.

if i have MORE netif linked on the same hw interface (but configured with different IP,GW,MAsk)
- if a packet is received on hw, my code build pbuf (it based on scheleton) and call tcpip_input using the same pbuf FOR EACH netif?? so, i will have more msgs to tcp_ip thread with the same pbuf!
  OR i have to build A PBUF FOR EACH NETIF using the same payload? (in this case... i have to spend time for copy)


Any suggests?

Tahnks,
Piero

reply via email to

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