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-06-15 20:24:20 +0800 |
commit | 19c0a84fb863a73ce8ee388e3be8044b23069848 (patch) | |
tree | 14bd363d3cf432ff9948a2307c8bb6f83ba32a96 /openbsc/include/openbsc/bsc_nat.h | |
parent | 66e1ef73c83844a26159befbcfb920d74c8741d5 (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/openbsc/bsc_nat.h')
-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 |