[misc] Remove whitespace from the end of the line.
This commit is contained in:
parent
ca8d0063f9
commit
acf8a0c59f
|
@ -1,4 +1,4 @@
|
|||
/* GSM Network Management (OML) messages on the A-bis interface
|
||||
/* GSM Network Management (OML) messages on the A-bis interface
|
||||
* 3GPP TS 12.21 version 8.0.0 Release 1999 / ETSI TS 100 623 V8.0.0 */
|
||||
|
||||
/* (C) 2008-2009 by Harald Welte <laforge@gnumonks.org>
|
||||
|
@ -514,7 +514,7 @@ int nm_is_running(struct gsm_nm_state *s) {
|
|||
static void debugp_foh(struct abis_om_fom_hdr *foh)
|
||||
{
|
||||
DEBUGP(DNM, "OC=%s(%02x) INST=(%02x,%02x,%02x) ",
|
||||
obj_class_name(foh->obj_class), foh->obj_class,
|
||||
obj_class_name(foh->obj_class), foh->obj_class,
|
||||
foh->obj_inst.bts_nr, foh->obj_inst.trx_nr,
|
||||
foh->obj_inst.ts_nr);
|
||||
}
|
||||
|
@ -938,7 +938,7 @@ static int abis_nm_rcvmsg_fom(struct msgb *mb)
|
|||
|
||||
abis_nm_tlv_parse(&tp, mb->trx->bts, foh->data, oh->length-sizeof(*foh));
|
||||
if (TLVP_PRESENT(&tp, NM_ATT_NACK_CAUSES))
|
||||
DEBUGPC(DNM, "CAUSE=%s\n",
|
||||
DEBUGPC(DNM, "CAUSE=%s\n",
|
||||
nack_cause_name(*TLVP_VAL(&tp, NM_ATT_NACK_CAUSES)));
|
||||
else
|
||||
DEBUGPC(DNM, "\n");
|
||||
|
@ -1349,7 +1349,7 @@ static int sw_open_file(struct abis_nm_sw *sw, const char *fname)
|
|||
return -1;
|
||||
}
|
||||
/* read first line and parse file ID and VERSION */
|
||||
rc = fscanf(sw->stream, "@(#)%12s:%80s\r\n",
|
||||
rc = fscanf(sw->stream, "@(#)%12s:%80s\r\n",
|
||||
file_id, file_version);
|
||||
if (rc != 2) {
|
||||
perror("parsing header line of software file");
|
||||
|
@ -2233,7 +2233,7 @@ int abis_nm_bs11_get_oml_tei_ts(struct gsm_bts *bts)
|
|||
}
|
||||
|
||||
/* like abis_nm_conn_terr_traf + set_tei */
|
||||
int abis_nm_bs11_conn_oml_tei(struct gsm_bts *bts, u_int8_t e1_port,
|
||||
int abis_nm_bs11_conn_oml_tei(struct gsm_bts *bts, u_int8_t e1_port,
|
||||
u_int8_t e1_timeslot, u_int8_t e1_subslot,
|
||||
u_int8_t tei)
|
||||
{
|
||||
|
@ -2595,7 +2595,7 @@ static u_int8_t req_attr_btsm[] = {
|
|||
NM_ATT_SW_DESCR, NM_ATT_GET_ARI };
|
||||
#endif
|
||||
|
||||
static u_int8_t req_attr[] = {
|
||||
static u_int8_t req_attr[] = {
|
||||
NM_ATT_ADM_STATE, NM_ATT_AVAIL_STATUS, 0xa8, NM_ATT_OPER_STATE,
|
||||
0xd5, 0xa1, NM_ATT_BS11_ESN_FW_CODE_NO, NM_ATT_BS11_ESN_HW_CODE_NO,
|
||||
0x42, NM_ATT_BS11_ESN_PCB_SERIAL, NM_ATT_BS11_PLL };
|
||||
|
@ -2674,11 +2674,11 @@ static int abis_nm_rx_ipacc(struct msgb *msg)
|
|||
DEBUGPC(DNM, "RSL CONNECT ACK ");
|
||||
if (TLVP_PRESENT(&tp, NM_ATT_IPACC_DST_IP))
|
||||
DEBUGPC(DNM, "IP=%s ",
|
||||
inet_ntoa(*((struct in_addr *)
|
||||
inet_ntoa(*((struct in_addr *)
|
||||
TLVP_VAL(&tp, NM_ATT_IPACC_DST_IP))));
|
||||
if (TLVP_PRESENT(&tp, NM_ATT_IPACC_DST_IP_PORT))
|
||||
DEBUGPC(DNM, "PORT=%u ",
|
||||
ntohs(*((u_int16_t *)
|
||||
ntohs(*((u_int16_t *)
|
||||
TLVP_VAL(&tp, NM_ATT_IPACC_DST_IP_PORT))));
|
||||
if (TLVP_PRESENT(&tp, NM_ATT_IPACC_STREAM_ID))
|
||||
DEBUGPC(DNM, "STREAM=0x%02x ",
|
||||
|
@ -2688,7 +2688,7 @@ static int abis_nm_rx_ipacc(struct msgb *msg)
|
|||
case NM_MT_IPACC_RSL_CONNECT_NACK:
|
||||
LOGP(DNM, LOGL_ERROR, "RSL CONNECT NACK ");
|
||||
if (TLVP_PRESENT(&tp, NM_ATT_NACK_CAUSES))
|
||||
DEBUGPC(DNM, " CAUSE=%s\n",
|
||||
DEBUGPC(DNM, " CAUSE=%s\n",
|
||||
nack_cause_name(*TLVP_VAL(&tp, NM_ATT_NACK_CAUSES)));
|
||||
else
|
||||
DEBUGPC(DNM, "\n");
|
||||
|
@ -2700,7 +2700,7 @@ static int abis_nm_rx_ipacc(struct msgb *msg)
|
|||
case NM_MT_IPACC_SET_NVATTR_NACK:
|
||||
LOGP(DNM, LOGL_ERROR, "SET NVATTR NACK ");
|
||||
if (TLVP_PRESENT(&tp, NM_ATT_NACK_CAUSES))
|
||||
LOGPC(DNM, LOGL_ERROR, " CAUSE=%s\n",
|
||||
LOGPC(DNM, LOGL_ERROR, " CAUSE=%s\n",
|
||||
nack_cause_name(*TLVP_VAL(&tp, NM_ATT_NACK_CAUSES)));
|
||||
else
|
||||
LOGPC(DNM, LOGL_ERROR, "\n");
|
||||
|
@ -2712,7 +2712,7 @@ static int abis_nm_rx_ipacc(struct msgb *msg)
|
|||
case NM_MT_IPACC_GET_NVATTR_NACK:
|
||||
LOGPC(DNM, LOGL_ERROR, "GET NVATTR NACK ");
|
||||
if (TLVP_PRESENT(&tp, NM_ATT_NACK_CAUSES))
|
||||
LOGPC(DNM, LOGL_ERROR, " CAUSE=%s\n",
|
||||
LOGPC(DNM, LOGL_ERROR, " CAUSE=%s\n",
|
||||
nack_cause_name(*TLVP_VAL(&tp, NM_ATT_NACK_CAUSES)));
|
||||
else
|
||||
LOGPC(DNM, LOGL_ERROR, "\n");
|
||||
|
@ -2723,7 +2723,7 @@ static int abis_nm_rx_ipacc(struct msgb *msg)
|
|||
case NM_MT_IPACC_SET_ATTR_NACK:
|
||||
LOGPC(DNM, LOGL_ERROR, "SET ATTR NACK ");
|
||||
if (TLVP_PRESENT(&tp, NM_ATT_NACK_CAUSES))
|
||||
LOGPC(DNM, LOGL_ERROR, " CAUSE=%s\n",
|
||||
LOGPC(DNM, LOGL_ERROR, " CAUSE=%s\n",
|
||||
nack_cause_name(*TLVP_VAL(&tp, NM_ATT_NACK_CAUSES)));
|
||||
else
|
||||
LOGPC(DNM, LOGL_ERROR, "\n");
|
||||
|
@ -2800,7 +2800,7 @@ int abis_nm_ipaccess_set_nvattr(struct gsm_bts_trx *trx, u_int8_t *attr,
|
|||
attr_len);
|
||||
}
|
||||
|
||||
int abis_nm_ipaccess_rsl_connect(struct gsm_bts_trx *trx,
|
||||
int abis_nm_ipaccess_rsl_connect(struct gsm_bts_trx *trx,
|
||||
u_int32_t ip, u_int16_t port, u_int8_t stream)
|
||||
{
|
||||
struct in_addr ia;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* GSM Radio Signalling Link messages on the A-bis interface
|
||||
/* GSM Radio Signalling Link messages on the A-bis interface
|
||||
* 3GPP TS 08.58 version 8.6.0 Release 1999 / ETSI TS 100 596 V8.6.0 */
|
||||
|
||||
/* (C) 2008-2010 by Harald Welte <laforge@gnumonks.org>
|
||||
|
@ -222,7 +222,7 @@ static void print_rsl_cause(int lvl, const u_int8_t *cause_v, u_int8_t cause_len
|
|||
|
||||
LOGPC(DRSL, lvl, "CAUSE=0x%02x(%s) ",
|
||||
cause_v[0], rsl_err_name(cause_v[0]));
|
||||
for (i = 1; i < cause_len-1; i++)
|
||||
for (i = 1; i < cause_len-1; i++)
|
||||
LOGPC(DRSL, lvl, "%02x ", cause_v[i]);
|
||||
}
|
||||
|
||||
|
@ -245,7 +245,7 @@ int rsl_bcch_info(struct gsm_bts_trx *trx, u_int8_t type,
|
|||
return abis_rsl_sendmsg(msg);
|
||||
}
|
||||
|
||||
int rsl_sacch_filling(struct gsm_bts_trx *trx, u_int8_t type,
|
||||
int rsl_sacch_filling(struct gsm_bts_trx *trx, u_int8_t type,
|
||||
const u_int8_t *data, int len)
|
||||
{
|
||||
struct abis_rsl_common_hdr *ch;
|
||||
|
@ -416,7 +416,7 @@ int rsl_chan_activate(struct gsm_bts_trx *trx, u_int8_t chan_nr,
|
|||
}
|
||||
#endif
|
||||
|
||||
int rsl_chan_activate_lchan(struct gsm_lchan *lchan, u_int8_t act_type,
|
||||
int rsl_chan_activate_lchan(struct gsm_lchan *lchan, u_int8_t act_type,
|
||||
u_int8_t ta, u_int8_t ho_ref)
|
||||
{
|
||||
struct abis_rsl_dchan_hdr *dh;
|
||||
|
@ -778,7 +778,7 @@ static int rsl_rx_chan_act_nack(struct msgb *msg)
|
|||
msg->lchan->state = LCHAN_S_NONE;
|
||||
} else
|
||||
msg->lchan->state = LCHAN_S_NONE;
|
||||
|
||||
|
||||
LOGPC(DRSL, LOGL_ERROR, "\n");
|
||||
|
||||
dispatch_signal(SS_LCHAN, S_LCHAN_ACTIVATE_NACK, msg->lchan);
|
||||
|
@ -1056,7 +1056,7 @@ static int abis_rsl_rx_trx(struct msgb *msg)
|
|||
//DEBUGP(DRSL, "%s RF Resource Indication\n", gsm_trx_name(msg->trx));
|
||||
break;
|
||||
case RSL_MT_OVERLOAD:
|
||||
/* indicate CCCH / ACCH / processor overload */
|
||||
/* indicate CCCH / ACCH / processor overload */
|
||||
LOGP(DRSL, LOGL_ERROR, "%s CCCH/ACCH/CPU Overload\n",
|
||||
gsm_trx_name(msg->trx));
|
||||
break;
|
||||
|
@ -1246,7 +1246,7 @@ static int rsl_rx_rll_err_ind(struct msgb *msg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* ESTABLISH INDICATION, LOCATION AREA UPDATE REQUEST
|
||||
/* ESTABLISH INDICATION, LOCATION AREA UPDATE REQUEST
|
||||
0x02, 0x06,
|
||||
0x01, 0x20,
|
||||
0x02, 0x00,
|
||||
|
@ -1266,7 +1266,7 @@ static int abis_rsl_rx_rll(struct msgb *msg)
|
|||
switch (rllh->c.msg_type) {
|
||||
case RSL_MT_DATA_IND:
|
||||
DEBUGPC(DRLL, "DATA INDICATION\n");
|
||||
if (msgb_l2len(msg) >
|
||||
if (msgb_l2len(msg) >
|
||||
sizeof(struct abis_rsl_common_hdr) + sizeof(*rllh) &&
|
||||
rllh->data[0] == RSL_IE_L3_INFO) {
|
||||
msg->l3h = &rllh->data[3];
|
||||
|
@ -1278,7 +1278,7 @@ static int abis_rsl_rx_rll(struct msgb *msg)
|
|||
/* lchan is established, stop T3101 */
|
||||
msg->lchan->sapis[rllh->link_id & 0x7] = LCHAN_SAPI_MS;
|
||||
bsc_del_timer(&msg->lchan->T3101);
|
||||
if (msgb_l2len(msg) >
|
||||
if (msgb_l2len(msg) >
|
||||
sizeof(struct abis_rsl_common_hdr) + sizeof(*rllh) &&
|
||||
rllh->data[0] == RSL_IE_L3_INFO) {
|
||||
msg->l3h = &rllh->data[3];
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
/* (C) 2009 by Harald Welte <laforge@gnumonks.org>
|
||||
* All Rights Reserved
|
||||
*
|
||||
* This software is based on ideas (but not code) of BS11Config
|
||||
* This software is based on ideas (but not code) of BS11Config
|
||||
* (C) 2009 by Dieter Spaar <spaar@mirider.augusta.de>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
|
@ -54,9 +54,9 @@ static enum bs11cfg_state bs11cfg_state = STATE_NONE;
|
|||
static char *command, *value;
|
||||
struct timer_list status_timer;
|
||||
|
||||
static const u_int8_t obj_li_attr[] = {
|
||||
static const u_int8_t obj_li_attr[] = {
|
||||
NM_ATT_BS11_BIT_ERR_THESH, 0x09, 0x00,
|
||||
NM_ATT_BS11_L1_PROT_TYPE, 0x00,
|
||||
NM_ATT_BS11_L1_PROT_TYPE, 0x00,
|
||||
NM_ATT_BS11_LINE_CFG, 0x00,
|
||||
};
|
||||
static const u_int8_t obj_bbsig0_attr[] = {
|
||||
|
|
|
@ -363,7 +363,7 @@ static void auto_release_channel(void *_lchan)
|
|||
|
||||
struct gsm_lchan* lchan_find(struct gsm_bts *bts, struct gsm_subscriber *subscr) {
|
||||
struct gsm_bts_trx *trx;
|
||||
int ts_no, lchan_no;
|
||||
int ts_no, lchan_no;
|
||||
|
||||
llist_for_each_entry(trx, &bts->trx_list, list) {
|
||||
for (ts_no = 0; ts_no < 8; ++ts_no) {
|
||||
|
|
|
@ -254,7 +254,7 @@ struct gsm_subscriber *db_create_subscriber(struct gsm_network *net, char *imsi)
|
|||
struct gsm_subscriber *subscr;
|
||||
|
||||
/* Is this subscriber known in the db? */
|
||||
subscr = db_get_subscriber(net, GSM_SUBSCRIBER_IMSI, imsi);
|
||||
subscr = db_get_subscriber(net, GSM_SUBSCRIBER_IMSI, imsi);
|
||||
if (subscr) {
|
||||
result = dbi_conn_queryf(conn,
|
||||
"UPDATE Subscriber set updated = datetime('now') "
|
||||
|
@ -1049,7 +1049,7 @@ struct gsm_sms *db_sms_get_unsent_by_subscr(struct gsm_network *net, unsigned lo
|
|||
result = dbi_conn_queryf(conn,
|
||||
"SELECT * FROM SMS,Subscriber "
|
||||
"WHERE sms.receiver_id >= %llu AND sms.sent is NULL "
|
||||
"AND sms.receiver_id = subscriber.id "
|
||||
"AND sms.receiver_id = subscriber.id "
|
||||
"AND subscriber.lac > 0 "
|
||||
"ORDER BY sms.receiver_id, id LIMIT 1",
|
||||
min_subscr_id);
|
||||
|
@ -1133,7 +1133,7 @@ int db_sms_inc_deliver_attempts(struct gsm_sms *sms)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int db_apdu_blob_store(struct gsm_subscriber *subscr,
|
||||
int db_apdu_blob_store(struct gsm_subscriber *subscr,
|
||||
u_int8_t apdu_id_flags, u_int8_t len,
|
||||
u_int8_t *apdu)
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* GSM Mobile Radio Interface Layer 3 messages on the A-bis interface
|
||||
/* GSM Mobile Radio Interface Layer 3 messages on the A-bis interface
|
||||
* 3GPP TS 04.08 version 7.21.0 Release 1998 / ETSI TS 100 940 V7.21.0 */
|
||||
|
||||
/* (C) 2008-2009 by Harald Welte <laforge@gnumonks.org>
|
||||
|
@ -872,7 +872,7 @@ static int gsm48_rx_rr_status(struct msgb *msg)
|
|||
{
|
||||
struct gsm48_hdr *gh = msgb_l3(msg);
|
||||
|
||||
DEBUGP(DRR, "STATUS rr_cause = %s\n",
|
||||
DEBUGP(DRR, "STATUS rr_cause = %s\n",
|
||||
rr_cause_name(gh->data[0]));
|
||||
|
||||
return 0;
|
||||
|
@ -1064,7 +1064,7 @@ static void gsm48_stop_cc_timer(struct gsm_trans *trans)
|
|||
trans->cc.Tcurrent = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static int mncc_recvmsg(struct gsm_network *net, struct gsm_trans *trans,
|
||||
int msg_type, struct gsm_mncc *mncc)
|
||||
{
|
||||
|
@ -1130,7 +1130,7 @@ void _gsm48_cc_trans_free(struct gsm_trans *trans)
|
|||
}
|
||||
|
||||
static int gsm48_cc_tx_setup(struct gsm_trans *trans, void *arg);
|
||||
|
||||
|
||||
/* call-back from paging the B-end of the connection */
|
||||
static int setup_trig_pag_evt(unsigned int hooknum, unsigned int event,
|
||||
struct msgb *msg, void *_lchan, void *param)
|
||||
|
@ -1142,7 +1142,7 @@ static int setup_trig_pag_evt(unsigned int hooknum, unsigned int event,
|
|||
|
||||
if (hooknum != GSM_HOOK_RR_PAGING)
|
||||
return -EINVAL;
|
||||
|
||||
|
||||
if (!subscr)
|
||||
return -EINVAL;
|
||||
net = subscr->net;
|
||||
|
@ -2713,7 +2713,7 @@ int mncc_send(struct gsm_network *net, int msg_type, void *arg)
|
|||
/* if paging did not respond yet */
|
||||
if (!lchan) {
|
||||
DEBUGP(DCC, "(bts - trx - ts - ti -- sub %s) "
|
||||
"Received '%s' from MNCC in paging state\n",
|
||||
"Received '%s' from MNCC in paging state\n",
|
||||
(trans->subscr)?(trans->subscr->extension):"-",
|
||||
get_mncc_name(msg_type));
|
||||
mncc_set_cause(&rel, GSM48_CAUSE_LOC_PRN_S_LU,
|
||||
|
@ -2768,7 +2768,7 @@ static struct datastate {
|
|||
GSM48_MT_CC_CALL_CONF, gsm48_cc_rx_call_conf},
|
||||
{SBIT(GSM_CSTATE_CALL_PRESENT) | SBIT(GSM_CSTATE_MO_TERM_CALL_CONF), /* ???? | 5.2.2.3.2 */
|
||||
GSM48_MT_CC_ALERTING, gsm48_cc_rx_alerting},
|
||||
{SBIT(GSM_CSTATE_CALL_PRESENT) | SBIT(GSM_CSTATE_MO_TERM_CALL_CONF) | SBIT(GSM_CSTATE_CALL_RECEIVED), /* (5.2.2.6) | 5.2.2.6 | 5.2.2.6 */
|
||||
{SBIT(GSM_CSTATE_CALL_PRESENT) | SBIT(GSM_CSTATE_MO_TERM_CALL_CONF) | SBIT(GSM_CSTATE_CALL_RECEIVED), /* (5.2.2.6) | 5.2.2.6 | 5.2.2.6 */
|
||||
GSM48_MT_CC_CONNECT, gsm48_cc_rx_connect},
|
||||
/* signalling during call */
|
||||
{ALL_STATES - SBIT(GSM_CSTATE_NULL),
|
||||
|
|
|
@ -64,7 +64,7 @@ static const struct value_string cp_cause_strs[] = {
|
|||
{ GSM411_CP_CAUSE_SEMANT_INC_MSG, "Semantically Incorrect Message" },
|
||||
{ GSM411_CP_CAUSE_INV_MAND_INF, "Invalid Mandatory Information" },
|
||||
{ GSM411_CP_CAUSE_MSGTYPE_NOTEXIST, "Message Type doesn't exist" },
|
||||
{ GSM411_CP_CAUSE_MSG_INCOMP_STATE,
|
||||
{ GSM411_CP_CAUSE_MSG_INCOMP_STATE,
|
||||
"Message incompatible with protocol state" },
|
||||
{ GSM411_CP_CAUSE_IE_NOTEXIST, "IE does not exist" },
|
||||
{ GSM411_CP_CAUSE_PROTOCOL_ERR, "Protocol Error" },
|
||||
|
@ -208,7 +208,7 @@ static u_int8_t unbcdify(u_int8_t value)
|
|||
u_int8_t ret;
|
||||
|
||||
if ((value & 0x0F) > 9 || (value >> 4) > 9)
|
||||
LOGP(DSMS, LOGL_ERROR,
|
||||
LOGP(DSMS, LOGL_ERROR,
|
||||
"unbcdify got too big nibble: 0x%02X\n", value);
|
||||
|
||||
ret = (value&0x0F)*10;
|
||||
|
@ -502,8 +502,8 @@ static int gsm340_gen_tpdu(struct msgb *msg, struct gsm_sms *sms)
|
|||
return msg->len - old_msg_len;
|
||||
}
|
||||
|
||||
/* process an incoming TPDU (called from RP-DATA)
|
||||
* return value > 0: RP CAUSE for ERROR; < 0: silent error; 0 = success */
|
||||
/* process an incoming TPDU (called from RP-DATA)
|
||||
* return value > 0: RP CAUSE for ERROR; < 0: silent error; 0 = success */
|
||||
static int gsm340_rx_tpdu(struct gsm_subscriber_connection *conn, struct msgb *msg)
|
||||
{
|
||||
u_int8_t *smsp = msgb_sms(msg);
|
||||
|
@ -567,7 +567,7 @@ static int gsm340_rx_tpdu(struct gsm_subscriber_connection *conn, struct msgb *m
|
|||
sms_vp = 0;
|
||||
break;
|
||||
default:
|
||||
LOGP(DSMS, LOGL_NOTICE,
|
||||
LOGP(DSMS, LOGL_NOTICE,
|
||||
"SMS Validity period not implemented: 0x%02x\n", sms_vpf);
|
||||
return GSM411_RP_CAUSE_MO_NET_OUT_OF_ORDER;
|
||||
}
|
||||
|
@ -594,7 +594,7 @@ static int gsm340_rx_tpdu(struct gsm_subscriber_connection *conn, struct msgb *m
|
|||
subscr_name(gsms->sender), sms_mti, sms_vpf, gsms->msg_ref,
|
||||
gsms->protocol_id, gsms->data_coding_scheme, gsms->dest_addr,
|
||||
gsms->user_data_len,
|
||||
sms_alphabet == DCS_7BIT_DEFAULT ? gsms->text :
|
||||
sms_alphabet == DCS_7BIT_DEFAULT ? gsms->text :
|
||||
hexdump(gsms->user_data, gsms->user_data_len));
|
||||
|
||||
gsms->validity_minutes = gsm340_validity_period(sms_vpf, sms_vp);
|
||||
|
|
|
@ -236,7 +236,7 @@ static int parse_process_uss_req(u_int8_t *uss_req_data, u_int8_t length,
|
|||
gsm_7bit_decode(req->text,
|
||||
&(uss_req_data[7]), num_chars);
|
||||
/* append null-terminator */
|
||||
req->text[num_chars+1] = 0;
|
||||
req->text[num_chars+1] = 0;
|
||||
rc = 1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ static struct ia_e1_handle *e1h;
|
|||
static const u_int8_t pong[] = { 0, 1, IPAC_PROTO_IPACCESS, IPAC_MSGT_PONG };
|
||||
static const u_int8_t id_ack[] = { 0, 1, IPAC_PROTO_IPACCESS, IPAC_MSGT_ID_ACK };
|
||||
static const u_int8_t id_req[] = { 0, 17, IPAC_PROTO_IPACCESS, IPAC_MSGT_ID_GET,
|
||||
0x01, IPAC_IDTAG_UNIT,
|
||||
0x01, IPAC_IDTAG_UNIT,
|
||||
0x01, IPAC_IDTAG_MACADDR,
|
||||
0x01, IPAC_IDTAG_LOCATION1,
|
||||
0x01, IPAC_IDTAG_LOCATION2,
|
||||
|
|
|
@ -71,7 +71,7 @@ static int udp_sock(const char *ifname)
|
|||
rc = connect(fd, (struct sockaddr *)&sa, sizeof(sa));
|
||||
if (rc < 0)
|
||||
goto err;
|
||||
#endif
|
||||
#endif
|
||||
return fd;
|
||||
|
||||
err:
|
||||
|
@ -79,7 +79,7 @@ err:
|
|||
return rc;
|
||||
}
|
||||
|
||||
const unsigned char find_pkt[] = { 0x00, 0x0b+8, IPAC_PROTO_IPACCESS, 0x00,
|
||||
const unsigned char find_pkt[] = { 0x00, 0x0b+8, IPAC_PROTO_IPACCESS, 0x00,
|
||||
IPAC_MSGT_ID_GET,
|
||||
0x01, IPAC_IDTAG_MACADDR,
|
||||
0x01, IPAC_IDTAG_IPADDR,
|
||||
|
|
|
@ -946,7 +946,7 @@ static int listen_fd_cb(struct bsc_fd *listen_bfd, unsigned int what)
|
|||
perror("accept");
|
||||
return ret;
|
||||
}
|
||||
DEBUGP(DINP, "accept()ed new %s link from %s\n",
|
||||
DEBUGP(DINP, "accept()ed new %s link from %s\n",
|
||||
(listen_bfd->priv_nr & 0xff) == OML_FROM_BTS ? "OML" : "RSL",
|
||||
inet_ntoa(sa.sin_addr));
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ static struct bsc_fd bfd;
|
|||
static int first_request = 1;
|
||||
static struct mgcp_config *cfg;
|
||||
const char *openbsc_version = "OpenBSC MGCP " PACKAGE_VERSION;
|
||||
const char *openbsc_copyright =
|
||||
const char *openbsc_copyright =
|
||||
"Copyright (C) 2009-2010 Holger Freyther and On-Waves\n"
|
||||
"Contributions by Daniel Willmann, Jan Lübbe,Stefan Schmidt\n"
|
||||
"Dieter Spaar, Andreas Eversberg, Harald Welte\n\n"
|
||||
|
|
|
@ -156,7 +156,7 @@ static int handle_ser_read(struct bsc_fd *bfd)
|
|||
fprintf(stderr, "Invalid length in hdr: %u\n",
|
||||
sh->rxmsg_bytes_missing);
|
||||
}
|
||||
} else {
|
||||
} else {
|
||||
/* try to read as many of the missing bytes as are available */
|
||||
rc = read(sh->fd.fd, msg->tail, sh->rxmsg_bytes_missing);
|
||||
if (rc < 0) {
|
||||
|
|
|
@ -504,7 +504,7 @@ static int rtp_bfd_cb(struct bsc_fd *bfd, unsigned int flags)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void init_rss(struct rtp_sub_socket *rss,
|
||||
static void init_rss(struct rtp_sub_socket *rss,
|
||||
struct rtp_socket *rs, int fd, int priv_nr)
|
||||
{
|
||||
/* initialize bfd */
|
||||
|
|
|
@ -19,7 +19,7 @@ extern void *tall_ctr_ctx;
|
|||
void talloc_ctx_init(void)
|
||||
{
|
||||
tall_msgb_ctx = talloc_named_const(tall_bsc_ctx, 0, "msgb");
|
||||
tall_fle_ctx = talloc_named_const(tall_bsc_ctx, 0,
|
||||
tall_fle_ctx = talloc_named_const(tall_bsc_ctx, 0,
|
||||
"bs11_file_list_entry");
|
||||
tall_locop_ctx = talloc_named_const(tall_bsc_ctx, 0, "loc_updating_oper");
|
||||
tall_gsms_ctx = talloc_named_const(tall_bsc_ctx, 0, "sms");
|
||||
|
|
|
@ -526,7 +526,7 @@ vty_telnet_option (struct vty *vty, unsigned char *buf, int nbytes)
|
|||
vty->iac_sb_in_progress = 1;
|
||||
return 0;
|
||||
break;
|
||||
case SE:
|
||||
case SE:
|
||||
{
|
||||
if (!vty->iac_sb_in_progress)
|
||||
return 0;
|
||||
|
|
|
@ -162,7 +162,7 @@ static void bts_dump_vty(struct vty *vty, struct gsm_bts *bts)
|
|||
"BSIC %u, TSC %u and %u TRX%s",
|
||||
bts->nr, btstype2str(bts->type), gsm_band_name(bts->band),
|
||||
bts->cell_identity,
|
||||
bts->location_area_code, bts->bsic, bts->tsc,
|
||||
bts->location_area_code, bts->bsic, bts->tsc,
|
||||
bts->num_trx, VTY_NEWLINE);
|
||||
vty_out(vty, "MS Max power: %u dBm%s", bts->ms_max_power, VTY_NEWLINE);
|
||||
vty_out(vty, "Minimum Rx Level for Access: %i dBm%s",
|
||||
|
@ -598,7 +598,7 @@ static void lchan_dump_vty(struct vty *vty, struct gsm_lchan *lchan)
|
|||
int idx;
|
||||
|
||||
vty_out(vty, "Lchan %u in Timeslot %u of TRX %u in BTS %u, Type %s%s",
|
||||
lchan->nr, lchan->ts->nr, lchan->ts->trx->nr,
|
||||
lchan->nr, lchan->ts->nr, lchan->ts->trx->nr,
|
||||
lchan->ts->trx->bts->nr, gsm_lchant_name(lchan->type),
|
||||
VTY_NEWLINE);
|
||||
vty_out(vty, " Use Count: %u, State: %s%s", lchan->conn.use_count,
|
||||
|
@ -1346,7 +1346,7 @@ DEFUN(cfg_bts,
|
|||
/* allocate a new one */
|
||||
bts = gsm_bts_alloc(gsmnet, GSM_BTS_TYPE_UNKNOWN,
|
||||
HARDCODED_TSC, HARDCODED_BSIC);
|
||||
} else
|
||||
} else
|
||||
bts = gsm_bts_num(gsmnet, bts_nr);
|
||||
|
||||
if (!bts) {
|
||||
|
@ -1777,9 +1777,9 @@ DEFUN(cfg_trx,
|
|||
} else if (trx_nr == bts->num_trx) {
|
||||
/* we need to allocate a new one */
|
||||
trx = gsm_bts_trx_alloc(bts);
|
||||
} else
|
||||
} else
|
||||
trx = gsm_bts_trx_num(bts, trx_nr);
|
||||
|
||||
|
||||
if (!trx)
|
||||
return CMD_WARNING;
|
||||
|
||||
|
|
Loading…
Reference in New Issue