Enhance the bbmd registration for demos.

This commit is contained in:
skarg
2008-01-22 01:43:18 +00:00
parent 5bef9a18e2
commit a63ff67e18
2 changed files with 10 additions and 2 deletions
+8
View File
@@ -760,10 +760,18 @@ void bvlc_register_with_bbmd(
dest.sin_addr.s_addr = bbmd_address;
dest.sin_port = htons(bbmd_port);
/* In order for their broadcasts to get here,
we need to register our address with the remote BBMD using
Write Broadcast Distribution Table, or
register with the BBMD as a Foreign Device */
mtu_len = bvlc_encode_register_foreign_device(
&mtu[0],
time_to_live_seconds);
bvlc_send_mpdu(&dest, &mtu[0], mtu_len);
/* In order for our broadcasts to get there,
we have to put this BBMD into my BBMD table
or register it as a foreign device in my FDT. */
bvlc_register_foreign_device(&dest, time_to_live_seconds);
}
void bvlc_send_result(