MNCC socket: length of GSM TCH/F FR frame is 33 bytes _plus_ header

This commit is contained in:
Harald Welte 2010-12-22 21:40:08 +01:00 committed by Andreas Eversberg
parent d40eedaf16
commit d8421cdefd
1 changed files with 2 additions and 1 deletions

View File

@ -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;