mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 13:18:50 +08:00
net/udp/udp_finddev.c: Fix for network byte-order issue when checking if an address is a multicast address.
This commit is contained in:
parent
1ef922faac
commit
b1daa22040
1 changed files with 1 additions and 1 deletions
|
@ -219,7 +219,7 @@ FAR struct net_driver_s *udp_find_raddr_device(FAR struct udp_conn_s *conn)
|
|||
*/
|
||||
|
||||
if (conn->u.ipv4.raddr == INADDR_BROADCAST ||
|
||||
IN_MULTICAST(conn->u.ipv4.raddr))
|
||||
IN_MULTICAST(NTOHL(conn->u.ipv4.raddr)))
|
||||
{
|
||||
/* Make sure that the socket is bound to some non-zero, local
|
||||
* address. Zero is used as an indication that the laddr is
|
||||
|
|
Loading…
Reference in a new issue