diff options
author | Dimitri Staessens <[email protected]> | 2020-12-10 18:11:20 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2020-12-12 11:38:00 +0100 |
commit | 132d2145a6e89ac0f4454ba7f257a910da2ef674 (patch) | |
tree | eb77f04a381ea5f8a869aff3b798c32acfb7e91e /src/ipcpd/unicast/ca.h | |
parent | 54f632767df709f6afb87ba37c7ee0b71a2bdbce (diff) | |
download | ouroboros-132d2145a6e89ac0f4454ba7f257a910da2ef674.tar.gz ouroboros-132d2145a6e89ac0f4454ba7f257a910da2ef674.zip |
ipcpd: Pass previous ECN value in congestion API
The previous value of the ECN field should be passed to the congestion
notification function.
Signed-off-by: Dimitri Staessens <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/ipcpd/unicast/ca.h')
-rw-r--r-- | src/ipcpd/unicast/ca.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ipcpd/unicast/ca.h b/src/ipcpd/unicast/ca.h index 7e3ab384..0604a161 100644 --- a/src/ipcpd/unicast/ca.h +++ b/src/ipcpd/unicast/ca.h @@ -55,8 +55,9 @@ void ca_ctx_update_ece(void * ctx, void ca_wnd_wait(ca_wnd_t wnd); -uint8_t ca_calc_ecn(int fd, - size_t len); +int ca_calc_ecn(int fd, + uint8_t * ecn, + size_t len); ssize_t ca_print_stats(void * ctx, char * buf, |