for list_each(outgoing_t, outgoing, mesh->outgoings) {
if(outgoing->node == from && outgoing->ev.cb) {
outgoing->timeout = 0;
- timeout_set(&mesh->loop, &outgoing->ev, &(struct timeval) {
+ timeout_set(&mesh->loop, &outgoing->ev, &(struct timespec) {
0, 0
});
}
/* Inform all other nodes we want to communicate with and which are reachable via this connection */
for splay_each(node_t, n, mesh->nodes) {
- if(n->nexthop == c->node) {
+ if(n->nexthop != c->node) {
continue;
}