diff options
author | Sander Vrijders <[email protected]> | 2017-01-08 11:14:43 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2017-01-09 11:23:48 +0100 |
commit | 0a071a42d4e80f54e92f34911cafda3d666d35d5 (patch) | |
tree | 456cb6250d0396705bef29b0d80c889bee205fe7 /src/irmd/main.c | |
parent | e56d24010287127fc6b9c9da8d1f7cf160c50253 (diff) | |
download | ouroboros-0a071a42d4e80f54e92f34911cafda3d666d35d5.tar.gz ouroboros-0a071a42d4e80f54e92f34911cafda3d666d35d5.zip |
ipcpd: Let IPCPs bind a name
This allows IPCPs to bind a name, so that they can announce their name
to neighbors which can then allocate a flow to them. Registering of
the name happens by an administrator. It also moves the irmd_api to
common ground, since it is used by all IPCPs.
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r-- | src/irmd/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c index b7292e74..ceeb7184 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -1,5 +1,5 @@ /* - * Ouroboros - Copyright (C) 2016 + * Ouroboros - Copyright (C) 2016 - 2017 * * The IPC Resource Manager * @@ -245,7 +245,7 @@ static pid_t create_ipcp(char * name, enum ipcp_type ipcp_type) pthread_rwlock_wrlock(&irmd->reg_lock); - api->pid = ipcp_create(ipcp_type); + api->pid = ipcp_create(name, ipcp_type); if (api->pid == -1) { pthread_rwlock_unlock(&irmd->reg_lock); pthread_rwlock_unlock(&irmd->state_lock); |