Fix typos in comments and VTY descriptions

Change-Id: I359425152dc18d29c57047f1b10942480b7a61e5
This commit is contained in:
Pau Espin 2023-01-17 14:17:18 +01:00
parent 97f60e3dca
commit 4fac842826
2 changed files with 8 additions and 8 deletions

View File

@ -66,9 +66,9 @@ struct apn_ctx {
uint32_t apn_type_mask; uint32_t apn_type_mask;
/* GTP-U via TUN device or in Linux kernel */ /* GTP-U via TUN device or in Linux kernel */
enum apn_gtpu_mode gtpu_mode; enum apn_gtpu_mode gtpu_mode;
/* administratively shut-down (true) or not (false) */ /* administratively shut down (true) or not (false) */
bool shutdown; bool shutdown;
/* transmit G-PDU sequeence numbers (true) or not (false) */ /* transmit G-PDU sequence numbers (true) or not (false) */
bool tx_gpdu_seq; bool tx_gpdu_seq;
} cfg; } cfg;
@ -128,7 +128,7 @@ struct ggsn_ctx {
char *state_dir; char *state_dir;
/* Time between Echo requests on each SGSN */ /* Time between Echo requests on each SGSN */
unsigned int echo_interval; unsigned int echo_interval;
/* administratively shut-down (true) or not (false) */ /* administratively shut down (true) or not (false) */
bool shutdown; bool shutdown;
} cfg; } cfg;

View File

@ -299,7 +299,7 @@ DEFUN(cfg_ggsn_no_default_apn, cfg_ggsn_no_default_apn_cmd,
DEFUN(cfg_ggsn_shutdown, cfg_ggsn_shutdown_cmd, DEFUN(cfg_ggsn_shutdown, cfg_ggsn_shutdown_cmd,
"shutdown ggsn", "shutdown ggsn",
"Put the GGSN in administrative shut-down\n" GGSN_STR) "Put the GGSN in administrative shutdown\n" GGSN_STR)
{ {
struct ggsn_ctx *ggsn = (struct ggsn_ctx *) vty->index; struct ggsn_ctx *ggsn = (struct ggsn_ctx *) vty->index;
@ -316,7 +316,7 @@ DEFUN(cfg_ggsn_shutdown, cfg_ggsn_shutdown_cmd,
DEFUN(cfg_ggsn_no_shutdown, cfg_ggsn_no_shutdown_cmd, DEFUN(cfg_ggsn_no_shutdown, cfg_ggsn_no_shutdown_cmd,
"no shutdown ggsn", "no shutdown ggsn",
NO_STR GGSN_STR "Remove the GGSN from administrative shut-down\n") NO_STR GGSN_STR "Remove the GGSN from administrative shutdown\n")
{ {
struct ggsn_ctx *ggsn = (struct ggsn_ctx *) vty->index; struct ggsn_ctx *ggsn = (struct ggsn_ctx *) vty->index;
@ -344,7 +344,7 @@ static void show_one_sgsn(struct vty *vty, const struct sgsn_peer *sgsn, const c
DEFUN(cfg_ggsn_show_sgsn, cfg_ggsn_show_sgsn_cmd, DEFUN(cfg_ggsn_show_sgsn, cfg_ggsn_show_sgsn_cmd,
"show sgsn", "show sgsn",
NO_STR GGSN_STR "Remove the GGSN from administrative shut-down\n") NO_STR GGSN_STR "Remove the GGSN from administrative shutdown\n")
{ {
struct ggsn_ctx *ggsn = (struct ggsn_ctx *) vty->index; struct ggsn_ctx *ggsn = (struct ggsn_ctx *) vty->index;
struct sgsn_peer *sgsn; struct sgsn_peer *sgsn;
@ -681,7 +681,7 @@ DEFUN(cfg_apn_no_gpdu_seq, cfg_apn_no_gpdu_seq_cmd,
DEFUN(cfg_apn_shutdown, cfg_apn_shutdown_cmd, DEFUN(cfg_apn_shutdown, cfg_apn_shutdown_cmd,
"shutdown", "shutdown",
"Put the APN in administrative shut-down\n") "Put the APN in administrative shutdown\n")
{ {
struct apn_ctx *apn = (struct apn_ctx *) vty->index; struct apn_ctx *apn = (struct apn_ctx *) vty->index;
@ -698,7 +698,7 @@ DEFUN(cfg_apn_shutdown, cfg_apn_shutdown_cmd,
DEFUN(cfg_apn_no_shutdown, cfg_apn_no_shutdown_cmd, DEFUN(cfg_apn_no_shutdown, cfg_apn_no_shutdown_cmd,
"no shutdown", "no shutdown",
NO_STR "Remove the APN from administrative shut-down\n") NO_STR "Remove the APN from administrative shutdown\n")
{ {
struct apn_ctx *apn = (struct apn_ctx *) vty->index; struct apn_ctx *apn = (struct apn_ctx *) vty->index;