nat: Reindent the code, no functional change

This commit is contained in:
Holger Hans Peter Freyther
2010-08-28 16:46:27 +08:00
parent f4b3439206
commit c021fbe603

View File

@@ -274,30 +274,30 @@ int bsc_mgcp_policy_cb(struct mgcp_config *cfg, int endpoint, int state, const c
static void free_chan_downstream(struct mgcp_endpoint *endp, struct bsc_endpoint *bsc_endp, static void free_chan_downstream(struct mgcp_endpoint *endp, struct bsc_endpoint *bsc_endp,
struct bsc_connection *bsc) struct bsc_connection *bsc)
{ {
LOGP(DMGCP, LOGL_ERROR, "No CI, freeing endpoint 0x%x in state %d\n", LOGP(DMGCP, LOGL_ERROR, "No CI, freeing endpoint 0x%x in state %d\n",
ENDPOINT_NUMBER(endp), bsc_endp->transaction_state); ENDPOINT_NUMBER(endp), bsc_endp->transaction_state);
/* if a CRCX failed... send a DLCX down the stream */ /* if a CRCX failed... send a DLCX down the stream */
if (bsc_endp->transaction_state == MGCP_ENDP_CRCX) { if (bsc_endp->transaction_state == MGCP_ENDP_CRCX) {
struct sccp_connections *con; struct sccp_connections *con;
con = bsc_mgcp_find_con(bsc->nat, ENDPOINT_NUMBER(endp)); con = bsc_mgcp_find_con(bsc->nat, ENDPOINT_NUMBER(endp));
if (!con) { if (!con) {
LOGP(DMGCP, LOGL_ERROR, LOGP(DMGCP, LOGL_ERROR,
"No SCCP connection for endp 0x%x\n", "No SCCP connection for endp 0x%x\n",
ENDPOINT_NUMBER(endp)); ENDPOINT_NUMBER(endp));
} else {
if (con->bsc == bsc) {
bsc_mgcp_send_dlcx(bsc, ENDPOINT_NUMBER(endp));
con->crcx = 0;
} else { } else {
if (con->bsc == bsc) { LOGP(DMGCP, LOGL_ERROR,
bsc_mgcp_send_dlcx(bsc, ENDPOINT_NUMBER(endp)); "Endpoint belongs to a different BSC\n");
con->crcx = 0;
} else {
LOGP(DMGCP, LOGL_ERROR,
"Endpoint belongs to a different BSC\n");
}
} }
} }
}
bsc_mgcp_free_endpoint(bsc->nat, ENDPOINT_NUMBER(endp)); bsc_mgcp_free_endpoint(bsc->nat, ENDPOINT_NUMBER(endp));
mgcp_free_endp(endp); mgcp_free_endp(endp);
} }
/* /*