This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1d/+/19055 )
Change subject: proto.h: Share default socket path between client and daemon
......................................................................
proto.h: Share default socket path between client and daemon
This way clients and daemon don't have to be manually configured
to use the same default socket path.
Change-Id: Ibc5bc1bc59056ebaf0f6072de0ff08c2f3bb5457
---
M include/osmocom/e1d/proto.h
M src/osmo-e1d.c
2 files changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-e1d refs/changes/55/19055/1
diff --git a/include/osmocom/e1d/proto.h b/include/osmocom/e1d/proto.h
index f719cff..ef95d0c 100644
--- a/include/osmocom/e1d/proto.h
+++ b/include/osmocom/e1d/proto.h
@@ -73,6 +73,7 @@
#define E1DP_MAGIC 0x00e1
#define E1DP_MAX_LEN 4096
#define E1DP_INVALID 0xff
+#define E1DP_DEFAULT_SOCKET "/tmp/osmo-e1d.ctl"
struct osmo_e1dp_msg_hdr {
diff --git a/src/osmo-e1d.c b/src/osmo-e1d.c
index 808bd68..647b039 100644
--- a/src/osmo-e1d.c
+++ b/src/osmo-e1d.c
@@ -39,6 +39,7 @@
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/e1d/proto_srv.h>
+#include <osmocom/e1d/proto.h>
#include "e1d.h"
#include "log.h"
@@ -196,7 +197,7 @@
}
/* server init */
- srv = osmo_e1dp_server_create(g_e1d_ctx, "/tmp/osmo-e1d.ctl", e1d_ctl_handlers, e1d);
+ srv = osmo_e1dp_server_create(g_e1d_ctx, E1DP_DEFAULT_SOCKET, e1d_ctl_handlers, e1d);
OSMO_ASSERT(srv);
/* main loop */
--
To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/19055
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: Ibc5bc1bc59056ebaf0f6072de0ff08c2f3bb5457
Gerrit-Change-Number: 19055
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200629/df2b36fd/attachment.htm>