BACnet Stack (sourceforge)

http://bacnet.sourceforge.net/

See bacnet_protocol_stack