aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/bsc_nat.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-02-07 13:08:09 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-02-07 13:08:09 +0100
commit63bb29fac022ed0eb6833ad17884b78bd958175d (patch)
tree504a6895b54f64a89418703665d880799ace0801 /openbsc/include/openbsc/bsc_nat.h
parent04b4f915a761f80bf026bcbc783185ce0d3cec1d (diff)
[nat] Move the structs to the header file
This way the VTY code can use the structures to implement the show functionality.
Diffstat (limited to 'openbsc/include/openbsc/bsc_nat.h')
-rw-r--r--openbsc/include/openbsc/bsc_nat.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/bsc_nat.h b/openbsc/include/openbsc/bsc_nat.h
index 8293a4b5c..cfd6a8a34 100644
--- a/openbsc/include/openbsc/bsc_nat.h
+++ b/openbsc/include/openbsc/bsc_nat.h
@@ -24,6 +24,8 @@
#include <sys/types.h>
#include <sccp/sccp_types.h>
+
+#include "select.h"
#include "msgb.h"
#define DIR_BSC 1
@@ -62,6 +64,34 @@ struct bsc_nat_parsed {
int gsm_type;
};
+/*
+ * Per BSC data structure
+ */
+struct bsc_connection {
+ struct llist_head list_entry;
+
+ /* do we know anything about this BSC? */
+ int authenticated;
+
+ /* the fd we use to communicate */
+ struct bsc_fd bsc_fd;
+};
+
+/*
+ * Per SCCP source local reference patch table. It needs to
+ * be updated on new SCCP connections, connection confirm and reject,
+ * and on the loss of the BSC connection.
+ */
+struct sccp_connections {
+ struct llist_head list_entry;
+
+ struct bsc_connection *bsc;
+
+ struct sccp_source_reference real_ref;
+ struct sccp_source_reference patched_ref;
+};
+
+
/**
* parse the given message into the above structure
*/