aboutsummaryrefslogtreecommitdiffstats
path: root/sgsnemu/cmdline.h
diff options
context:
space:
mode:
authorYann BONNAMY <yann_bonnamy@yahoo.fr>2010-11-18 10:01:21 +0100
committerHarald Welte <laforge@gnumonks.org>2011-10-07 18:34:56 +0200
commit11a398fbc3ad9b655d8ba947bea7012f7ce81604 (patch)
treeba05f0c6dbc8951846eb0637bda72fa4639a62a3 /sgsnemu/cmdline.h
parentad18ccb9dfea854f6577041e6e8a4725e5512925 (diff)
sgsnemu support for QoS as defined in 3GPP TS 24.008
this patch allows to tweak any bit of the QoS field of the Create PDP context generated by sgsnemu , aligned with 10.5.6.5 of 3GPP TS 24.008 V10.0.0 (2010-09) QoS field can be extended to "lenght 12" with option --qose1, as seen in real life on UMTS networks. extension to lenght 13, 15 and 17 can be done with option --qose2, --qose3, --qose4, never seen IRL but allows to test 3GPP compliance of GGSN. Signed-off-by: Yann BONNAMY <yann_bonnamy@yahoo.fr>
Diffstat (limited to 'sgsnemu/cmdline.h')
-rw-r--r--sgsnemu/cmdline.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sgsnemu/cmdline.h b/sgsnemu/cmdline.h
index 0871f3e..869262f 100644
--- a/sgsnemu/cmdline.h
+++ b/sgsnemu/cmdline.h
@@ -85,6 +85,14 @@ struct gengetopt_args_info
int qos_arg; /* Requested quality of service (default='0x0b921f'). */
char * qos_orig; /* Requested quality of service original value given at command line. */
const char *qos_help; /* Requested quality of service help description. */
+ unsigned long long int qose1_arg; /* Requested quality of service Extension 1 */
+ char * qose1_orig; /* Requested quality of service Extension 1 original value given at command line. */
+ int qose2_arg; /* Requested quality of service Extension 2 */
+ char * qose2_orig; /* Requested quality of service Extension 2 original value given at command line. */
+ int qose3_arg; /* Requested quality of service Extension 3 */
+ char * qose3_orig; /* Requested quality of service Extension 3 original value given at command line. */
+ int qose4_arg; /* Requested quality of service Extension 4 */
+ char * qose4_orig; /* Requested quality of service Extension 4 original value given at command line. */
int charging_arg; /* Charging characteristics (default='0x0800'). */
char * charging_orig; /* Charging characteristics original value given at command line. */
const char *charging_help; /* Charging characteristics help description. */
@@ -144,6 +152,10 @@ struct gengetopt_args_info
int nsapi_given ; /* Whether nsapi was given. */
int msisdn_given ; /* Whether msisdn was given. */
int qos_given ; /* Whether qos was given. */
+ int qose1_given ; /* Whether qos Extension 1 was given. */
+ int qose2_given ; /* Whether qos Extension 2 was given. */
+ int qose3_given ; /* Whether qos Extension 3 was given. */
+ int qose4_given ; /* Whether qos Extension 4 was given. */
int charging_given ; /* Whether charging was given. */
int uid_given ; /* Whether uid was given. */
int pwd_given ; /* Whether pwd was given. */