[rest_octets] Change data_len to the sizes of the spec

Is that right?
This commit is contained in:
Holger Hans Peter Freyther 2010-01-06 06:44:37 +01:00
parent 6a9fa7308d
commit 4cffc45cbc
1 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@ int rest_octets_si1(u_int8_t *data, u_int8_t *nch_pos)
memset(&bv, 0, sizeof(bv)); memset(&bv, 0, sizeof(bv));
bv.data = data; bv.data = data;
bv.data_len = 2; bv.data_len = 1;
if (nch_pos) { if (nch_pos) {
bitvec_set_bit(&bv, H); bitvec_set_bit(&bv, H);
@ -45,7 +45,7 @@ int rest_octets_si1(u_int8_t *data, u_int8_t *nch_pos)
} else } else
bitvec_set_bit(&bv, L); bitvec_set_bit(&bv, L);
bitvec_spare_padding(&bv, 15); bitvec_spare_padding(&bv, 7);
return 0; 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)); memset(&bv, 0, sizeof(bv));
bv.data = data; bv.data = data;
bv.data_len = 5; bv.data_len = 4;
/* Optional Selection Parameters */ /* Optional Selection Parameters */
append_selection_params(&bv, &si3->selection_params); 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)); memset(&bv, 0, sizeof(bv));
bv.data = data; bv.data = data;
bv.data_len = 11; /* FIXME: up to ? */ bv.data_len = 10; /* FIXME: up to ? */
/* SI4 Rest Octets O */ /* SI4 Rest Octets O */
append_selection_params(&bv, &si4->selection_params); 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)); memset(&bv, 0, sizeof(bv));
bv.data = data; bv.data = data;
bv.data_len = 21; bv.data_len = 20;
if (0) { if (0) {
/* No rest octets */ /* No rest octets */