aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-05-18 03:31:16 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-05-18 03:31:16 +0800
commit35e56453d2cb11847fe6b65752e1641987419773 (patch)
tree204dedf7090c0df7206a165d326deb27b7a0a90d /openbsc/include
parent4fcf80a59a58f920862eb6db5135e8d01e9b5e12 (diff)
msc: Add msc ip-tos NR option for the BSC
Allow to set the TOS field via the VTY interface. The SO_PRIORITY was not used as it has no effect on the packets being sent (in contrast to the documentation).
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/openbsc/bsc_msc.h3
-rw-r--r--openbsc/include/openbsc/gsm_data.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/bsc_msc.h b/openbsc/include/openbsc/bsc_msc.h
index 9b75def9a..faf6faaa3 100644
--- a/openbsc/include/openbsc/bsc_msc.h
+++ b/openbsc/include/openbsc/bsc_msc.h
@@ -32,6 +32,7 @@ struct bsc_msc_connection {
int is_authenticated;
const char *ip;
int port;
+ int prio;
void (*connection_loss) (struct bsc_msc_connection *);
void (*connected) (struct bsc_msc_connection *);
@@ -39,7 +40,7 @@ struct bsc_msc_connection {
struct timer_list timeout_timer;
};
-struct bsc_msc_connection *bsc_msc_create(const char *ip, int port);
+struct bsc_msc_connection *bsc_msc_create(const char *ip, int port, int prio);
int bsc_msc_connect(struct bsc_msc_connection *);
void bsc_msc_schedule_connect(struct bsc_msc_connection *);
diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h
index 65b5a3c3e..4e73fd4f2 100644
--- a/openbsc/include/openbsc/gsm_data.h
+++ b/openbsc/include/openbsc/gsm_data.h
@@ -675,6 +675,7 @@ struct gsm_network {
char *bsc_token;
char *msc_ip;
int msc_port;
+ int msc_prio;
struct bsc_msc_connection *msc_con;
int ping_timeout;
int pong_timeout;