From d8421cdefde6e9f3e5c106fe1f3102b7532d79fa Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 22 Dec 2010 21:40:08 +0100 Subject: [PATCH] MNCC socket: length of GSM TCH/F FR frame is 33 bytes _plus_ header --- gsm_bs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gsm_bs.cpp b/gsm_bs.cpp index 710c237..78ef8af 100644 --- a/gsm_bs.cpp +++ b/gsm_bs.cpp @@ -846,7 +846,7 @@ int mncc_send(struct gsm_network *instance, int msg_type, void *data) /* FIXME: the caller should provide this */ switch (msg_type) { case GSM_TCHF_FRAME: - len = 33; + len = sizeof(struct gsm_data_frame) + 33; break; default: len = sizeof(struct gsm_mncc); @@ -861,6 +861,7 @@ int mncc_send(struct gsm_network *instance, int msg_type, void *data) /* close MNCC socket */ static int mncc_fd_close(struct lcr_fd *lfd) { + printf("mncc_sock: closing\n"); close(lfd->fd); unregister_fd(lfd); lfd->fd = -1; -- 2.13.6