* Find the IPv4 broadcast addresses; IPv6 uses a completely different * strategy for broadcasting. * @param broadcast the list of broadcasts to write into. */
| 82 | * @param broadcast the list of broadcasts to write into. |
| 83 | */ |
| 84 | void NetworkFindBroadcastIPs(NetworkAddressList *broadcast) |
| 85 | { |
| 86 | NetworkFindBroadcastIPsInternal(broadcast); |
| 87 | |
| 88 | /* Now display to the debug all the detected ips */ |
| 89 | Debug(net, 3, "Detected broadcast addresses:"); |
| 90 | int i = 0; |
| 91 | for (NetworkAddress &addr : *broadcast) { |
| 92 | addr.SetPort(NETWORK_DEFAULT_PORT); |
| 93 | Debug(net, 3, " {}) {}", i++, addr.GetHostname()); |
| 94 | } |
| 95 | } |
no test coverage detected