summaryrefslogtreecommitdiffstats
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
commite0fc1d3b11135827d64abdc2ec1207693cdba3e5 (patch)
treea1f2a322fb5d95772067773ebb2c776909f2fa51 /lib/command.h
parent43cbdb67a8e6e0ec5b3174faadece8724ec268e4 (diff)
downloadquagga-e0fc1d3b11135827d64abdc2ec1207693cdba3e5.tar.bz2
quagga-e0fc1d3b11135827d64abdc2ec1207693cdba3e5.tar.xz
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. */