Mercurial > hg > dhcpcd
changeset 2558:044ce7911580 draft
No point in delaying a static configuration
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Wed, 02 Jul 2014 10:51:31 +0000 |
| parents | bb3193c599fd |
| children | a9188e42b807 |
| files | dhcp.c |
| diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dhcp.c Wed Jul 02 08:23:28 2014 +0000 +++ b/dhcp.c Wed Jul 02 10:51:31 2014 +0000 @@ -2998,6 +2998,14 @@ if (!(ifp->options->options & DHCPCD_IPV4)) return; + /* No point in delaying a static configuration */ + if (ifp->options->options & DHCPCD_STATIC && + !(ifp->options->options & DHCPCD_INFORM)) + { + dhcp_start1(ifp); + return; + } + tv.tv_sec = DHCP_MIN_DELAY; tv.tv_usec = (suseconds_t)arc4random_uniform( (DHCP_MAX_DELAY - DHCP_MIN_DELAY) * 1000000);
