From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 01/11] stkutil: Add SMS-PP Data Download envelope builder
Date: Tue, 01 Jun 2010 18:50:19 -0500 [thread overview]
Message-ID: <201006011850.19709.denkenz@gmail.com> (raw)
In-Reply-To: <1275310044-27469-1-git-send-email-andrew.zaborowski@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1193 bytes --]
Hi Andrew,
> Note that the sms_tpdu member could be of type struct sms_deliver, but the
> users may more often have access to the raw tpdu so there's no point
> decoding and reencoding it.
Overall patch looks fine, but using a raw pdu is not preferable. Couple of
reasons:
- When SMS is delivered, it is delivered in tpdu form, e.g. sc_address +
deliver pdu. To obtain the sc_address, we need to decode the deliver tpdu
anyway.
- Before we know this is an SMS-PP download, we must check the dcs / pid. In
order to check those, we must again decode the tpdu.
- SMS sc_address can actually be non-numeric. In that case the SMS-PP
download should simply be dropped.
- Consistency with Send SMS proactive command.
> +
> +/* Returns TRUE on success */
> +ofono_bool_t stk_pdu_from_envelope(const struct stk_envelope *envelope,
> + unsigned char *pdu, unsigned int size,
> + unsigned char **out_pdu,
> + unsigned int *out_size);
>
This part just looks ugly. Can't we hide the details of char buf[512]
somewhere inside stk_pdu_from_envelope? Or perhaps make **out_pdu and
*out_size in/out arguments instead of just out.
Regards,
-Denis
next prev parent reply other threads:[~2010-06-01 23:50 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-31 12:47 [PATCH 01/11] stkutil: Add SMS-PP Data Download envelope builder Andrzej Zaborowski
2010-05-31 12:47 ` [PATCH 02/11] test-stkutil: Tests for " Andrzej Zaborowski
2010-05-31 12:47 ` [PATCH 03/11] stkutil: Add CBS-PP " Andrzej Zaborowski
2010-05-31 12:47 ` [PATCH 04/11] stk: Use envelope encoding utility from stkutil.c Andrzej Zaborowski
2010-05-31 12:47 ` [PATCH 05/11] test-stkutil: Tests for CBS-PP Data Download envelope builder Andrzej Zaborowski
2010-05-31 12:47 ` [PATCH 06/11] stkutil: Add the Menu Selection " Andrzej Zaborowski
2010-05-31 12:47 ` [PATCH 07/11] test-stkutil: Tests for " Andrzej Zaborowski
2010-05-31 12:47 ` [PATCH 08/11] Add a buffer size parameter to convert_utf8_to_gsm Andrzej Zaborowski
2010-06-01 23:50 ` Denis Kenzior
2010-05-31 12:47 ` [PATCH 09/11] Add a "sim string" encoding utility Andrzej Zaborowski
2010-05-31 12:47 ` [PATCH 10/11] stkutil: Add the Call Control envelope builder Andrzej Zaborowski
2010-06-01 22:28 ` Andrzej Zaborowski
2010-05-31 12:47 ` [PATCH 11/11] test-stkutil: Tests for " Andrzej Zaborowski
2010-06-01 23:50 ` Denis Kenzior [this message]
2010-06-03 9:53 ` [PATCH 01/11] stkutil: Add SMS-PP Data Download " Andrzej Zaborowski
2010-06-03 15:32 ` Denis Kenzior
2010-06-07 13:25 ` Andrzej Zaborowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201006011850.19709.denkenz@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox