aboutsummaryrefslogtreecommitdiffstats
path: root/sgsnemu/cmdline.c
AgeCommit message (Collapse)AuthorFilesLines
2017-10-14sgsnemu: Make use of "dependon" feature in gengetoptHarald Welte1-0/+48
The gengetopt syntax can specify that a particular command line argument depends on some other argument/option present. We can use this to provide useful feedback to the user at the command line parsing state, like --pingrate making no sense without --pinghost being specified. Change-Id: Ief27275e90e6bce23aed1e83874dbac98dd0926b
2017-10-14sgsnemu: Add '--tun-device' option to specify TUN device nameHarald Welte1-10/+74
This way, multiple sgsnemu instances can be runnig in parallel, each of them creating a different tun device for their respective PDP context Change-Id: Id12fbadf924a60db255b6d51b9f647aa51dd2e16
2017-10-01sgsnemu: Allow specification of PDP (EUA) Type IPv4 or IPv6Harald Welte1-1/+24
This just adds the capability to sgsnemu to request a certain PDP EUA type. It doesn't mean it actually handles anything beyond the existing IPv4 yet. Change-Id: I157f9157a7ff2ea56c37a4a902d4706de4c7d35d
2017-09-24sgsnemu: Add --no-tx-gpdu-seq option to suppress transmission of G-PDU ↵Harald Welte1-0/+22
sequence numbers Related: OS#2519 Change-Id: Idc650d896f0f72329090b56a37d9c16359294860
2017-09-24sgsnemu: Fix gengetopt package nameHarald Welte1-2/+1
gengetopt by default picks the program name from PACKAGE (autotools), which is osmo-ggsn and is obviously wrong in case of sgsnemu. After this patch, "sgsnemu --help" no longer shows "osmo-ggsn" but "sgsnemu" at the top of the help text. Change-Id: Ifabc2435a503ef71aa5a002ca46833f329068b37
2017-09-24sgsnemu: Re-generate cmdline.[ch] using gengetoptHarald Welte1-1243/+957
This will replace the manual additions to cmdline.[ch] with auto-generated code from gengetopt. We need to fix-up the RAT Type in sgsnemu.c as the manually-added code diverged from what gengetopt generates. Change-Id: Ia687e13d5cec1655a57078a767d2123aa022842c
2011-11-02Convert all code to Linux coding styleHarald Welte1-1639/+1810
After so many years of silence, we don't expect the original author to return to the project. To make things a bit simpler for us, we convert the coding style to what we are used to (Linux style). The conversion was made using the 'Lindent' script which is part of the Linux kernel.
2011-10-07optionally do not send recovery with sgsnemuHarald Welte1-0/+22
According to 3GPP TS 29.060 recovery is optional, add command line option --norecovery to remove this field in sgsnemu Signed-off-by: Yann BONNAMY <yann_bonnamy@yahoo.fr> Signed-off-by: Harald Welte <laforge@gnumonks.org>
2011-10-07Add optional RAI FieldHarald Welte1-0/+17
Routing Area Information is an optional Field described in 3GPP TS 29.060 7.7.3 it can be added with command line option rai, in the dot separated format MCC.MNC.LAC.RAC example : --rai 208.10.65535.255 Signed-off-by: Yann BONNAMY <yann_bonnamy@yahoo.fr> Signed-off-by: Harald Welte <laforge@gnumonks.org>
2011-10-07sgsnemu support for QoS as defined in 3GPP TS 24.008Yann BONNAMY1-2/+98
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>
2010-10-29Add support for GTP IE's from 3GPP R7Yann BONNAMY1-0/+69
This adds support for the followng new GTP Information Elements: RAT_TYPE, USER_LOC, MS_TZ, IMEI_SV Furthermore, it allows to specify those fields as sgsnemu command line arguments.
2010-05-04Use newer gengetopt which also frees memoryHarald Welte1-746/+1195
Taken from http://sourceforge.net/tracker/index.php?func=detail&aid=1811521&group_id=68956&atid=522957
2004-07-20Added selmodejjako1-1/+34
2004-05-27Charging optionjjako1-3/+36
2003-11-10Added --net, --nsapi, --gtpversion optionsjjako1-1/+98
2003-07-06Changed optionsjjako1-25/+1
2003-04-11added ippool.h and ippool.cjjako1-68/+28
2003-01-28Removed defaultroute optionjjako1-26/+0
2003-01-28Ping supportjjako1-85/+337
2003-01-05Compiles with gengetopt 2.8jjako1-2/+2
2002-12-16Initial revisionjjako1-0/+776