No broadcast id required for single hop

This commit is contained in:
Jeremy Lakeman 2012-11-26 15:17:43 +10:30
parent 9939400c82
commit aeaeac8a79
3 changed files with 3 additions and 12 deletions

View File

@ -121,12 +121,9 @@ int overlay_route_add_advertisements(struct decode_context *context, overlay_int
ob_checkpoint(e);
struct broadcast broadcast;
overlay_broadcast_generate_address(&broadcast);
if (overlay_frame_build_header(context, e,
0, OF_TYPE_NODEANNOUNCE, 0, 1,
&broadcast, NULL,
NULL, NULL,
NULL, my_subscriber))
return -1;

View File

@ -368,12 +368,9 @@ int overlay_add_selfannouncement(struct decode_context *context, int interface,s
time_ms_t now = gettime_ms();
struct broadcast broadcast_id;
overlay_broadcast_generate_address(&broadcast_id);
if (overlay_frame_build_header(context, b,
0, OF_TYPE_SELFANNOUNCE, 0, 1,
&broadcast_id, NULL,
NULL, NULL,
NULL, my_subscriber))
return -1;

View File

@ -157,12 +157,9 @@ int overlay_rhizome_add_advertisements(struct decode_context *context, int inter
if (slots<1) { RETURN(WHY("No room for node advertisements")); }
struct broadcast broadcast_id;
overlay_broadcast_generate_address(&broadcast_id);
if (overlay_frame_build_header(context, e,
0, OF_TYPE_RHIZOME_ADVERT, 0, 1,
&broadcast_id, NULL,
NULL, NULL,
NULL, my_subscriber))
return -1;