[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] udp_recv: read destination address
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] udp_recv: read destination address |
Date: |
Tue, 13 Jan 2015 15:40:58 +0100 |
chrysn wrote:
> updating the libcoap library's lwip port, i'll need to know which
> network address the package i'm just udp_recv'ing was sent to. (this is
> a requirement of rfc7252, which has sections that only apply if the
> receiving address is a multicast address).
>
> has there been any change on this subject since 2006[1]?
Yes: ip_current_dest_addr() (and related defines in ip.h) should be what you
need. But be aware it is only valid during your callback.
Simon