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

LLT-5809 #5

Merged
merged 4 commits into from
Dec 5, 2024
Merged

LLT-5809 #5

merged 4 commits into from
Dec 5, 2024

Conversation

jjanowsk
Copy link
Collaborator

@jjanowsk jjanowsk commented Dec 2, 2024

Some cleanup of UAPI handler. Details in commit messages.

We're currently not using those and they are not tested. If we ever plan
to add them back it will be easy to revert this commit. Moreover instead
of UnixStream::from_raw_fd most likely UnixListener::from(fd: OwnedFd)
should be used.
@jjanowsk jjanowsk force-pushed the LLT-5809-socket-reader branch from 50631c7 to 173e249 Compare December 2, 2024 11:54
Allow fwmark to be in the config even on platforms that do not support
it. Just ignore it. It is in line with wireguard-go behaviour.
@jjanowsk jjanowsk force-pushed the LLT-5809-socket-reader branch from 173e249 to 7baabdc Compare December 2, 2024 11:57
1. Allow multiple commands in one stream
2. Verify that the command is either get=1\n or set=1\n. Previously
   any other character in place of newline was accepted.
3. Do not use pop to remove newline character from the input line in set
   handler. Use trim_end instead to avoid clipping the input itself.
@jjanowsk jjanowsk force-pushed the LLT-5809-socket-reader branch from 9e8e367 to 762ddf3 Compare December 2, 2024 22:53
Copy link
Contributor

@tomasz-grz tomasz-grz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, some questions since I'm not too familiar with the protocol.

neptun/src/device/integration_tests/mod.rs Show resolved Hide resolved
neptun/src/device/integration_tests/mod.rs Show resolved Hide resolved
neptun/src/device/integration_tests/mod.rs Show resolved Hide resolved
neptun/src/device/api.rs Show resolved Hide resolved
Copy link
Contributor

@dfetti dfetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1.0 I'm not familiar with the project, but looks good to me.
Might be a good idea to start a changelog file for this project?

Copy link
Contributor

@tomasz-grz tomasz-grz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 nice work

@jjanowsk jjanowsk merged commit 09699eb into main Dec 5, 2024
23 checks passed
@jjanowsk jjanowsk deleted the LLT-5809-socket-reader branch December 5, 2024 13:26
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.

3 participants