diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-03-06 16:54:09 +0100 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-03-11 14:27:25 +0100 |
commit | dc6cfb7cebc64cdb278f02d32f897819bba5f983 (patch) | |
tree | 04cb1d5a44a1da6d2420fbfe2eaf6a5c0c728cb8 /main/busybox/0005-udhcpc-set-default-discover-retries-to-5.patch | |
parent | 4923b942bfc1889d3b2f3f6cb20b2aeef6a65f06 (diff) | |
download | aports-dc6cfb7cebc64cdb278f02d32f897819bba5f983.tar.bz2 aports-dc6cfb7cebc64cdb278f02d32f897819bba5f983.tar.xz |
main/busybox: upgrade to 1.28.1
Diffstat (limited to 'main/busybox/0005-udhcpc-set-default-discover-retries-to-5.patch')
-rw-r--r-- | main/busybox/0005-udhcpc-set-default-discover-retries-to-5.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/main/busybox/0005-udhcpc-set-default-discover-retries-to-5.patch b/main/busybox/0005-udhcpc-set-default-discover-retries-to-5.patch new file mode 100644 index 0000000000..181acdb9a8 --- /dev/null +++ b/main/busybox/0005-udhcpc-set-default-discover-retries-to-5.patch @@ -0,0 +1,35 @@ +From b67940090709f3bbd868557dd4d5317cb807250d Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Thu, 4 Aug 2016 11:08:35 +0200 +Subject: [PATCH 05/16] udhcpc: set default discover retries to 5 + +Some slower nics needs more attempts to get a lease +--- + networking/udhcp/dhcpc.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c +index 55f21c187..cc1d22c8e 100644 +--- a/networking/udhcp/dhcpc.c ++++ b/networking/udhcp/dhcpc.c +@@ -1203,7 +1203,7 @@ static void client_background(void) + //usage: "\n -p FILE Create pidfile" + //usage: "\n -B Request broadcast replies" + //usage: "\n -t N Send up to N discover packets (default 3)" +-//usage: "\n -T SEC Pause between packets (default 3)" ++//usage: "\n -T SEC Pause between packets (default 5)" + //usage: "\n -A SEC Wait if lease is not obtained (default 20)" + //usage: "\n -n Exit if lease is not obtained" + //usage: "\n -q Exit after obtaining lease" +@@ -1247,7 +1247,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv) + llist_t *list_x = NULL; + int tryagain_timeout = 20; + int discover_timeout = 3; +- int discover_retries = 3; ++ int discover_retries = 5; + uint32_t server_addr = server_addr; /* for compiler */ + uint32_t requested_ip = 0; + uint32_t xid = xid; /* for compiler */ +-- +2.16.2 + |