#include "discovery.h"
#include <ul_log.h>
#include "object.h"
+#include <forb/config.h>
+#include "iop.h"
extern UL_LOG_CUST(ulogd_forb_discovery);
forb_server_id_to_string(str, &peer->server_id, sizeof(str)),
orb_id);
}
+#ifdef CONFIG_FORB_PROTO_INET_DEFAULT
+ if (forb->attr.redistribute_hellos) {
+ forb_peer_t *p;
+ ul_list_for_each(forb_port_peer, port, p) {
+ if (p != peer &&
+ forb_server_id_cmp(&p->server_id, &forb->server_id) != 0) {
+ forb_iop_redistribute_hello_to(p, peer); /* Introduce new peer to others */
+ forb_iop_redistribute_hello_to(peer, p); /* Introduce other peers to the new one */
+ }
+ }
+ }
+#endif
if (forb->attr.peer_discovery_callback) {
forb_orb peer_orb = forb_object_new(forb->orb, &peer->server_id, 0);
forb->attr.peer_discovery_callback(peer_orb, orb_id);