diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-04-23 23:55:14 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-04-26 09:33:47 +0200 |
commit | de2b860dffd5e55b52ecf0db36b326f17cf70e10 (patch) | |
tree | f02645e5bfa2764133087453bc143911fc5efb19 /openbsc/include | |
parent | c3f28320c24024e6e970735eef6f062821d588a2 (diff) |
nat: Introduce a block on the NAT to slowly get rid of BSCs
For restarting the NAT we can now block it, it will not accept
new connections and for existing connections it will attempt
to drop them over time. A blocked NAT will end up with no BSC
connections left and then can be safely restarted.
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/bsc_nat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/bsc_nat.h b/openbsc/include/openbsc/bsc_nat.h index e1848312d..8d552e254 100644 --- a/openbsc/include/openbsc/bsc_nat.h +++ b/openbsc/include/openbsc/bsc_nat.h @@ -264,6 +264,9 @@ struct bsc_nat { struct bsc_fd ussd_listen; struct bsc_nat_ussd_con *ussd_con; + /* for maintainenance */ + int blocked; + /* statistics */ struct bsc_nat_statistics stats; }; |