Added routing support for virtual network to more of the handlers and fixed up a couple of typos from the previous changes.

Added ReadRange service handler so that trendlogs can be read.
This commit is contained in:
petermcs
2010-11-18 21:29:11 +00:00
parent 3bb228edf2
commit dbb8997b4d
15 changed files with 60 additions and 7 deletions
+4
View File
@@ -104,7 +104,11 @@ void handler_read_range(
data.error_class = ERROR_CLASS_OBJECT;
data.error_code = ERROR_CODE_UNKNOWN_OBJECT;
/* encode the NPDU portion of the packet */
#if BAC_ROUTING
my_address = *Get_Routed_Device_Address(-1);
#else
datalink_get_my_address(&my_address);
#endif
npdu_encode_npdu_data(&npdu_data, false, MESSAGE_PRIORITY_NORMAL);
pdu_len =
npdu_encode_pdu(&Handler_Transmit_Buffer[0], src, &my_address,