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:
2
RELNOTES
2
RELNOTES
@@ -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.
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user