#include <getopt.h>
#include <openbsc/db.h>
-#include <openbsc/select.h>
+#include <osmocore/select.h>
#include <openbsc/debug.h>
#include <openbsc/e1_input.h>
-#include <openbsc/talloc.h>
+#include <osmocore/talloc.h>
#include <openbsc/mncc.h>
#include <openbsc/trau_frame.h>
struct gsm_network *bsc_gsmnet = 0;
#include "gsm_audio.h"
-#undef AF_ISDN
-#undef PF_ISDN
-extern int AF_ISDN;
-#define PF_ISDN AF_ISDN
}
+#include <mISDN/mISDNcompat.h>
struct lcr_gsm *gsm = NULL;
bchannel_close();
return(ret);
}
- memset(&p_m_g_gsm_b_fd, 0, sizeof(p_m_g_gsm_b_fd.fd));
+ memset(&p_m_g_gsm_b_fd, 0, sizeof(p_m_g_gsm_b_fd));
p_m_g_gsm_b_fd.fd = p_m_g_gsm_b_sock;
register_fd(&p_m_g_gsm_b_fd, LCR_FD_READ, b_handler, this, 0);
memcpy(buf+MISDN_HEADER_LEN, data, len);
ret = sendto(p_m_g_gsm_b_sock, buf, MISDN_HEADER_LEN+len, 0, NULL, 0);
if (ret <= 0)
- PERROR("Failed to send to socket index %d\n", index);
+ PERROR("Failed to send to socket index %d\n", p_m_g_gsm_b_index);
}
void Pgsm::frame_send(void *_frame)
char hlr[128], cfg[128], filename[128];
mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;
int pcapfd, rc;
+ char conf_error[128] = "";
+
debug_init();
tall_bsc_ctx = talloc_named_const(NULL, 1, "openbsc");
gsm->gsm_sock = -1;
/* parse options */
- if (!gsm_conf(&gsm->conf)) {
- PERROR("%s", gsm_conf_error);
+ if (!gsm_conf(&gsm->conf, conf_error)) {
+ PERROR("%s", conf_error);
return gsm_exit(-EINVAL);
}