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

How we are using smoltcp #999

Open
thomaseizinger opened this issue Oct 16, 2024 · 0 comments
Open

How we are using smoltcp #999

thomaseizinger opened this issue Oct 16, 2024 · 0 comments

Comments

@thomaseizinger
Copy link
Contributor

I reached for smoltcp because I needed to implement a TCP DNS server inside a TUN driver. The code is here: https://github.com/firezone/firezone/tree/main/rust/dns-over-tcp/src

Because we are also handling all sorts of other traffic and smoltcp is only responsible for managing TCP sockets, I had to create some adapter structs and workarounds to be able to selectively dispatch IP packets to it. It actually works pretty well but it took me a while to figure these things out.

  • Is there any interest having these adapters in this repository in case other people have similar usecases?
  • Is there maybe a better way of doing this and I haven't noticed?
  • Should there be a better way of using smoltcp if you already have IP packets and want to just give it to smoltcp for processing?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant