~indicator-network-developers/ofono/trunk.packaging

« back to all changes in this revision

Viewing changes to src/smsutil.c

  • Committer: Kalle Valo
  • Date: 2010-11-08 09:54:19 UTC
  • mfrom: (2738.1.1165)
  • Revision ID: kalle.valo@canonical.com-20101108095419-3u5fy1msw22i8ubt
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3176
3176
                template.submit.ud[0] += 6;
3177
3177
                template.submit.ud[offset] = SMS_IEI_APPLICATION_ADDRESS_16BIT;
3178
3178
                template.submit.ud[offset + 1] = 4;
3179
 
                template.submit.ud[offset + 2] = (dst & 0xf0) >> 8;
3180
 
                template.submit.ud[offset + 3] = dst & 0xf;
3181
 
                template.submit.ud[offset + 4] = (src & 0xf0) >> 8;
3182
 
                template.submit.ud[offset + 5] = src & 0xf;
 
3179
                template.submit.ud[offset + 2] = (dst & 0xff00) >> 8;
 
3180
                template.submit.ud[offset + 3] = dst & 0xff;
 
3181
                template.submit.ud[offset + 4] = (src & 0xff00) >> 8;
 
3182
                template.submit.ud[offset + 5] = src & 0xff;
3183
3183
 
3184
3184
                offset += 6;
3185
3185
        } else {
3186
3186
                template.submit.ud[0] += 4;
3187
3187
                template.submit.ud[offset] = SMS_IEI_APPLICATION_ADDRESS_8BIT;
3188
3188
                template.submit.ud[offset + 1] = 2;
3189
 
                template.submit.ud[offset + 2] = dst & 0xf;
3190
 
                template.submit.ud[offset + 3] = src & 0xf;
 
3189
                template.submit.ud[offset + 2] = dst & 0xff;
 
3190
                template.submit.ud[offset + 3] = src & 0xff;
3191
3191
 
3192
3192
                offset += 4;
3193
3193
        }
3203
3203
                template.submit.ud[0] += 6;
3204
3204
                template.submit.ud[offset] = SMS_IEI_CONCATENATED_16BIT;
3205
3205
                template.submit.ud[offset + 1] = 4;
3206
 
                template.submit.ud[offset + 2] = (ref & 0xf0) >> 8;
3207
 
                template.submit.ud[offset + 3] = ref & 0xf;
 
3206
                template.submit.ud[offset + 2] = (ref & 0xff00) >> 8;
 
3207
                template.submit.ud[offset + 3] = ref & 0xff;
3208
3208
 
3209
3209
                offset += 6;
3210
3210
        } else {
3211
3211
                template.submit.ud[0] += 5;
3212
3212
                template.submit.ud[offset] = SMS_IEI_CONCATENATED_8BIT;
3213
3213
                template.submit.ud[offset + 1] = 3;
3214
 
                template.submit.ud[offset + 2] = ref & 0xf;
 
3214
                template.submit.ud[offset + 2] = ref & 0xff;
3215
3215
 
3216
3216
                offset += 5;
3217
3217
        }
3342
3342
                template.submit.ud[0] += 6;
3343
3343
                template.submit.ud[offset] = SMS_IEI_CONCATENATED_16BIT;
3344
3344
                template.submit.ud[offset + 1] = 4;
3345
 
                template.submit.ud[offset + 2] = (ref & 0xf0) >> 8;
3346
 
                template.submit.ud[offset + 3] = ref & 0xf;
 
3345
                template.submit.ud[offset + 2] = (ref & 0xff00) >> 8;
 
3346
                template.submit.ud[offset + 3] = ref & 0xff;
3347
3347
 
3348
3348
                offset += 6;
3349
3349
        } else {
3350
3350
                template.submit.ud[0] += 5;
3351
3351
                template.submit.ud[offset] = SMS_IEI_CONCATENATED_8BIT;
3352
3352
                template.submit.ud[offset + 1] = 3;
3353
 
                template.submit.ud[offset + 2] = ref & 0xf;
 
3353
                template.submit.ud[offset + 2] = ref & 0xff;
3354
3354
 
3355
3355
                offset += 5;
3356
3356
        }