diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2023-09-20 08:57:15 +0200 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2023-09-20 18:51:19 +0200 |
commit | 2df952d68587a6422f7462eee55c0f42904df4c9 (patch) | |
tree | 0b1cb62fd48d27e80e7abea02069c7748d0b0bf5 /src/ipcpd/shim-data.c | |
parent | 3be8a872c638b81f39596a2fd5e9b0c43533e002 (diff) | |
download | ouroboros-2df952d68587a6422f7462eee55c0f42904df4c9.tar.gz ouroboros-2df952d68587a6422f7462eee55c0f42904df4c9.zip |
lib: Revise port construct in application
The application had a port construct, which is a leftover from the
early days implementing RINA specs, which had a "port_id" to access
flows. O7s doesn't really have a "port" concept, only flows. The
port_wait_assign function was used in the IPCP to wait for the IRMd to
assign the flow_id and return so the flow object could be created.
This renames things a bit, and also simplifies the locking to us a
single lock/condvar for managing flows. This should be further
improved to move the flow state into the flow object, maintain a
double mapping of to flow objects (id_to_flow and fd_to_flow) and
malloc flow objects at flow allocation, instead of keeping the full
table in memory at init to further reduce memory footprint.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/shim-data.c')
0 files changed, 0 insertions, 0 deletions