diff options
author | Vladislav Grishenko <themiron@mail.ru> | 2016-12-09 22:40:31 +0300 |
---|---|---|
committer | Vladislav Grishenko <themiron@mail.ru> | 2016-12-10 03:31:26 +0300 |
commit | c96e30d5cdffd5d5c271d51d26fe1c4eff94b756 (patch) | |
tree | a4971e32b571d3d4fb964f2c17b9d7597a07c1ff | |
parent | 6457759218a64b369735eb9914068677bb82137b (diff) |
busybox: udhcpc: allow -h/-H to specify hostname
-rw-r--r-- | release/src/router/busybox/networking/udhcp/dhcpc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/release/src/router/busybox/networking/udhcp/dhcpc.c b/release/src/router/busybox/networking/udhcp/dhcpc.c index 764996245a..e979542b05 100644 --- a/release/src/router/busybox/networking/udhcp/dhcpc.c +++ b/release/src/router/busybox/networking/udhcp/dhcpc.c @@ -1198,6 +1198,7 @@ static void client_background(void) //usage: "\n -x lease:3600 - option 51 (lease time)" //usage: "\n -x 0x3d:0100BEEFC0FFEE - option 61 (client id)" //usage: "\n -F,--fqdn NAME Ask server to update DNS mapping for NAME" +//usage: "\n -H,-h,--hostname NAME Send NAME as client hostname" //usage: "\n -V,--vendorclass VENDOR Vendor identifier (default 'udhcp VERSION')" //usage: "\n -C,--clientid-none Don't send MAC as client identifier" //usage: IF_UDHCP_VERBOSE( @@ -1235,6 +1236,7 @@ static void client_background(void) //usage: "\n -x lease:3600 - option 51 (lease time)" //usage: "\n -x 0x3d:0100BEEFC0FFEE - option 61 (client id)" //usage: "\n -F NAME Ask server to update DNS mapping for NAME" +//usage: "\n -H,-h NAME Send NAME as client hostname" //usage: "\n -V VENDOR Vendor identifier (default 'udhcp VERSION')" //usage: "\n -C Don't send MAC as client identifier" //usage: IF_UDHCP_VERBOSE( @@ -1301,7 +1303,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv) ); if (opt & (OPT_h|OPT_H)) { //msg added 2011-11 - bb_error_msg("option -h NAME is deprecated, use -x hostname:NAME"); + //ASUS: bb_error_msg("option -h NAME is deprecated, use -x hostname:NAME"); client_config.hostname = alloc_dhcp_option(DHCP_HOST_NAME, str_h, 0); } if (opt & OPT_F) { |