AnsweredAssumed Answered

How to get the destination address of an incoming udp dgram?

Question asked by m.bach on Nov 17, 2014
Latest reply on Nov 21, 2014 by m.bach

Hi Community,

 

I'm looking for a way to tell an incoming IPv4 UDP unicast from incoming IPv4 UDP broadcast.

 

I found this howto, but I canot find 'struct mh' and function recvmsg() MQX v4.1.1:

linux - Get destination address of a received UDP packet - Stack Overflow

 

Is there an MQX way of getting the destination address?

Please note: recvfrom() gives me the sender's address to be able to reply the datagram, what I need is the destination address.

 

Thanks a lot, Martin

Outcomes