Read property request with LOCAL/GLOBAL broadcast is executed and responded...
Brought to you by:
skarg
Unable to drop a packet when confirmed broadcast request is sent.
Sending an Read property request as LOCAL/GLOBAL broadcast using VTS tool. I see that instead of dropping a packet stack is sending complex Ack.
Anonymous
What version of the bacnet-stack are you using? (see version.h or release or --version for demos)
Are you testing a demo, or an application, or is this running in an embedded product?
See the solution in npdu_handler() function:
After this change also i can see the issue. I am using VTS tool to test the stack .
Hmm, thought that would a simple change on Linux/Windows for BACnet/IP, but not so much:
https://stackoverflow.com/questions/5281409/get-destination-address-of-a-received-udp-packet
sin.sin_addr is the source address, not the destination address.
It might be easier if the broadcast socket listener was separate from the unicast socket bind - maybe we'll go that route.