mirror of
https://github.com/apache/nuttx.git
synced 2026-08-31 06:03:12 +00:00
icmp: Fixed replies to broadcasts.
This commit is contained in:
parent
0a75a9556d
commit
8ef20c230b
1 changed files with 2 additions and 0 deletions
|
|
@ -103,6 +103,8 @@ void icmp_reply(FAR struct net_driver_s *dev, int type, int code)
|
|||
if (net_ipv4addr_hdrcmp(ipv4->destipaddr, &any)
|
||||
# ifdef CONFIG_NET_BROADCAST
|
||||
|| net_ipv4addr_hdrcmp(ipv4->destipaddr, &bcast)
|
||||
|| net_ipv4addr_broadcast(net_ip4addr_conv32(ipv4->destipaddr),
|
||||
dev->d_netmask)
|
||||
# endif /* CONFIG_NET_BROADCAST */
|
||||
)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue