summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient
AgeCommit message (Expand)AuthorFilesLines
2020-06-03Simplify logic in add_route(), eliminating pointless code duplication andkrw1-58/+31
2020-05-28A few stray 'ifa' overloadings.krw2-6/+6
2020-05-28Reduce 'ifa' overloading by renaming some parameters 'address'.krw1-9/+9
2020-05-28Reduce 'ifa' overloading by renaming proposal field from 'ifa' tokrw3-10/+10
2020-05-26Wrap some overly long lines.krw3-8/+15
2020-05-26Nuke a superflous local array in release_lease().krw1-4/+3
2020-05-21Rename various parameters and variables to eliminate misleadingkrw1-39/+38
2020-05-21extract_classless_route() -> extract_route() as there is only the one routekrw3-12/+14
2020-05-21Rename route_in_rtstatic() to route_pos() to more clearly reflect itskrw1-5/+5
2020-05-20Remove no longer necessary RTLEN.krw2-6/+3
2020-05-20Fix typo in comment.krw1-2/+2
2020-05-20Rename proposal{} fields rtstatic_len, rtsearch_len and rtdns_len tokrw3-32/+32
2020-05-20Replace fixed 128-byte fields for search domains, static routes andkrw4-32/+47
2020-05-19Eliminate imsg_propose{}, imsg_revoke{} and imsg_tell_unwind{} askrw3-45/+27
2020-05-15Shuffle and tweak code in lease_as_proposal() to allocate the proposalkrw1-59/+55
2020-05-15Fix domain-search option processing. Testing one value and then usingkrw1-2/+2
2020-05-15Be more careful in extracting the uint16_t value of interface-mtu, andkrw2-6/+7
2020-05-14Massage merge_option_data() to be more careful when dealing with 'D'krw3-17/+43
2020-05-13Repair 'domain-search' parsing broken in r1.191.krw1-10/+11
2020-05-13We don't count a terminating NUL in the length of option data.krw2-5/+5
2020-05-13Nuke a variable that is always set to 0.krw1-4/+3
2020-05-13No need to memcpy() into a string created by strdup().krw1-3/+2
2020-05-09Shuffle and clarify logic creating the contents of resolv.conf.krw1-80/+44
2020-05-08Nuke unneeded 'inits' field in struct proposal. 'mtu' being 0 is enough of a cluekrw3-6/+4
2020-05-08Nuke 'set but never used' addrs field in struct proposal.krw2-11/+2
2020-04-27If the DHCP server disappears between OFFER'ing and ACK'ing a lease,krw1-25/+20
2020-04-26Tighten up NAK handling. Inform unwind when the active lease iskrw1-18/+27
2020-04-24Stray whitespace.krw1-2/+2
2020-04-21Send broadcast packets to INADDR_BROADCAST, not INADDR_ANY.krw1-2/+2
2020-04-09No need to check for NULL before free().krw1-3/+2
2020-02-10briefly mention /etc/examples/ in the FILES section of all theschwarze1-2/+7
2020-02-02Tweak dhclient(8) timing defaults depending on SMALL rather than usingkrw1-3/+9
2020-01-26Don't validate '-c' with S_ISREG(). The install script uses /dev/stdin.krw1-4/+2
2020-01-24Allow carp(4) interfaces to be configured via dhcp.krw1-2/+2
2020-01-23Separate command line syntax parsing from semantic validation ofkrw2-13/+43
2020-01-20Move warning about DHO_STATIC_ROUTES (option 33) to debug.krw1-2/+2
2019-12-17Reject leases that do not provide a subnet mask for the address beingkrw2-4/+8
2019-11-27use _PATH_ names for unveil if possiblederaadt1-2/+2
2019-11-22Polish logic talking to unwind.krw4-25/+19
2019-11-22DNS Proposals are treated as replacements in unwind now.florian1-5/+9
2019-11-19Inform unwind about DNS servers it finds in leases.krw6-11/+178
2019-11-06No need to write resolv.conf after deciding to get a new lease,krw1-4/+5
2019-11-06Correct the logic deciding when to write resolv.conf.krw1-3/+14
2019-10-31Constrain and correct the routes being deleted when applying a newkrw1-10/+26
2019-08-06Use pw->pw_dir when chroot'ing, not _PATH_VAREMPTY.krw1-3/+3
2019-08-05dhclient.leases(5) is not required for dhclient(8) to work, so justkrw1-7/+5
2019-08-05If the leases file cannot be opened for writing, just issue a warningkrw1-2/+5
2019-08-01Don't leak resolv.conf contents.krw1-1/+2
2019-07-31space between macro arg and punctuation;jmc1-3/+3
2019-07-30Use AUTOCONF4 flag. Set the flag on startup. But if the flag iskrw4-31/+59