Hi Kieran,
thank you for an idea with additional route to a specific IP address. I will try this.
Thank you.
Martin persich


----- Original Message ----- From: "Kieran Mansley" <[email protected]>
To: "Mailing list for lwIP users" <[email protected]>
Sent: Sunday, April 03, 2011 12:47 PM
Subject: Re: [lwip-users] LwIP and DONTROUTE flag



On 2 Apr 2011, at 19:31, Martin Persich wrote:

is in LwIP stack any possibility to send UDP packet to specified IP address
without routing (using of gateway IP address) ?

Which API are you using? It might be possible with a raw socket (i.e. a socket of type raw, not the confusingly named lwIP raw API!) You would be responsible for forming the UDP header etc, but I think this would be worth a try. All normal data sent via lwIP sockets at the TCP and UDP level would be subject to IP routing, and we don't support any of the socket options or flags that would allow you to bypass this.

Another alternative, if you know the address you want to send to to a specific IP address, you could insert a route for that exact address, and so get the result you need.

Kieran


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to