summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/gam.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2017-03-02 15:29:11 +0100
committerSander Vrijders <sander.vrijders@intec.ugent.be>2017-03-02 16:01:35 +0100
commit9d2fbef7b8569aac930c95ca1afb92a5dec79dac (patch)
tree7c4931890ee54d9bac331ac6031f411ddac08527 /src/ipcpd/normal/gam.c
parenta5796c7f02570a2878f9c6a5d28dca80beabed12 (diff)
downloadouroboros-9d2fbef7b8569aac930c95ca1afb92a5dec79dac.tar.gz
ouroboros-9d2fbef7b8569aac930c95ca1afb92a5dec79dac.zip
ipcpd: normal: Add connection manager
This adds the connection manager which allows the different AEs of the normal IPCP to register with it. An AE can then use the connection manager to allocate a flow to a neighbor, or to wait for a new connection from a neighbor.
Diffstat (limited to 'src/ipcpd/normal/gam.c')
-rw-r--r--src/ipcpd/normal/gam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcpd/normal/gam.c b/src/ipcpd/normal/gam.c
index f98c0d4f..212cfd83 100644
--- a/src/ipcpd/normal/gam.c
+++ b/src/ipcpd/normal/gam.c
@@ -185,7 +185,7 @@ int gam_flow_arr(struct gam * instance,
strcpy(snd_info.protocol, CDAP_PROTO);
snd_info.pref_version = 1;
snd_info.pref_syntax = PROTO_GPB;
- snd_info.ae.addr = ipcpi.address;
+ snd_info.addr = ipcpi.dt_addr;
if (cacep_rcv(fd, rcv_info)) {
log_err("Error establishing application connection.");
@@ -266,7 +266,7 @@ int gam_flow_alloc(struct gam * instance,
strcpy(snd_info.protocol, CDAP_PROTO);
snd_info.pref_version = 1;
snd_info.pref_syntax = PROTO_GPB;
- snd_info.ae.addr = ipcpi.address;
+ snd_info.addr = ipcpi.dt_addr;
if (cacep_snd(fd, &snd_info)) {
log_err("Failed to create application connection.");