2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 14:25:41 +00:00

[master] Output copyright et al with usage in dhcrelay

Merges in rt41865.
This commit is contained in:
Thomas Markwalder
2017-11-16 14:08:53 -05:00
parent e39b419396
commit fc4f62fe47
2 changed files with 7 additions and 2 deletions

View File

@@ -142,7 +142,7 @@ static int strip_relay_agent_options(struct interface_info *,
static void request_v4_interface(const char* name, int flags);
static const char copyright[] =
"Copyright 2004-2016 Internet Systems Consortium.";
"Copyright 2004-2017 Internet Systems Consortium.";
static const char arr[] = "All rights reserved.";
static const char message[] =
"Internet Systems Consortium DHCP Relay Agent";
@@ -207,6 +207,10 @@ static const char use_v6command[] = "Command not used for DHCPv4: %s";
static void
usage(const char *sfmt, const char *sarg) {
log_info("%s %s", message, PACKAGE_VERSION);
log_info(copyright);
log_info(arr);
log_info(url);
/* If desired print out the specific error message */
#ifdef PRINT_SPECIFIC_CL_ERRORS

View File

@@ -27,7 +27,7 @@
*/
static const char copyright[] =
"Copyright 2004-2016 Internet Systems Consortium.";
"Copyright 2004-2017 Internet Systems Consortium.";
static const char arr [] = "All rights reserved.";
static const char message [] = "Internet Systems Consortium DHCP Server";
static const char url [] =
@@ -198,6 +198,7 @@ usage(const char *sfmt, const char *sarg) {
log_info("%s %s", message, PACKAGE_VERSION);
log_info(copyright);
log_info(arr);
log_info(url);
/* If desired print out the specific error message */
#ifdef PRINT_SPECIFIC_CL_ERRORS