aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/bsc_nat.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-04-16 16:02:59 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-04-18 17:32:38 +0200
commite5d324981d6378306d3e492cc8c04d4cf8f3d589 (patch)
tree9829acea08ee04a2cf9b5912651e15ca2d57017b /openbsc/include/openbsc/bsc_nat.h
parenta64037cd4a74d45d5da593e96faa9a7d8c746c9a (diff)
nat: Remove magic numbers, use enum values for conn classification
Remove the usage of 0, 1, 2 and start using enum values. We can still assume con_local is a number.
Diffstat (limited to 'openbsc/include/openbsc/bsc_nat.h')
-rw-r--r--openbsc/include/openbsc/bsc_nat.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/bsc_nat.h b/openbsc/include/openbsc/bsc_nat.h
index dd29c7aa5..02290231d 100644
--- a/openbsc/include/openbsc/bsc_nat.h
+++ b/openbsc/include/openbsc/bsc_nat.h
@@ -55,6 +55,16 @@ enum {
};
/*
+ * Is this terminated to the MSC, to the local machine (release
+ * handling for IMSI filtering) or to a USSD provider?
+ */
+enum {
+ NAT_CON_END_MSC,
+ NAT_CON_END_LOCAL,
+ NAT_CON_END_USSD,
+};
+
+/*
* Per BSC data structure
*/
struct bsc_connection {