logo       

detect IP/UDP destination address: msg#00030

network.lwip.general

Subject: detect IP/UDP destination address

Hi,

I have set up an UDP-server using the raw API

upcb= udp_new();
udp_recv( upcb, callback_recv, get_nic_netif() );
udp_bind( upcb, IP_ADDR_ANY, 1234 );

In my callback_recv function I can see the IP address of the UDP-client
so I can reply to it.

But........ I would like to detect if the client sent the incoming UDP
packet using unicast or broadcast (so I can respond with a
corresponding unicats/broacast packet).

Is this possible?

/Beach/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise