mirror of https://gerrit.osmocom.org/libosmocore
bssgp: make comments more explicit, include 'Rx' in received messages
This commit is contained in:
parent
cbf443ca72
commit
086fe32234
|
@ -257,7 +257,7 @@ static int bssgp_rx_bvc_reset(struct msgb *msg, struct tlv_parsed *tp,
|
|||
* informs us about its RAC + Cell ID, so we can create a mapping */
|
||||
if (bvci != 0 && bvci != 1) {
|
||||
if (!TLVP_PRESENT(tp, BSSGP_IE_CELL_ID)) {
|
||||
LOGP(DBSSGP, LOGL_ERROR, "BSSGP BVCI=%u RESET "
|
||||
LOGP(DBSSGP, LOGL_ERROR, "BSSGP BVCI=%u Rx RESET "
|
||||
"missing mandatory IE\n", bvci);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
@ -289,7 +289,7 @@ static int bssgp_rx_bvc_block(struct msgb *msg, struct tlv_parsed *tp)
|
|||
return 0;
|
||||
}
|
||||
|
||||
LOGP(DBSSGP, LOGL_INFO, "BSSGP BVCI=%u BVC-BLOCK\n", bvci);
|
||||
LOGP(DBSSGP, LOGL_INFO, "BSSGP Rx BVCI=%u BVC-BLOCK\n", bvci);
|
||||
|
||||
ptp_ctx = btsctx_by_bvci_nsei(bvci, msgb_nsei(msg));
|
||||
if (!ptp_ctx)
|
||||
|
@ -343,7 +343,7 @@ static int bssgp_rx_ul_ud(struct msgb *msg, struct tlv_parsed *tp,
|
|||
/* extract TLLI and parse TLV IEs */
|
||||
msgb_tlli(msg) = ntohl(budh->tlli);
|
||||
|
||||
DEBUGP(DBSSGP, "BSSGP TLLI=0x%08x UPLINK-UNITDATA\n", msgb_tlli(msg));
|
||||
DEBUGP(DBSSGP, "BSSGP TLLI=0x%08x Rx UPLINK-UNITDATA\n", msgb_tlli(msg));
|
||||
|
||||
/* Cell ID and LLC_PDU are the only mandatory IE */
|
||||
if (!TLVP_PRESENT(tp, BSSGP_IE_CELL_ID) ||
|
||||
|
@ -414,7 +414,7 @@ static int bssgp_rx_resume(struct msgb *msg, struct tlv_parsed *tp,
|
|||
tlli = ntohl(*(uint32_t *)TLVP_VAL(tp, BSSGP_IE_TLLI));
|
||||
suspend_ref = *TLVP_VAL(tp, BSSGP_IE_SUSPEND_REF_NR);
|
||||
|
||||
DEBUGP(DBSSGP, "BSSGP BVCI=%u TLLI=0x%08x RESUME\n", ctx->bvci, tlli);
|
||||
DEBUGP(DBSSGP, "BSSGP BVCI=%u TLLI=0x%08x Rx RESUME\n", ctx->bvci, tlli);
|
||||
|
||||
gsm48_parse_ra(&raid, TLVP_VAL(tp, BSSGP_IE_ROUTEING_AREA));
|
||||
|
||||
|
@ -445,7 +445,7 @@ static int bssgp_rx_llc_disc(struct msgb *msg, struct tlv_parsed *tp,
|
|||
if (TLVP_PRESENT(tp, BSSGP_IE_TLLI))
|
||||
tlli = ntohl(*(uint32_t *)TLVP_VAL(tp, BSSGP_IE_TLLI));
|
||||
|
||||
DEBUGP(DBSSGP, "BSSGP BVCI=%u TLLI=%08x LLC DISCARDED\n",
|
||||
DEBUGP(DBSSGP, "BSSGP BVCI=%u TLLI=%08x Rx LLC DISCARDED\n",
|
||||
ctx->bvci, tlli);
|
||||
|
||||
rate_ctr_inc(&ctx->ctrg->ctr[BSSGP_CTR_DISCARDED]);
|
||||
|
@ -579,7 +579,7 @@ static int gprs_bssgp_rx_sign(struct msgb *msg, struct tlv_parsed *tp,
|
|||
break;
|
||||
case BSSGP_PDUT_FLUSH_LL_ACK:
|
||||
/* BSS informs us it has performed LL FLUSH */
|
||||
DEBUGP(DBSSGP, "BSSGP BVCI=%u Rx FLUSH LL ACK\n", bctx->bvci);
|
||||
DEBUGP(DBSSGP, "BSSGP Rx BVCI=%u FLUSH LL ACK\n", bctx->bvci);
|
||||
/* FIXME: send NM_FLUSH_LL.res to NM */
|
||||
break;
|
||||
case BSSGP_PDUT_LLC_DISCARD:
|
||||
|
|
Loading…
Reference in New Issue