diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-05-31 12:54:23 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-05-31 12:55:11 +0200 |
commit | a4b16658d514a8bc43d44e4717b2eb9d507d1699 (patch) | |
tree | b27f690fcb4a534fcf75c8b00a7a060da6900c90 /openbsc/src/rest_octets.c | |
parent | a6932d2eae39d775425783a14905447c5a1fc737 (diff) |
[GPRS] Make sure SI13 rest octets look like those of the ip.access BSC
Diffstat (limited to 'openbsc/src/rest_octets.c')
-rw-r--r-- | openbsc/src/rest_octets.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/openbsc/src/rest_octets.c b/openbsc/src/rest_octets.c index 039d2c83a..d9f5da568 100644 --- a/openbsc/src/rest_octets.c +++ b/openbsc/src/rest_octets.c @@ -316,8 +316,16 @@ static int append_gprs_cell_opt(struct bitvec *bv, bitvec_set_bit(bv, 1); bitvec_set_uint(bv, gco->bs_cv_max, 4); - /* hard-code no PAN_{DEC,INC,MAX} */ - bitvec_set_bit(bv, 0); + if (0) { + /* hard-code no PAN_{DEC,INC,MAX} */ + bitvec_set_bit(bv, 0); + } else { + /* copied from ip.access BSC protocol trace */ + bitvec_set_bit(bv, 1); + bitvec_set_uint(bv, 1, 3); /* DEC */ + bitvec_set_uint(bv, 1, 3); /* INC */ + bitvec_set_uint(bv, 15, 3); /* MAX */ + } if (!gco->ext_info_present) { /* no extension information */ |