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

tx: eliminate memcpy #329

Conversation

AlexanderYastrebov
Copy link
Contributor

No description provided.

@svpcom
Copy link
Owner

svpcom commented Mar 16, 2024

It is too complex and have large field for future errors. I'll prefer to rewrite inject_ packet using raw sockets instead of pcap. Then it will be possible to use sendmsg with multiple buffers (and better control for io timeouts in future) like udp transmitter already does

@svpcom
Copy link
Owner

svpcom commented Mar 16, 2024

https://gist.github.com/adammw/afd6abdc75b624c3c37a46f0a7a7eb58
example of using raw sockets for injection.

@svpcom
Copy link
Owner

svpcom commented Mar 19, 2024

@AlexanderYastrebov I've refactored tx code using raw sockets and sendmsg. e4ad659

@AlexanderYastrebov AlexanderYastrebov deleted the tx/eliminate-memcpy branch March 19, 2024 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants