[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] LwIP and DONTROUTE flag
From: |
Kieran Mansley |
Subject: |
Re: [lwip-users] LwIP and DONTROUTE flag |
Date: |
Sun, 3 Apr 2011 11:47:33 +0100 |
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