summaryrefslogtreecommitdiff
path: root/lib/command.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-11-12 13:39:46 -0300
committerGitHub <noreply@github.com>2019-11-12 13:39:46 -0300
commit220e485b4d5f2bee07caf2ad698f18e4807dc380 (patch)
treec72af93c0df5a6e693b110979456e8830deabb06 /lib/command.h
parent7b6b97edcd2735b997c89e12ef36a8828bfdbdf3 (diff)
parent038984fd3c3ebdfabd316e457a204d0dbd8344ab (diff)
Merge pull request #5209 from ton31337/feature/banner_motd_from_input
vtysh: Add an option to set banner motd from an input
Diffstat (limited to 'lib/command.h')
-rw-r--r--lib/command.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/command.h b/lib/command.h
index d5dc129c72..73c15469e7 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -78,7 +78,7 @@ struct host {
int encrypt;
/* Banner configuration. */
- const char *motd;
+ char *motd;
char *motdfile;
};
@@ -499,6 +499,7 @@ extern void host_config_set(const char *);
extern void print_version(const char *);
extern int cmd_banner_motd_file(const char *);
+extern void cmd_banner_motd_line(const char *line);
/* struct host global, ick */
extern struct host host;