summaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/sgsn_vty.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-11-05 15:21:16 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-11-06 21:41:51 +0100
commit1491f2e7a9df870fb55eac1a229f59331c2242b3 (patch)
treea9ee7d783bd221694c0395e160565b73a2d5473f /openbsc/src/gprs/sgsn_vty.c
parent2eb6e2c0adf2bd4d38ef47bc69e8c1e29eb3c889 (diff)
sgsn: Make sure each parameter has some sort of documentation
Diffstat (limited to 'openbsc/src/gprs/sgsn_vty.c')
-rw-r--r--openbsc/src/gprs/sgsn_vty.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/openbsc/src/gprs/sgsn_vty.c b/openbsc/src/gprs/sgsn_vty.c
index 4c9cf2841..0125dad3b 100644
--- a/openbsc/src/gprs/sgsn_vty.c
+++ b/openbsc/src/gprs/sgsn_vty.c
@@ -129,7 +129,8 @@ static int config_write_sgsn(struct vty *vty)
return CMD_SUCCESS;
}
-#define SGSN_STR "Configure the SGSN"
+#define SGSN_STR "Configure the SGSN\n"
+#define GGSN_STR "Configure the GGSN information\n"
DEFUN(cfg_sgsn, cfg_sgsn_cmd,
"sgsn",
@@ -142,7 +143,8 @@ DEFUN(cfg_sgsn, cfg_sgsn_cmd,
DEFUN(cfg_sgsn_bind_addr, cfg_sgsn_bind_addr_cmd,
"gtp local-ip A.B.C.D",
"GTP Parameters\n"
- "Set the IP address for the local GTP bind\n")
+ "Set the IP address for the local GTP bind\n"
+ "IPv4 Address\n")
{
inet_aton(argv[0], &g_cfg->gtp_listenaddr.sin_addr);
@@ -151,7 +153,7 @@ DEFUN(cfg_sgsn_bind_addr, cfg_sgsn_bind_addr_cmd,
DEFUN(cfg_ggsn_remote_ip, cfg_ggsn_remote_ip_cmd,
"ggsn <0-255> remote-ip A.B.C.D",
- "")
+ GGSN_STR "GGSN Number\n" IP_STR "IPv4 Address\n")
{
uint32_t id = atoi(argv[0]);
struct sgsn_ggsn_ctx *ggc = sgsn_ggsn_ctx_find_alloc(id);
@@ -175,7 +177,8 @@ DEFUN(cfg_ggsn_remote_port, cfg_ggsn_remote_port_cmd,
DEFUN(cfg_ggsn_gtp_version, cfg_ggsn_gtp_version_cmd,
"ggsn <0-255> gtp-version (0|1)",
- "")
+ GGSN_STR "GGSN Number\n" "GTP Version\n"
+ "Version 0\n" "Version 1\n")
{
uint32_t id = atoi(argv[0]);
struct sgsn_ggsn_ctx *ggc = sgsn_ggsn_ctx_find_alloc(id);
@@ -311,7 +314,7 @@ DEFUN(show_ggsn, show_ggsn_cmd,
DEFUN(show_pdpctx_all, show_pdpctx_all_cmd,
"show pdp-context all",
- SHOW_STR "Display information on PDP Context\n")
+ SHOW_STR "Display information on PDP Context\n" "Show everything\n")
{
struct sgsn_pdp_ctx *pdp;