2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-09-02 15:25:48 +00:00

Fix "dhcrelay --version" [rt17350]

This commit is contained in:
Evan Hunt
2008-01-17 17:18:28 +00:00
parent 30922d9c3c
commit e4a896be6b
2 changed files with 4 additions and 2 deletions

View File

@@ -55,6 +55,8 @@ suggested fixes to <dhcp-users@isc.org>.
Changes since 4.0.0 Changes since 4.0.0
- Fixed "--version" flag in dhcrelay
- The warning logged when an address range doesn't fit in the subnets - The warning logged when an address range doesn't fit in the subnets
they were declared has been updated to be more helpful and identify the they were declared has been updated to be more helpful and identify the
typo in configuration that created the spanning addresses. typo in configuration that created the spanning addresses.

View File

@@ -194,11 +194,11 @@ main(int argc, char **argv) {
usage (); usage ();
} else if (!strcmp (argv [i], "-D")) { } else if (!strcmp (argv [i], "-D")) {
drop_agent_mismatches = 1; drop_agent_mismatches = 1;
} else if (argv [i][0] == '-') {
usage ();
} else if (!strcmp (argv [i], "--version")) { } else if (!strcmp (argv [i], "--version")) {
log_info ("isc-dhcrelay-%s", PACKAGE_VERSION); log_info ("isc-dhcrelay-%s", PACKAGE_VERSION);
exit (0); exit (0);
} else if (argv [i][0] == '-') {
usage ();
} else { } else {
struct hostent *he; struct hostent *he;
struct in_addr ia, *iap = (struct in_addr *)0; struct in_addr ia, *iap = (struct in_addr *)0;