blob: 0d074aa5b56888d7afdc5040b8342668cd4ffbbc [file] [log] [blame]
Harald Welte632e8432017-09-05 18:12:14 +02001# OsmoGGSN - Gateway GPRS Support Node
jjako0fe0df02004-09-17 11:30:40 +00002# Copyright (C) 2002, 2003, 2004 Mondru AB.
jjako52c24142002-12-16 13:33:51 +00003#
jjakoa7cd2492003-04-11 09:40:12 +00004# The contents of this file may be used under the terms of the GNU
5# General Public License Version 2, provided that the above copyright
6# notice and this permission notice is included in all copies or
7# substantial portions of the software.
jjako52c24142002-12-16 13:33:51 +00008#
Harald Weltef6214982017-09-24 10:23:24 +08009# Use
10# gengetopt --conf-parser < cmdline.ggo
11# linux-2.6/scripts/Lindent cmdline.c
12# linux-2.6/scripts/Lindent cmdline.h
13# sed -i -e 's/int qose1_arg;/unsigned long long int qose1_arg;/' cmdline.h
jjakoa7cd2492003-04-11 09:40:12 +000014# to generate cmdline.c and cmdline.h
jjako52c24142002-12-16 13:33:51 +000015
Harald Welte7e1175f2017-09-24 10:53:53 +080016package "sgsnemu"
17
Viktor Tsymbalyukab4db102018-01-30 14:40:12 +020018defmode "createif" modedesc="any option of this mode is related to tun interface, \
19all payload going in and out via tunN interface"
20defmode "pinghost" modedesc="generate ICMP payload inside G-PDU without setting up tun interface"
21
jjakoa7cd2492003-04-11 09:40:12 +000022option "debug" d "Run in debug mode" flag off
jjako52c24142002-12-16 13:33:51 +000023
jjakoa7cd2492003-04-11 09:40:12 +000024option "conf" c "Read configuration file" string no
25option "pidfile" - "Filename of process id file" string default="./sgsnemu.pid" no
26option "statedir" - "Directory of nonvolatile data" string default="./" no
jjako52c24142002-12-16 13:33:51 +000027
jjakoa7cd2492003-04-11 09:40:12 +000028option "dns" - "DNS Server to use" string no
Pau Espin Pedrol5fdda132018-02-12 18:03:09 +010029option "listen" l "Local host" string no
jjakoa7cd2492003-04-11 09:40:12 +000030option "remote" r "Remote host" string no
jjako52c24142002-12-16 13:33:51 +000031
jjakoa7cd2492003-04-11 09:40:12 +000032option "contexts" - "Number of contexts" int default="1" no
33option "timelimit" - "Exit after timelimit seconds" int default="0" no
jjako52c24142002-12-16 13:33:51 +000034
jjako193e8b12003-11-10 12:31:41 +000035option "gtpversion" - "GTP version to use" int default="1" no
jjakoa7cd2492003-04-11 09:40:12 +000036option "apn" a "Access point name" string default="internet" no
jjako1a51df72004-07-20 08:30:21 +000037option "selmode" - "Selection mode" int default="0x01" no
Harald Welte1d945852017-09-24 08:51:02 +080038option "rattype" - "Radio Access Technology Type" int default="1" no typestr="1..5"
39option "userloc" - "User Location Information" string default="02509946241207" no typestr="type.MCC.MNC.LAC.CIorSACorRAC"
Harald Welteb6fc2272017-09-24 08:53:58 +080040option "rai" - "Routing Area Information" string default="02509946241207" no typestr="MCC.MNC.LAC.RAC"
Harald Welte1d945852017-09-24 08:51:02 +080041option "mstz" - "MS Time Zone" string default="0" no typestr="sign.NbQuartersOfAnHour.DSTAdjustment"
42option "imeisv" - "IMEI(SV) International Mobile Equipment Identity (and Software Version)" string default="2143658709214365" no
Harald Welte7c201482017-09-24 08:56:14 +080043option "norecovery" - "Do not send recovery" flag off
jjakoa7cd2492003-04-11 09:40:12 +000044option "imsi" i "IMSI" string default="240010123456789" no
jjako193e8b12003-11-10 12:31:41 +000045option "nsapi" - "NSAPI" int default="0" no
jjakoa7cd2492003-04-11 09:40:12 +000046option "msisdn" m "Mobile Station ISDN number" string default="46702123456" no
Harald Welte05ac0952017-09-24 08:41:14 +080047option "qos" q "Requested quality of service" int default="0x000b921f" no
48option "qose1" - "Requested quality of service Extension 1" int default="0x9396404074f9ffff" no
49option "qose2" - "Requested quality of service Extension 2" int default="0x11" no
50option "qose3" - "Requested quality of service Extension 3" int default="0x0101" no
51option "qose4" - "Requested quality of service Extension 4" int default="0x4040" no
jjako7e051d32004-05-27 20:06:36 +000052option "charging" - "Charging characteristics" int default="0x0800" no
jjakoa7cd2492003-04-11 09:40:12 +000053option "uid" u "Login user ID" string default="mig" no
54option "pwd" p "Login password" string default="hemmelig" no
jjako52c24142002-12-16 13:33:51 +000055
Viktor Tsymbalyukab4db102018-01-30 14:40:12 +020056modeoption "createif" - "Create local network interface" flag off mode="createif"
57modeoption "net" n "Network address for local interface" string dependon="createif" no mode="createif"
58modeoption "defaultroute" - "Create default route" flag dependon="createif" off mode="createif"
59modeoption "ipup" - "Script to run after link-up" string dependon="createif" no mode="createif"
60modeoption "ipdown" - "Script to run after link-down" string dependon="createif" no mode="createif"
61modeoption "tun-device" - "Name of the local network interface" string dependon="createif" no mode="createif"
Andreas Schultzb6292402018-10-05 13:58:45 +010062modeoption "netns" - "Network namespace to use" string dependon="createif" no mode="createif"
jjako5da68452003-01-28 16:08:47 +000063
Viktor Tsymbalyukab4db102018-01-30 14:40:12 +020064modeoption "pinghost" - "Ping remote host" string no mode="pinghost"
65modeoption "pingrate" - "Number of ping req per second" int default="1" dependon="pinghost" no mode="pinghost"
66modeoption "pingsize" - "Number of ping data bytes" int default="56" dependon="pinghost" no mode="pinghost"
67modeoption "pingcount" - "Number of ping req to send" int default="0" dependon="pinghost" no mode="pinghost"
68modeoption "pingquiet" - "Do not print ping packet info" flag dependon="pinghost" off mode="pinghost"
Harald Welteea0c26a2017-10-10 08:54:04 +080069
Harald Weltefbb9c7f2017-09-24 11:50:20 +080070option "no-tx-gpdu-seq" - "Don't transmit G-PDU sequence nums" flag off
Harald Welte840a8e92017-09-24 18:12:40 +080071option "pdp-type" t "PDP Type" string default="v4" no typestr="(v4|v6)"