lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] BRIDGEIF does not forward packets?


From: Simon Goldschmidt
Subject: Re: [lwip-users] BRIDGEIF does not forward packets?
Date: Fri, 23 Apr 2021 19:40:35 +0200
User-agent: K-9 Mail for Android


Am 23. April 2021 18:39:31 MESZ schrieb Tomas Mudrunka <mudrunka@spoje.net>:
>>   bridgeif_initdata_t bridge_initdata = BRIDGEIF_INITDATA1(1, 1024,
>> 16, ETH_ADDR(0, 1, 2, 3, 4, 5));
>>   if(netif_add(&bridge, &ip, &mask, &gw, &bridge_initdata,
>> bridgeif_init, NO_SYS ? netif_input : ethernet_input) == NULL) {
>>      LOG(LL_WARN,("Cannot create bridge!"));
>>   }
>> 
>>   if(netif_add(&mujbus, NULL, NULL, NULL, NULL, mynetif_init, NO_SYS
>?
>> netif_input : tcpip_input) == NULL) {
>>      LOG(LL_WARN,("Cannot create interface!"));
>>   }
>> 
>>   bridgeif_add_port(&bridge, &mujbus);
>>   netif_set_up(&mujbus);
>>   netif_set_up(&bridge);
>
>
>I've been looking bit more to what is going on and it does not even 
>respond to ARP requests...
>Perhaps there is some issue with MAC adresses?
>Maybe i need to set that bridge port to some PROMISCUOUS mode to accept
>
>packets for all HW addresses?
>But i was not able to figure out how that is done in LWIP.

That's not done by lwIP. You'll just need to implement that in your netif 
driver when using it with bridgeif.

Regards,
Simon



reply via email to

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