6cb014ee64c7b94a22ad1a768821be2f4b902ece
The function was modified to calculate the broadcast address from IP and netmask instead of using SIOCGIFBRDADDR. In some cases it is possible that the ioctl is successful, but the returned address is 0 (e.g. search for Bcast: 0.0.0.0). For some reason in Linux the local loopback device answers from 0.0.0.0 address. So messages broadcast to that address are received from 127.0.0.1 which can possibly create a broadcast loop. This has nothing to do with NAT, but makes the stack more robust. Thank you, Sami Pietikäinen, for the contribution!
Description
No description provided
Languages
C
94.8%
CMake
2.5%
Makefile
1.3%
Python
0.5%
Perl
0.2%
Other
0.5%