Added routing support for virtual network so that source addresses are transmitted when required and the correct object ID is used.

This commit is contained in:
petermcs
2010-11-17 23:16:24 +00:00
parent a1eaffccff
commit 3bb228edf2
26 changed files with 210 additions and 9 deletions
+5
View File
@@ -34,6 +34,7 @@
#include "npdu.h"
#include "reject.h"
#include "handlers.h"
#include "device.h"
/** @file noserv.c Handles an unrecognized/unsupported service. */
@@ -64,7 +65,11 @@ void handler_unrecognized_service(
(void) service_len;
/* 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,