-
Notifications
You must be signed in to change notification settings - Fork 5
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
post-lpc pr #3
Open
cfriedt
wants to merge
7
commits into
anobli:master
Choose a base branch
from
cfriedt:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
post-lpc pr #3
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NLA_BINARY was removed from libnl in 2016, iirc, and the preferred replacement is NLA_UNSPEC. I believe the reasoning was that NLA_BINARY was getting misused. Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
This change ensures that numeric baud rates are properly matched to their symbolic values (115200 -> B115200, it is not a guarantee that they are equal). Also, previously uart_read() would peg the CPU with the O_NDELAY flag. Here, we also add some common defaults for blocking UART I/O. Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
Previously, the actual number of bytes written did not match what was expected in some cases, in practice. This change adds a "write all" wrapper around write. Similarly, read did not always return the full greybus message due to buffering. In particular, this was the case for devices connected via 6LowPAN which has a very small MTU on IEEE 802.15.4 . Similarly, a "read one message" wrapper was added around read that first checks the length of the incoming greybus message via its header and only reads precisely the correct number of bytes. Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
Let me know if you would like the PR to go against dev instead of master. I just saw that master had more recent commits than dev, so assumed it was the active branch. |
When close(fd) is used on the a TCP/IP socket in Linux, it puts the socket into a FIN_WAIT1 state and the TCP/IP connection is not completely severed until the application terminates. On the server side, this has the effect of keeping sockets open for an unnecessarily long period of time. If the server is a memory-contstrained device such as a microcontroller, that can have very negative effects. For that reason, it is preferred to use shutdown(fd, SHUT_RDWR) instead. Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
cfriedt
force-pushed
the
master
branch
2 times, most recently
from
December 25, 2020 01:56
4e870cd
to
e8d35cd
Compare
This change ensures that gbridge connects to the device using the correct socket address family (either AF_INET or AF_INET6) depending on the value of the proto field in the resolved AvahiAddress. Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
This change adds continuous integration via GitHub Actions. Fixes #4 Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
This change adds a new TLS controller based off of the TCP/IP controller. The TLS controller allows the user to specify a) a CA cert (for when self-signed certificates are used on the device) b) a client certificate & key (for when the device is configured to also authenticate the client) Also organized cflags and ldlibs in Makefile.am. Fixes #6 Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some upstreaming of changes since LPC 2019 / LPC 2020.