stack-direct & tcp: implement disconnect#429
Merged
Merged
Conversation
MagnusS
approved these changes
Aug 25, 2020
a0650e1 to
af76dd7
Compare
- TCP close()s all active channels and avoids establishing new connections - Stack-direct cancels the listener task An example use side will look like: Tcp.disconnect tcp >>= fun () -> Stack_direct.disconnect stack >>= fun () -> (* now ready for re-setup of a stack, i.e. IP configuration changed *) Sponsored by Nitrokey GmbH
af76dd7 to
e55c844
Compare
Member
Author
|
I removed the sleep. The behaviour of Linux and FreeBSD is:
That's what this PR does as well now. |
Member
Author
|
all green and approved -- merging |
hannesm
added a commit
to hannesm/opam-repository
that referenced
this pull request
Sep 22, 2020
CHANGES: * Assorted IPv6 improvements (mirage/mirage-tcpip#428 mirage/mirage-tcpip#431 mirage/mirage-tcpip#432 @MagnusS @hannesm) - set length in packets to be sent - preserve updated ctx from Ndv6.handle - fix ICMP checksum computation - implement Mirage_stack.V6 signature - add connect, mtu, iperf tests - fix DAD protocol implementation (and test it) - avoid out of bounds accesses of IPv6 packets (check length before accessing) * Fix 32 bit issues (@MagnusS) * Implement stack-direct and tcp disconnect: tear down existing connections (mirage/mirage-tcpip#429 @hannesm) * Treat broadcast address of network as broadcast as well (mirage/mirage-tcpip#430 @hannesm, reported in mirage/mirage-tcpip#427)
This file contains hidden or 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
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.
An example use side will look like: