summaryrefslogtreecommitdiff
path: root/lib/command.h
diff options
context:
space:
mode:
authorpaul <paul>2005-03-08 10:43:43 +0000
committerpaul <paul>2005-03-08 10:43:43 +0000
commit3b0c5d9a56560cfbfb1a8f5b9e6cc71025eb5490 (patch)
treea4b9c7506cb74223635135902e0479fda0b46fe2 /lib/command.h
parentc3d26c72982bc95906afb58fb46f1268bc915a3b (diff)
2005-03-08 Jeroen Massar <jeroen@unfix.org>
* vty.c: (vty_hello) display motd file, if set * command.h: add char *motdfile to struct host * command.c: (config_write_host) write out motdfile config (banner_motd_file_cmd) new command, allow motd to be read from file. (no_banner_motd_cmd) free motdfile string, if needs be. (cmd_init) init (struct host).motdfile. Add new motd file commands.
Diffstat (limited to 'lib/command.h')
-rw-r--r--lib/command.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/command.h b/lib/command.h
index eba919cb..14808330 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -55,6 +55,7 @@ struct host
/* Banner configuration. */
const char *motd;
+ char *motdfile;
};
/* There are some command levels which called from command node. */