diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-01-30 11:53:30 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-01-30 11:53:30 +0100 |
commit | e7b9771c4deb1cd9c68f5282bdcb17b6e7b89107 (patch) | |
tree | 0add6ed66bba7c6599180398ab4a1c9bbbb98faa /openbsc/include/openbsc/bsc_nat.h | |
parent | d709900efae3f212ad78735f92cd97882ce80188 (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/openbsc/bsc_nat.h')
-rw-r--r-- | openbsc/include/openbsc/bsc_nat.h | 8 |
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 |