summaryrefslogtreecommitdiff
path: root/src/lib/dev.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-23 12:38:31 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-10-23 12:38:31 +0200
commitcd9a137216afe11620262e1df763b1c757cebd16 (patch)
tree98954598a7b7a3eb2d3e42d43f0b7c2801d91d9a /src/lib/dev.c
parent84b11f3322797759fef746786badcd10936dfda4 (diff)
downloadouroboros-cd9a137216afe11620262e1df763b1c757cebd16.tar.gz
ouroboros-cd9a137216afe11620262e1df763b1c757cebd16.zip
dev, ipcp: Fix setting default flow options
The default flow options were not set when a flow allocation request arrives remotely. This went unnoticed due to a previous bug.
Diffstat (limited to 'src/lib/dev.c')
-rw-r--r--src/lib/dev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index cac3ca37..0a22cb12 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -1151,6 +1151,7 @@ int ipcp_flow_req_arr(pid_t api, char * dst_name, char * src_ae_name)
}
ai.flows[fd].port_id = port_id;
+ ai.flows[fd].oflags = FLOW_O_DEFAULT;
ai.ports[port_id].fd = fd;
port_set_state(&(ai.ports[port_id]), PORT_ID_ASSIGNED);