diff options
author | Sander Vrijders <sander.vrijders@ugent.be> | 2018-06-19 11:38:23 +0200 |
---|---|---|
committer | Dimitri Staessens <dimitri.staessens@ugent.be> | 2018-06-19 13:55:45 +0200 |
commit | a5362f24b4dd48f7203be418c6d66f6edccb8d69 (patch) | |
tree | d74819582ddf4e4ccfe629dd1b8d2d96df841aab /src/ipcpd/normal/pol/alternate_pff.c | |
parent | aea32291530c2dbec84ff424a8c7f224bd1b13d7 (diff) | |
download | ouroboros-a5362f24b4dd48f7203be418c6d66f6edccb8d69.tar.gz ouroboros-a5362f24b4dd48f7203be418c6d66f6edccb8d69.zip |
ipcpd: Change connection down to flow down
The DT component was flagging a connection as down and passing the fd
that was down. Of course the other components expect a connection
instead of just a fd. Now the connection manager will listen to flow
up and down events, and flag the connection up or down if needed.
Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be>
Diffstat (limited to 'src/ipcpd/normal/pol/alternate_pff.c')
-rw-r--r-- | src/ipcpd/normal/pol/alternate_pff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipcpd/normal/pol/alternate_pff.c b/src/ipcpd/normal/pol/alternate_pff.c index 3cb99d9c..cfe00923 100644 --- a/src/ipcpd/normal/pol/alternate_pff.c +++ b/src/ipcpd/normal/pol/alternate_pff.c @@ -384,7 +384,7 @@ int alternate_flow_state_change(struct pff_i * pff_i, } else { /* Need to switch to a (different) alternate */ if (fds[0] == fd) { - for (i = 0 ; i < len; i++) { + for (i = 1; i < len; i++) { /* Usable alternate */ if (!nhops_down_has(pff_i, fds[i])) { tmp = fds[0]; |