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

Change subject: Use libosmocore constant for IMSI length in ACL entry
......................................................................


Patch Set 2:

(1 comment)

https://gerrit.osmocom.org/#/c/12224/2/include/osmocom/sgsn/gprs_sgsn.h
File include/osmocom/sgsn/gprs_sgsn.h:

https://gerrit.osmocom.org/#/c/12224/2/include/osmocom/sgsn/gprs_sgsn.h@417
PS2, Line 417:  char imsi[GSM23003_IMSI_MAX_DIGITS + 2];
> Comes from openbsc d3fa84dbba3b67cdbe2d8c789b2833b5ddf42068
And in there we use +1, which makes more sense:

openbsc/src/osmo-bsc_nat/bsc_ussd.c
405:    if (strlen(con->filter_state.imsi) > GSM23003_IMSI_MAX_DIGITS)

openbsc/src/libmsc/ctrl_commands.c
67:     else if (strlen(imsi) > GSM23003_IMSI_MAX_DIGITS)

openbsc/include/openbsc/bsc_subscriber.h
16:     char imsi[GSM23003_IMSI_MAX_DIGITS+1];

openbsc/include/openbsc/gsm_subscriber.h
47:     char imsi[GSM23003_IMSI_MAX_DIGITS+1];

openbsc/include/openbsc/ipaccess.h
15:     char    imsi[GSM23003_IMSI_MAX_DIGITS+1];



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

Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I138aea409aab0c748c75546e628797fc7498bf40
Gerrit-Change-Number: 12224
Gerrit-PatchSet: 2
Gerrit-Owner: Max <[email protected]>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Max <[email protected]>
Gerrit-Reviewer: Pau Espin Pedrol <[email protected]>
Gerrit-Comment-Date: Mon, 10 Dec 2018 17:43:33 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No

Reply via email to