Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Aug 10, 2024
1 parent 1916f60 commit 2ed6f19
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tunnels/layer3/ip_routing_table/ip_routing_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ static void upStreamSrcMode(tunnel_t *self, context_t *c)
if (state->routes[i].v4 && checkIPRange4(addr, state->routes[i].ip.ip4, state->routes[i].mask.mask4))
{
state->routes[i].next->upStream(state->routes[i].next, c);
return;
}
}
}
Expand All @@ -72,6 +73,7 @@ static void upStreamSrcMode(tunnel_t *self, context_t *c)
checkIPRange6(packet->ip6_header.saddr, state->routes[i].ip.ip6, state->routes[i].mask.mask6))
{
state->routes[i].next->upStream(state->routes[i].next, c);
return;
}
}
}
Expand Down Expand Up @@ -174,6 +176,7 @@ static routing_rule_t parseRule(struct node_manager_config_s *cfg, unsigned int
LOGF("JSON Error: Layer3IpRoutingTable->settings->rules node %s not found", temp);
exit(1);
}

if (node->instance == NULL)
{
runNode(cfg, node, chain_index + 1);
Expand All @@ -184,6 +187,8 @@ static routing_rule_t parseRule(struct node_manager_config_s *cfg, unsigned int
}
globalFree(temp);

rule.next = node->instance;

return rule;
}

Expand Down Expand Up @@ -248,6 +253,7 @@ tunnel_t *newLayer3IpRoutingTable(node_instance_context_t *instance_info)
LOGF("Layer3IpRoutingTable: too much rules");
exit(1);
}
state->routes_len = i;

tunnel_t *t = newTunnel();

Expand Down
Empty file removed ww/managers/tundevice_manager.c
Empty file.
Empty file removed ww/managers/tundevice_manager.h
Empty file.

0 comments on commit 2ed6f19

Please sign in to comment.