diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-21 12:12:57 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-27 10:40:44 +0200 |
commit | a914daf174e9d1a78bdccb1d5bd8b69ec8ff2280 (patch) | |
tree | eb55e9100cd4c241d11e5d3ded22913b927a3341 /openbsc/src/nat/bsc_nat_utils.c | |
parent | 76424392e08fcea56e665295830a9fdcc6dba5b5 (diff) |
nat: Add hook for rewriting a setup message
Create a new function, hand the data to this function, take back
a possible modified msgb and invalidate parsed at this point.
Diffstat (limited to 'openbsc/src/nat/bsc_nat_utils.c')
-rw-r--r-- | openbsc/src/nat/bsc_nat_utils.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c index 0cef01b24..a3fd97aaf 100644 --- a/openbsc/src/nat/bsc_nat_utils.c +++ b/openbsc/src/nat/bsc_nat_utils.c @@ -721,3 +721,10 @@ int bsc_write_cb(struct bsc_fd *bfd, struct msgb *msg) return rc; } +/** + * Rewrite non global numbers... according to rules based on the IMSI + */ +struct msgb *bsc_nat_rewrite_setup(struct bsc_nat *nat, struct msgb *msg, struct bsc_nat_parsed *pa) +{ + return msg; +} |