[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Obtaining destination ip address from udp callback
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] Obtaining destination ip address from udp callback |
Date: |
Thu, 26 Feb 2015 14:15:25 +0100 |
Charles Yarnold wrote:
> Reading through lwip's udp.h and udp.cpp I'm unable to find where I could
> pull this information
> from when the udp recv callback is triggered. It seems to pass the source ip
> and port but not the
> destination ip. Destination ip also doesn't seem to be included in the
> udp_pcb struct, only ports.
You're correct that destination address is not part of the callback arguments.
Have a look at 'ip_current_dest_addr()', defined in ip.h.
Simon