diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-04-16 13:23:43 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-04-16 14:14:17 +0200 |
commit | b2b291d3efea54a60c2e5c50f8ac34a2f12125cd (patch) | |
tree | 13a9793755108f044ebaf31d6e914986eb06ecf7 /openbsc/include | |
parent | c279e39c128615286a50e440179b6957158ceadb (diff) |
nat: Extract the LAC/CI from the Complete Layer3 Information
Find the Cell Identifier from the Complete Layer3 Information and
store it for future reference. We could begin to verify that the
LAC/CI used really belongs to the BSC.
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/bsc_nat.h | 3 | ||||
-rw-r--r-- | openbsc/include/openbsc/bsc_nat_sccp.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/bsc_nat.h b/openbsc/include/openbsc/bsc_nat.h index c5234d45a..13939457b 100644 --- a/openbsc/include/openbsc/bsc_nat.h +++ b/openbsc/include/openbsc/bsc_nat.h @@ -502,4 +502,7 @@ struct ctrl_handle *bsc_nat_controlif_setup(struct bsc_nat *nat, int port); void bsc_nat_ctrl_del_pending(struct bsc_cmd_list *pending); int bsc_nat_handle_ctrlif_msg(struct bsc_connection *bsc, struct msgb *msg); +int bsc_nat_extract_lac(struct bsc_connection *bsc, struct nat_sccp_connection *con, + struct bsc_nat_parsed *parsed, struct msgb *msg); + #endif diff --git a/openbsc/include/openbsc/bsc_nat_sccp.h b/openbsc/include/openbsc/bsc_nat_sccp.h index a21684b7f..34aa6320a 100644 --- a/openbsc/include/openbsc/bsc_nat_sccp.h +++ b/openbsc/include/openbsc/bsc_nat_sccp.h @@ -80,6 +80,9 @@ struct nat_sccp_connection { int imsi_checked; char *imsi; + uint16_t lac; + uint16_t ci; + /* remember which Transactions we run over the bypass */ char ussd_ti[8]; |