-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement the new network stack server API.
The new server API allows application-level code to create listening TCP sockets bound to given server ports, and accept connections on a listening socket. The permission to open a given server port is encoded in bind capabilities: capabilities sealed with a NetAPI-owned key that permit the opening of a TCP server port on either IPv4 or IPv6. Important implementation point here: we use socket callbacks to handle the situation where a three-way TCP handshake initiated by a peer on a listening socket fails. In this case the firewall hole will be closed by the socket disconnection callback and not by a call to `FreeRTOS_closesocket`. See comment in `network_wrapper.cc` for more details. This behavior can easily be tested by sending a lone TCP SYN, e.g., through: hping3 -c 1 -S -p $port $ip Signed-off-by: Hugo Lefeuvre <[email protected]>
- Loading branch information
Showing
5 changed files
with
420 additions
and
8 deletions.
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.