summaryrefslogtreecommitdiff
path: root/cesar
diff options
context:
space:
mode:
authorlaranjeiro2010-05-17 10:02:38 +0000
committerlaranjeiro2010-05-17 10:02:38 +0000
commit106e976f214b76187ba08fc7bf963e7187a0616b (patch)
treedf470e64f486d2b2b9df4d070f1b73e0a00be354 /cesar
parent2fad457998acd9cf1222da0c0191fb7474b2ed49 (diff)
cesar/cp/beacon: fix beacon processing
* intialise the bsu beacon strcuture to read the beacon in process_tracked_avln * add the mac address bentry to be present. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@7068 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar')
-rw-r--r--cesar/cp/beacon/src/beacon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cesar/cp/beacon/src/beacon.c b/cesar/cp/beacon/src/beacon.c
index d62ea3bbf6..81434af017 100644
--- a/cesar/cp/beacon/src/beacon.c
+++ b/cesar/cp/beacon/src/beacon.c
@@ -262,6 +262,7 @@ cp_beacon_fill_share_memory (cp_t *ctx)
beacon->bmis.relocation.present = false;
beacon->bmis.aclsc.present = false;
beacon->bmis.cns.present = false;
+ beacon->bmis.mac_address_present.present = true;
return beacon;
}
@@ -793,7 +794,7 @@ cp_beacon_process_tracked_avln (cp_t *ctx, cp_beacon_desc_t *beacon_desc,
dbg_assert (ctx);
dbg_assert (beacon_desc);
dbg_assert (net);
-
+ memset (&beacon_data, 0, sizeof (bsu_beacon_t));
bsu_params_t *bsu_params = &beacon_desc->payload->bsu_params;
bsu_beacon_read ((pb_beacon_t*)beacon_desc, &beacon_data, &type,