aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-01-30 11:53:30 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-06-15 20:24:06 +0800
commit1d6fb18b57f5c04f768262a4f7dfabdadf7a54b1 (patch)
tree2cbb09e2516ea9c6e9d084de6032e88712140f1d /openbsc/include
parent0b8f69d83957924ac9150693140c31a77a21476a (diff)
[nat] Specify the direction of the message
Do not run into the situation where we need to filter in one direction but it should not be filtered..
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/bsc_nat.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/openbsc/include/openbsc/bsc_nat.h b/openbsc/include/openbsc/bsc_nat.h
index b8a533fff..8293a4b5c 100644
--- a/openbsc/include/openbsc/bsc_nat.h
+++ b/openbsc/include/openbsc/bsc_nat.h
@@ -26,10 +26,8 @@
#include <sccp/sccp_types.h>
#include "msgb.h"
-#define FILTER_NONE 0
-#define FILTER_TO_BSC 1
-#define FILTER_TO_MSC 2
-#define FILTER_TO_BOTH 3
+#define DIR_BSC 1
+#define DIR_MSC 2
/*
* For the NAT we will need to analyze and later patch
@@ -72,6 +70,6 @@ struct bsc_nat_parsed *bsc_nat_parse(struct msgb *msg);
/**
* filter based on IP Access header in both directions
*/
-int bsc_nat_filter_ipa(struct msgb *msg, struct bsc_nat_parsed *parsed);
+int bsc_nat_filter_ipa(int direction, struct msgb *msg, struct bsc_nat_parsed *parsed);
#endif