]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
[master] Changed dhcrelay v4 command line arg from -u to -U v4_3_4b1
authorThomas Markwalder <tmark@isc.org>
Mon, 7 Mar 2016 19:48:28 +0000 (14:48 -0500)
committerThomas Markwalder <tmark@isc.org>
Mon, 7 Mar 2016 19:48:28 +0000 (14:48 -0500)
Changed the new uplink command line argument for v4 dhcrelay from
-u to -U to distinguish it from v6.

RELNOTES
includes/osdep.h
relay/dhcrelay.8
relay/dhcrelay.c

index 90b3840835ed0a504e0a208861beb3864e7f7aab..26d508205b4d2ab211b39cb6c734220f94a3c5b7 100644 (file)
--- a/RELNOTES
+++ b/RELNOTES
@@ -213,7 +213,7 @@ by Eric Young (eay@cryptsoft.com).
   [ISC-Bugs #39262]
 
 - Add support for RFC 3527 to dhcrelay.  A new, dhcrelay command line argument,
-  "-u <interface>" enables the addition of a RFC 3527 compliant link selection
+  "-U <interface>" enables the addition of a RFC 3527 compliant link selection
   suboption to the agent option added for clients directly connected to the
   relay.
   [ISC-Bugs #34875]
index f2b14f3c164c48f5ec8648e3a70d46ffd0ac3a6b..cfae90b477cff1c3f1931fa577ceda6674b87402 100644 (file)
@@ -3,7 +3,7 @@
    Operating system dependencies... */
 
 /*
- * Copyright (c) 2004-2005,2007-2010,2014 by Internet Systems Consortium,
+ * Copyright (c) 2004-2016 by Internet Systems Consortium,
  *                                        Inc. ("ISC")
  * Copyright (c) 1996-2003 by Internet Software Consortium
  *
index 675ed01d4c538a8e997062d2ade4ae110a4fb167..67065663d906616569d9fb7d459d8d8e1a2ec6d3 100644 (file)
@@ -80,6 +80,9 @@ dhcrelay - Dynamic Host Configuration Protocol Relay Agent
 .B -l
 .I interface
 ]
+.B -U
+.I interface
+]
 .I server0
 [
 .I ...serverN
@@ -217,7 +220,7 @@ packet, leaving the supplied option field intact; it may \fIreplace\fR the
 existing agent option field; it may \fIforward\fR the packet unchanged; or,
 it may \fIdiscard\fR it.
 .TP
--u \fIifname\fR
+-U \fIifname\fR
 Enables the addition of a RFC 3527 compliant link selection suboption for
 clients directly connected to the relay.  This RFC allows a relay to
 specify two different IP addresses: one for the server to use when
@@ -242,7 +245,7 @@ This option is off by default.  Note that enabling this option automatically
 enables the \fB-a\fR option.
 
 Keep in mind that using options such as \fB-m replace\fR or \fB-m discard\fR
-on relays upstream from one using \fB-u\fR can pose problems.  The upstream
+on relays upstream from one using \fB-U\fR can pose problems.  The upstream
 relay will wipe out the initial agent option containing the link selection
 while leaving the re-purposed giaddr value in place, causing packets to go
 astray.
index 4113789a46df25ca1add4004fb51a5667278ce7b..5ecd26567d53d81e926c998a548d6b86dd212571 100644 (file)
@@ -153,7 +153,7 @@ char *progname;
 "                     [-pf <pid-file>] [--no-pid]\n"\
 "                     [-m append|replace|forward|discard]\n" \
 "                     [-i interface0 [ ... -i interfaceN]\n" \
-"                     [-u interface]\n" \
+"                     [-U interface]\n" \
 "                     server0 [ ... serverN]\n\n" \
 "       %s -6   [-d] [-q] [-I] [-c <hops>] [-p <port>]\n" \
 "                     [-pf <pid-file>] [--no-pid]\n" \
@@ -168,7 +168,7 @@ char *progname;
 "                [-pf <pid-file>] [--no-pid]\n" \
 "                [-m append|replace|forward|discard]\n" \
 "                [-i interface0 [ ... -i interfaceN]\n" \
-"                [-u interface]\n" \
+"                [-U interface]\n" \
 "                server0 [ ... serverN]\n\n"
 #endif
 
@@ -373,7 +373,7 @@ main(int argc, char **argv) {
                                agent_relay_mode = discard;
                        } else
                                usage("Unknown argument to -m: %s", argv[i]);
-               } else if (!strcmp(argv [i], "-u")) {
+               } else if (!strcmp(argv [i], "-U")) {
                        if (++i == argc)
                                usage(use_noarg, argv[i-1]);