mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-24 23:36:46 +00:00
No broadcast id required for single hop
This commit is contained in:
parent
9939400c82
commit
aeaeac8a79
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user