aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/oml_router.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-31 17:43:08 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-31 17:43:08 +0200
commitcaca1899ce5ea5fd8e32c3ea93961a6156531a6c (patch)
tree65fa12568572da2601b7eaaebd4deabfb96d7616 /src/osmo-bts-sysmo/oml_router.c
parentfcdfb690ca68fcac64ac19ada3680832d45c8469 (diff)
sysmobts: Make sure that the omlrouter is in a FHS path
I wondered if I should use the 'abstract namespace' feature of Linux but just put the router into /var/run/ to make it work out of the box. Change the signature to provide a sane error message.
Diffstat (limited to 'src/osmo-bts-sysmo/oml_router.c')
-rw-r--r--src/osmo-bts-sysmo/oml_router.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo-bts-sysmo/oml_router.c b/src/osmo-bts-sysmo/oml_router.c
index 4af20d50..f3d08373 100644
--- a/src/osmo-bts-sysmo/oml_router.c
+++ b/src/osmo-bts-sysmo/oml_router.c
@@ -106,7 +106,7 @@ static int oml_router_accept_cb(struct osmo_fd *accept_fd, unsigned int what)
return 0;
}
-int oml_router_init(struct gsm_bts *bts,
+int oml_router_init(struct gsm_bts *bts, const char *path,
struct osmo_fd *accept_fd, struct osmo_fd *read_fd)
{
int rc;
@@ -123,7 +123,7 @@ int oml_router_init(struct gsm_bts *bts,
read_fd->fd = -1;
rc = osmo_sock_unix_init_ofd(accept_fd, SOCK_SEQPACKET, 0,
- OML_ROUTER_PATH,
+ path,
OSMO_SOCK_F_BIND | OSMO_SOCK_F_NONBLOCK);
return rc;
}