lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] UDP routing over IPv6?


From: Barnabás Králik
Subject: [lwip-users] UDP routing over IPv6?
Date: Fri, 19 Jan 2018 10:27:22 +0000

Hi,

 

I’m trying to send a UDP packet in reply to a host outside the LwIP device’s own /64 subnet, but under the same /48 prefix.

The application is listening on port 9000 without a local IP set as IPs come and go. (It is an nRF52832 w/ lwIP 2.0.2 w/o an OS, communicating over 6LoWPAN-over-BLE)

Sending a packet fails with ERR_RTE (from udp.c:619) as ip6_select_source_address does not have any idea what IP address to use.

I also don’t see any reliable way to recover the destination address in the udp receive callback.

My only idea is to set up separate listeners for all IPs but that is wasteful with resources and defeats the purpose of listening on :: .

 

What would be your solution for the issue? Can this be solved in an elegant way without changing LwIP itself?

 

Thanks

Barnabás


reply via email to

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