summaryrefslogtreecommitdiffstats
path: root/src/gb
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2012-07-21 13:33:39 +0200
committerHarald Welte <laforge@gnumonks.org>2012-07-21 13:33:39 +0200
commitaa5d0e88944fe3258260aedfbce9101301e35b44 (patch)
tree987e13ad3bb4f0d453decd552e0f3b3819fb2e4a /src/gb
parent007a71e3329aa76bb92701c9eb10743c68c93af9 (diff)
Fix encoding of BSSGP_IE_NUM_OCT_AFF in bssgp_tx_llc_discarded()
This is a 24bit integer value, and thus we need to encode the three least significant octets of the network-byte-order 32bit value, not the three most significant octets.
Diffstat (limited to 'src/gb')
-rw-r--r--src/gb/gprs_bssgp_bss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gb/gprs_bssgp_bss.c b/src/gb/gprs_bssgp_bss.c
index c058850d..9d0325a2 100644
--- a/src/gb/gprs_bssgp_bss.c
+++ b/src/gb/gprs_bssgp_bss.c
@@ -230,7 +230,7 @@ int bssgp_tx_llc_discarded(struct bssgp_bvc_ctx *bctx, uint32_t tlli,
msgb_tvlv_put(msg, BSSGP_IE_LLC_FRAMES_DISCARDED, 1, &num_frames);
msgb_tvlv_put(msg, BSSGP_IE_BVCI, 2, (uint8_t *) &_bvci);
- msgb_tvlv_put(msg, BSSGP_IE_NUM_OCT_AFF, 3, (uint8_t *) &_oct_aff);
+ msgb_tvlv_put(msg, BSSGP_IE_NUM_OCT_AFF, 3, ((uint8_t *) &_oct_aff) + 1);
return gprs_ns_sendmsg(bssgp_nsi, msg);
}