Always send scan packets with full sid

This commit is contained in:
Jeremy Lakeman 2012-12-11 13:32:02 +10:30
parent 7bf6beaf14
commit 5798e5acb5
4 changed files with 7 additions and 3 deletions

View File

@ -340,11 +340,9 @@ int overlay_send_probe(struct subscriber *peer, struct sockaddr_in addr, overlay
frame->flags=PACKET_UNICAST;
frame->interface=interface;
frame->payload = ob_new();
frame->source_full = 1;
// TODO call mdp payload encryption / signing without calling overlay_mdp_dispatch...
my_subscriber->send_full=1;
if (peer)
peer->last_probe=gettime_ms();

View File

@ -47,6 +47,7 @@ struct overlay_frame {
struct subscriber *destination;
struct subscriber *next_hop;
int source_full;
struct subscriber *source;
/* IPv4 address the frame was received from, or should be sent to */

View File

@ -403,6 +403,8 @@ overlay_stuff_packet(struct outgoing_packet *packet, overlay_txqueue *queue, tim
}
if (!packet->buffer){
if (frame->source_full)
my_subscriber->send_full=1;
overlay_init_packet(packet, frame->next_hop, frame->flags, frame->interface, frame->recvaddr, 0);
}else{
// is this packet going our way?

View File

@ -108,6 +108,9 @@ setup_scan() {
assert_no_servald_processes
foreach_instance +A +B create_single_identity
foreach_instance +A +B add_interface 1
set_instance +B
executeOk_servald config \
set interfaces.1.dummy_address 127.0.1.11
foreach_instance +A +B \
executeOk_servald config \
set interfaces.1.dummy_filter_broadcasts 1