Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update connstate tracking to support HSS #105

Open
drbild opened this issue Feb 3, 2020 · 0 comments
Open

Update connstate tracking to support HSS #105

drbild opened this issue Feb 3, 2020 · 0 comments
Assignees
Labels

Comments

@drbild
Copy link
Contributor

drbild commented Feb 3, 2020

check_preferred_route(struct enftun_conn_state* conn_state)

For local TCP sockets, we:

  • subscribe to netlink notifications for routing table changes
  • when the routing table changes, we check if the preferred route has change by
    • opening and "connecting" a UDP socket
    • checking if the local address for that socket is the same as the active TCP tunnel
    • if addresses are different, our route has changed, so reconnect the tunnel (call to reconect_cb)

When connected via HSS, we want to detect if local TCP (wifi) becomes available:

  • subscribe to netlink notifications for routing table changes
  • when the routing table change, check if it is possible to connect locally (via wifi) by
    • opening and "connecting" a UDP socket
    • if that succeeds, reconnect the tunnel (call to reconnect_cb)

When connected va HSS, we want to detect if the host (HSS kernel driver) route has changed:

  • TODO
@drbild drbild added Priority: High Type: Enhancement New feature or request labels Feb 3, 2020
@drbild drbild changed the title Update connstate tracking to support SCM Update connstate tracking to support HSS Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants