diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-01-06 06:44:37 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-01-07 15:48:27 +0100 |
commit | 4cffc45cbc6e0945845ee57ebe14e31eecc423a0 (patch) | |
tree | 5fa09828b3e864c312214b05850770c89ec2d12a /openbsc/src/rest_octets.c | |
parent | 6a9fa7308db906c8a92ac610ad3f05e14f2c2af5 (diff) |
[rest_octets] Change data_len to the sizes of the spec
Is that right?
Diffstat (limited to 'openbsc/src/rest_octets.c')
-rw-r--r-- | openbsc/src/rest_octets.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/openbsc/src/rest_octets.c b/openbsc/src/rest_octets.c index 6226203ec..6c8c40314 100644 --- a/openbsc/src/rest_octets.c +++ b/openbsc/src/rest_octets.c @@ -37,7 +37,7 @@ int rest_octets_si1(u_int8_t *data, u_int8_t *nch_pos) memset(&bv, 0, sizeof(bv)); bv.data = data; - bv.data_len = 2; + bv.data_len = 1; if (nch_pos) { bitvec_set_bit(&bv, H); @@ -45,7 +45,7 @@ int rest_octets_si1(u_int8_t *data, u_int8_t *nch_pos) } else bitvec_set_bit(&bv, L); - bitvec_spare_padding(&bv, 15); + bitvec_spare_padding(&bv, 7); return 0; } @@ -95,7 +95,7 @@ int rest_octets_si3(u_int8_t *data, const struct gsm48_si_ro_info *si3) memset(&bv, 0, sizeof(bv)); bv.data = data; - bv.data_len = 5; + bv.data_len = 4; /* Optional Selection Parameters */ append_selection_params(&bv, &si3->selection_params); @@ -141,7 +141,7 @@ int rest_octets_si4(u_int8_t *data, const struct gsm48_si_ro_info *si4) memset(&bv, 0, sizeof(bv)); bv.data = data; - bv.data_len = 11; /* FIXME: up to ? */ + bv.data_len = 10; /* FIXME: up to ? */ /* SI4 Rest Octets O */ append_selection_params(&bv, &si4->selection_params); @@ -340,7 +340,7 @@ int rest_octets_si13(u_int8_t *data, const struct gsm48_si13_info *si13) memset(&bv, 0, sizeof(bv)); bv.data = data; - bv.data_len = 21; + bv.data_len = 20; if (0) { /* No rest octets */ |