Change in libosmocore[master]: gsm29118: add generator functions for GSM29118 messages

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Fri Dec 7 17:19:38 UTC 2018


Pau Espin Pedrol has posted comments on this change. ( https://gerrit.osmocom.org/12199 )

Change subject: gsm29118: add generator functions for GSM29118 messages
......................................................................


Patch Set 2: Code-Review-1

(3 comments)

https://gerrit.osmocom.org/#/c/12199/2/src/gsm/gsm29118.c
File src/gsm/gsm29118.c:

https://gerrit.osmocom.org/#/c/12199/2/src/gsm/gsm29118.c@207
PS2, Line 207: 		len = SGS_MME_NAME_LEN;
setting a a local value then returning -1? That makes no sense.


https://gerrit.osmocom.org/#/c/12199/2/src/gsm/gsm29118.c@222
PS2, Line 222: 	msgb_tlv_put(msg, SGSAP_IE_IMSI, len - 2, buf + 2);
why not using msgb_put() if we already have the whole TLV in buf? because the TAG is different?


https://gerrit.osmocom.org/#/c/12199/2/src/gsm/gsm29118.c@254
PS2, Line 254: struct msgb *gsm29118_create_dl_ud(const char *imsi, struct msgb *nas_msg)
does it make sense to require a msgb here API-wise? probably a pointer + len makes more sense. This way if caller doesn't have a msgb doesn't need to create an extra one.



-- 
To view, visit https://gerrit.osmocom.org/12199
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic87f8a771b87b52215d0a7451b67794557b80b8a
Gerrit-Change-Number: 12199
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Comment-Date: Fri, 07 Dec 2018 17:19:38 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181207/5e5b2d6f/attachment.htm>


More information about the gerrit-log mailing list