Commit Graph

19 Commits

Author SHA1 Message Date
skarg 4664326d8c using existing stack function to copy address. Fixes warning on PIC compile. 2012-10-04 03:06:49 +00:00
tbrennan3 a2a0434ef9 Forgot the header update for BBMD getter and setters.
Revised gateway demo to use the new device_init(NULL) way.
Eliminated triplicate I-Am responses and deprecated the offending routed_ I-Am and I-Have senders (don't see any other usages; scheduled for deletion in 2/2012).
Fixed I-Am sender to not always zero out dest->net, because if a src->net was given in Who-Is, need to have it or else global bcast in the I-Am  response.
2011-08-25 21:20:14 +00:00
skarg 2a0bf4926a Performed standard indent script indent.sh on project files. 2010-12-15 19:02:40 +00:00
tbrennan3 a595bdb4b5 Resolved more code where we didn't need to define separate BAC_ROUTING functionality, since the npdu_encode_pdu() will do the right thing if our source address is for the gateway (root device), because src->net and/or src->len will be 0.
For the important Device_Object_Instance_Number(), will redirect to the Routed_Device_Object_Instance_Number() function if this is a routing build.
This leaves only the Who-Is and Who-Has handlers to be dealt with.
2010-11-24 22:04:02 +00:00
tbrennan3 22c14fccad Followed Steve's good recommendation, and made routed_get_my_address() be a variant of datalink_get_my_address() just when routing is in use. Haven't done anything about the sending functions yet.
Renamed Lookup_Routed_Device_Address() as Routed_Device_Address_Lookup(), and replaced it in the routed npdu handler with a function that finds the "next" gateway or routed device, as per the destination address.  (Less tied to the specifics of the gw_device.c implementation.)
Fixed a few build warnings (eg, %zu for size_t arguments).
Until we improve the makefile system, I've enabled BAC_ROUTING in config.h
2010-11-24 20:44:32 +00:00
petermcs 3bb228edf2 Added routing support for virtual network so that source addresses are transmitted when required and the correct object ID is used. 2010-11-17 23:16:24 +00:00
skarg 4105d22b4b Fixing compiler warnings (compiled with IAR and configured for no printing) 2010-09-07 16:16:15 +00:00
skarg 3c9c3c2d56 Updated prototypes and include as required and found by compile with extra checking. Thanks to Nigel Jones for his "setting a bad example" article. 2010-08-17 19:43:59 +00:00
skarg 710cfccfef Indented using indent script. 2010-05-04 21:06:26 +00:00
tbrennan3 9327994aef Two quick fixes for sending unicast I-Am - corrected name of handler, and added the destination copy. 2010-03-01 15:43:06 +00:00
tbrennan3 60247fa55f Added comments to create Doxygen Modules for some of the DM BIBBs (DCC, Who-Is, RD) so far. 2010-02-23 02:43:16 +00:00
skarg d98194636c Changed default WhoIs to be Broadcast after seeing problems of unicast I-Am through some BACnet routers. Split out WhoIs into 2 handlers - one for unicast I-Am and one for Broadcast I-Am. Developer can choose which one to use for their default handler. 2010-02-19 14:45:32 +00:00
skarg 0529106e73 Corrected Send_I_Am_Unicast. Removed the NULL src feature of sending broadcast for now. 2010-02-18 22:40:23 +00:00
tbrennan3 4c99467009 Added Send_I_Am_Unicast() and used it in inhandler_who_is(). Sends directly back to the source address instead of a broadcast, per Addendum 135-2008q-1. 2010-02-15 20:47:20 +00:00
tbrennan3 a911eea98f The beginning of doxygenation:
As a first step, added an @file description for each file.
2010-02-14 05:41:45 +00:00
skarg d1a1c1c8a6 Indented. 2008-11-24 12:48:09 +00:00
skarg 82bc6e4239 Cleaned up compiler warnings. 2008-11-19 16:39:19 +00:00
skarg 0e9a805f75 Moved the iam_send to demo/handler/s_iam.c to keep application code out of the core encode/decode library. 2008-11-14 14:41:28 +00:00
skarg c7a5c05ac7 Moved send I-Am to a send module and out of iam.c. 2008-11-12 15:38:43 +00:00