aboutsummaryrefslogtreecommitdiffstats
path: root/sgsnemu/cmdline.ggo
diff options
context:
space:
mode:
Diffstat (limited to 'sgsnemu/cmdline.ggo')
-rw-r--r--sgsnemu/cmdline.ggo26
1 files changed, 15 insertions, 11 deletions
diff --git a/sgsnemu/cmdline.ggo b/sgsnemu/cmdline.ggo
index 8136d3a..dec19cd 100644
--- a/sgsnemu/cmdline.ggo
+++ b/sgsnemu/cmdline.ggo
@@ -15,6 +15,10 @@
package "sgsnemu"
+defmode "createif" modedesc="any option of this mode is related to tun interface, \
+all payload going in and out via tunN interface"
+defmode "pinghost" modedesc="generate ICMP payload inside G-PDU without setting up tun interface"
+
option "debug" d "Run in debug mode" flag off
option "conf" c "Read configuration file" string no
@@ -49,18 +53,18 @@ option "charging" - "Charging characteristics" int default="0x0800
option "uid" u "Login user ID" string default="mig" no
option "pwd" p "Login password" string default="hemmelig" no
-option "createif" - "Create local network interface" flag off
-option "net" n "Network address for local interface" string dependon="createif" no
-option "defaultroute" - "Create default route" flag dependon="createif" off
-option "ipup" - "Script to run after link-up" string dependon="createif" no
-option "ipdown" - "Script to run after link-down" string dependon="createif" no
-option "tun-device" - "Name of the local network interface" string dependon="createif" no
+modeoption "createif" - "Create local network interface" flag off mode="createif"
+modeoption "net" n "Network address for local interface" string dependon="createif" no mode="createif"
+modeoption "defaultroute" - "Create default route" flag dependon="createif" off mode="createif"
+modeoption "ipup" - "Script to run after link-up" string dependon="createif" no mode="createif"
+modeoption "ipdown" - "Script to run after link-down" string dependon="createif" no mode="createif"
+modeoption "tun-device" - "Name of the local network interface" string dependon="createif" no mode="createif"
-option "pinghost" - "Ping remote host" string no
-option "pingrate" - "Number of ping req per second" int default="1" dependon="pinghost" no
-option "pingsize" - "Number of ping data bytes" int default="56" dependon="pinghost" no
-option "pingcount" - "Number of ping req to send" int default="0" dependon="pinghost" no
-option "pingquiet" - "Do not print ping packet info" flag dependon="pinghost" off
+modeoption "pinghost" - "Ping remote host" string no mode="pinghost"
+modeoption "pingrate" - "Number of ping req per second" int default="1" dependon="pinghost" no mode="pinghost"
+modeoption "pingsize" - "Number of ping data bytes" int default="56" dependon="pinghost" no mode="pinghost"
+modeoption "pingcount" - "Number of ping req to send" int default="0" dependon="pinghost" no mode="pinghost"
+modeoption "pingquiet" - "Do not print ping packet info" flag dependon="pinghost" off mode="pinghost"
option "no-tx-gpdu-seq" - "Don't transmit G-PDU sequence nums" flag off
option "pdp-type" t "PDP Type" string default="v4" no typestr="(v4|v6)"