diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-05-16 02:00:40 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-05-16 02:49:11 +0800 |
commit | 11c17233fea7bc9e59d3718f55620f4044910d41 (patch) | |
tree | 6e20c3cbfe63adf9d48cb5e2ee170d3b7ab94de2 /openbsc/include | |
parent | fceee8779ee072ba1979c99642f770fd112ba333 (diff) |
[nat] Set the connection type/reason as out parameter
We are analyzing each CR message and it is nice to know the
reason these connections were created. Change the nat method.
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/bsc_nat.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/bsc_nat.h b/openbsc/include/openbsc/bsc_nat.h index 351a06d48..b9a8c60f0 100644 --- a/openbsc/include/openbsc/bsc_nat.h +++ b/openbsc/include/openbsc/bsc_nat.h @@ -42,6 +42,14 @@ struct bsc_nat; +enum { + NAT_CON_TYPE_NONE, + NAT_CON_TYPE_LU, + NAT_CON_TYPE_CM_SERV_REQ, + NAT_CON_TYPE_PAG_RESP, + NAT_CON_TYPE_OTHER, +}; + /* * For the NAT we will need to analyze and later patch * the received message. This would require us to parse @@ -261,7 +269,8 @@ struct bsc_connection *bsc_nat_find_bsc(struct bsc_nat *nat, struct msgb *msg, i /** * Content filtering. */ -int bsc_nat_filter_sccp_cr(struct bsc_connection *, struct msgb *msg, struct bsc_nat_parsed *); +int bsc_nat_filter_sccp_cr(struct bsc_connection *bsc, struct msgb *msg, + struct bsc_nat_parsed *, int *con_type); /** * SCCP patching and handling |