ela-compil / BACnet

BACnet protocol library for .NET :satellite:
https://www.nuget.org/packages/bacnet/
MIT License
215 stars 95 forks source link

Fixing resolution of broadcast address if multiple ip addresses are available #100

Open pocketbroadcast opened 2 years ago

pocketbroadcast commented 2 years ago

If a network interface has multiple ip addresses configured or there are multiple network interfaces available and up, the broadcast address was resolved to 255.255.255.255 which is not supported by the bacnet standard.

To mitigate this behavior the first interface found is chosen and the correct broadcast address for this interface will be calculated and used for broadcasting.

This solves #93