Removing versioning information too.
OK deraadt@
-/* $OpenBSD: bgplg.c,v 1.17 2017/12/17 18:41:17 job Exp $ */
+/* $OpenBSD: bgplg.c,v 1.18 2017/12/18 09:12:49 job Exp $ */
/*
* Copyright (c) 2005, 2006 Reyk Floeter <reyk@openbsd.org>
"\"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\n"
"<html xmlns=\"http://www.w3.org/1999/xhtml\">\n"
"<head>\n"
- "<title>%s: %s</title>\n",
- CONTENT_TYPE, NAME, myname);
+ "<title>%s</title>\n",
+ CONTENT_TYPE, myname);
if (stat(INC_STYLE, &st) == 0) {
printf("<style type='text/css'><!--\n");
lg_incl(INC_STYLE);
"<body>\n");
}
- printf("<h1>%s: %s</h1>\n", NAME, myname);
- printf("<h2>%s</h2>\n", BRIEF);
-
/* print a form with possible options */
if ((self = lg_getenv("SCRIPT_NAME", NULL)) == NULL) {
printf("fatal error: invalid request\n");
printf("<hr/>\n");
printf("<div class='footer'>\n"
- "<small>%s - %s<br/>Copyright (c) %s</small>\n"
"</div>\n"
"</body>\n"
- "</html>\n", NAME, BRIEF, COPYRIGHT);
+ "</html>\n");
return (ret);
}
-/* $OpenBSD: bgplg.h,v 1.12 2017/12/17 18:41:17 job Exp $ */
+/* $OpenBSD: bgplg.h,v 1.13 2017/12/18 09:12:49 job Exp $ */
/*
* Copyright (c) 2005, 2006 Reyk Floeter <reyk@openbsd.org>
#define _BGPLG_H
#define NAME "bgplg"
-#define BRIEF "a looking glass for OpenBGPD"
-#define COPYRIGHT "2005, 2006 Reyk Floeter (reyk@openbsd.org)"
#define BGPLG_TIMEOUT 60 /* 60 seconds */
{ BGPCTL, "show", "neighbor", NULL } }, \
{ "show nexthop", 0, 0, NULL, \
{ BGPCTL, "show", "nexthop", NULL } }, \
- { "show version", 0, 0, NULL, { NULL }, lg_show_version }, \
{ "traceroute", 1, 1, "<address>", \
{ TRACEROUTE, "-ASl", NULL } }, \
{ "ping", 1, 1, "<address>", \
{ NULL } \
}
-int lg_show_version(struct cmd *, char **);
int lg_help(struct cmd *, char **);
int lg_exec(const char *, char **);
int lg_checkperm(struct cmd *);
-/* $OpenBSD: misc.c,v 1.7 2017/07/27 20:01:05 florian Exp $ */
+/* $OpenBSD: misc.c,v 1.8 2017/12/18 09:12:49 job Exp $ */
/*
* Copyright (c) 2005, 2006 Reyk Floeter <reyk@openbsd.org>
static volatile pid_t child = -1;
-int
-lg_show_version(struct cmd *cmds, char **argv)
-{
- struct utsname uts;
- if (uname(&uts) >= 0)
- printf("%s %s (%s)\n\n", uts.sysname, uts.release, uts.machine);
- printf("%s - %s\n", NAME, BRIEF);
- return (0);
-}
-
int
lg_checkperm(struct cmd *cmd)
{