Skip to content

Commit

Permalink
Remove lines from xdp
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed Mar 5, 2023
1 parent a82291b commit 5d76263
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/router/xdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ static __always_inline int conntrack(struct ip *ip_info)
struct policy *applicable_policies = (restricted_routes != NULL) ? bpf_map_lookup_elem(restricted_routes, &key) : NULL;
if (applicable_policies != NULL)
{

// If device does not belong to a locked account and the device itself isnt locked and if it isnt timed out
if (*isAccountLocked || isTimedOut || current_device->sessionExpiry == 0 ||
// If either max session lifetime is disabled, or it is before the max lifetime of the session
Expand All @@ -385,7 +384,6 @@ static __always_inline int conntrack(struct ip *ip_info)
}
else
{

void *public_routes = bpf_map_lookup_elem(&public_table, current_device->user_id);
applicable_policies = (public_routes != NULL) ? bpf_map_lookup_elem(public_routes, &key) : NULL;
}
Expand Down

0 comments on commit 5d76263

Please sign in to comment.