Commit Graph

398 Commits

Author SHA1 Message Date
roy 76a8def0a9 Sync with dhcpcd-10.0.8 2024-05-24 16:09:09 +00:00
roy ed7347c8ff Update to dhcpcd-10.0.8 with the following fixes:
* Fixed compile without ARP
 * Fixed spelling of ADVERTISEMENT
2024-05-24 16:07:42 +00:00
roy 31430cea00 Sync with dhcpcd-10.0.7 2024-05-24 11:30:29 +00:00
roy 4dcbd9d51d Update to dhcpcd-10.0.7 with the following changes:
* DHCP: use request_time, fallback_time and ipv4ll_time rather than reboot timeout
* DHCP6: Wait for IRT to elapse before requesting advertisments
* DHCPv6: Don't re-INFORM if the RA changes
* privsep: Reduce fd use
* dhcpcd: Add support for arp persist defence
* Move dhcp(v4) packet size check earlier
* Define the Azure Endpoint and other site-specific options
* add RFC4191 support by @goertzenator in #297
* dhcpcd: Respect IPV6_PREFERRED_ONLY flag regardless of state
* Fix time_offset to be int to match RFC-2132
* hooks/30-hostname: Exit with 0 if setting hostname is not needed
2024-05-24 11:28:00 +00:00
roy 01c391e4d6 Fix import 2023-12-18 16:03:26 +00:00
roy 743878cf46 Sync with dhcpcd-10.0.6 2023-12-18 15:51:28 +00:00
roy c9f4661bc0 Import dhcpcd-10.0.6 with the following changes:
* privsep: Stop proxying stderr to console and fix some detachment issues
 * non-privsep: Fix launcher hangup
 * DHCP6: Allow the invalid interface name - to mean don't assign an address from a delegated prefix
 * DHCP6: Load the configuration for the interface being activated from prefix delegation
2023-12-18 15:49:41 +00:00
roy f85c7ad0a2 Sync with dhcpcd-10.0.4 2023-10-19 11:26:52 +00:00
roy 93b73b9ade Import dhcpcd-10.0.4 with the following change:
privsep: Notify processes that dhcpcd has daemonised so they dup
         stdout and stderr to /dev/null.
         This avoids scripts failing with SIGPIPE if they try and write
         to these streams.
2023-10-19 11:25:17 +00:00
roy 500f169515 sync with dhcpcd-10.0.3 2023-10-06 08:49:42 +00:00
roy c747e301ef Import dhcpcd-10.0.3 with the following changes:
DHCP: Don't crash on a test run
dhcpcd: Fix off-by-one overflow when read() writes full BUFSIZ
privsep: fix strlcpy overflow in psp_ifname
privsep: Fix a FD leak when processes exit
dhcpcd: Use a local variable instead of the optind
dhcpcd: Guard against handling many SIGTERM/SIGINT
DHCP6: Send correct amount of used buffer for prefix exclude option
options: andsf6 is DHCPv6, not DHCP
options: introduce the uri option as opposed to a string
DHCP6: Set all requested addrs as not stale when starting discovery
2023-10-06 08:46:21 +00:00
roy 4aeb2dd15c Sync with dhcpcd-10.0.2 2023-07-19 13:53:03 +00:00
roy f3ce8585ec Import dhcpcd-10.0.2 with the following changes:
* BSD: When we get RTM_NEWADDR the interface must have IFF_UP
 * BSD: Fix non INET6 builds
 * DHCP: Don't enforce the message came port 67
 * privsep: Allow zero length messages through
 * dhcpcd: deal with HANGUP and EPIPE better
 * dhcpcd: Fix waitip address family
 * privsep: Check if we have a root process before sending it stuff
 * privsep: Only unlink control sockets if we created them
 * common: Improve valid_domain and check correct return
 * common: Allow hwaddr_ntoa to print an empty string
 * privsep: Send only what we have put in the buffer to script env
2023-07-19 13:51:07 +00:00
gutteridge 00faf7a9a7 Install a copy of dhcpcd.conf under /usr/share/examples
Addresses PR bin/57487 from Taylor R Campbell.
2023-07-05 00:26:38 +00:00
roy a3a592bb82 dhcpcd: Fix non INET6 builds.
Thanks to J. Hannken-Illjes for the fix.
2023-04-27 13:21:59 +00:00
roy 74820ea053 Merge changes 2023-04-21 16:54:26 +00:00
roy 794dfa7744 Update to dhcpcd-10.0.1 with the following changes:
* privsep: keep resources open rather than open/close
 * dhcp6: OPTION_NTP_SERVER is now preferred over OPTION_SNTP_SERVER
 * Misc bug fixes mainly around privsep for many platforms.
 * Fix for reading the some BSD routing table entries.
 * Fix reading authtokens from config.

Big new release, mainly around better privsep process management
which allows us to detect when they exit unexpectedly.
2023-04-21 16:52:28 +00:00
wiz b4f71e776b dhcpcd: _OPENBSD_SOURCE does not need to be defined any longer
reallocarray() is in the public namespace now
2022-10-31 09:27:23 +00:00
roy 8a16fe8a3d Remove build for stuff dhcpcd's import-src target now does. 2021-10-22 13:25:57 +00:00
roy ecaf8d7772 Sync update 2021-10-22 13:23:20 +00:00
roy 2364920b3b Update to dhcpcd-9.4.1 with the following changes:
* BSD: Find the correct interface for tunnelled routes
 * OpenBSD: Fix uniqueness of routes for matching priorities
 * Linux: Support more platforms for seccomp (thanks to Fabrice Fontaine)
 * eloop: Process all waiting fd's as they come in
 * control: Unlink sockets when not in privsep
 * privsep: Renamed Master to Manager
 * privsep: Renamed Privilged Actioneer to Privileged Proxy
 * privsep: Fix getting interface VLANID on BSD
 * privsep: Enforce proper alignment of serialized struct cmsghdr
 * IPv4LL: Don't remove statically assigned addresses
 * routes: Fix route comparision for network prefixes with different masks
 * DHCP6: Only send FQDN for SOLICIT, REQUEST, RENEW, or REBIND messages
 * DHCP6: Don't spam the log when a RA repeatedly triggers an INFORM
 * DHCP: Fix infinite INFORM messages
2021-10-22 13:21:58 +00:00
rin b15419e6c4 For SMALLPROG, do not compile in IPv6 support unless SMALLPROG_INET6 is
defined, as in the same manner as other utilities.
2021-02-25 07:55:53 +00:00
roy 5311ca77c4 Sync with dhcpcd-9.4.0 2020-12-28 13:57:40 +00:00
roy f7c1f2f087 Update to dhcpcd-9.4.0 with the following changes:
* DHCP: For anonymous, just use a generic ClientID
 * link: Split hardware address randomisation out of anonymous option
 * link: Only report hardware changes for active interfaces
 * link: Report errors obtaining recv buffer size on overflow
 * hooks: Add NOCARRIER_ROAMING reason
 * hooks: interface_order now reflects priorities again
2020-12-28 13:56:25 +00:00
roy 5e88f5cfd3 Sync with dhcpcd-9.3.4 2020-11-28 14:27:20 +00:00
roy 5e29b77e59 Upate to dhcpcd-9.3.4 with the following changes:
With the following changes:
 * DHCP: If error adding the address in oneshot, exit with failure
 * DHCP: Only listen to the address if we successfully added it
 * DHCP6: Fix segfault introduced in dhcpcd-9.3.3
 * DHCP6: Abort in test mode when an error is returned by server
 * options: allow --ia_na=1 and --ia_pd=2 on the command line
 * options: Allow duid to take a value
2020-11-28 14:26:16 +00:00
roy 86988fb56b Sync with dhcpcd-9.3.3 2020-11-20 13:24:58 +00:00
roy d55488a43d Update to dhcpcd-9.3.3 with the following changes:
* dhcpcd: Don't create a launcher process if keeping in foreground
 * dhcpcd: Add --noconfigure option
 * control: Create an unpriv socket for non master mode
 * options: Don't log unknown ones when printing pidfile location
2020-11-20 13:23:38 +00:00
roy 8790575961 Sync with dhcpcd-9.3.2 2020-11-01 14:24:01 +00:00
roy 545ab76352 Update to dhcpcd-9.3.2 with the following changes:
* DHCP: Add support for IPv6-Only Preferred option, RFC 8925.
 * BSD: `LINK_STATE_UNKNOWN` is treated as UP once again
 * privsep: pass logging to the privileged actioneer
 * privsep: allow logfile re-opening to work
 * privsep: close BPF socket on ENXIO
 * privsep: don't leave a BOOTP BPF listener rebooting in non master mode
2020-11-01 14:23:02 +00:00
roy 0a9e4e74f0 Sync withn dhcpcd-9.3.1 2020-10-12 14:09:03 +00:00
roy 597ffba2d5 Update to dhcpcd-9.3.1 with the following changes:
* dhcpcd: carrier handling issue fixed from 9.3.0
 * dhcpcd: log if interface type is unsupported in debug
 * duid: memory leak fixed if UUID wanted but none available
 * privsep: fix receiving inet and no BPF running
 * privsep: allow gettimeofday for SECCOMP
 * privsep: fix stderr redirection again
2020-10-12 14:07:55 +00:00
roy be38669a3c Sync with dhcpcd-9.3.0 2020-10-05 16:02:15 +00:00
roy 32fe301ab8 Update to dhcpcd-9.3.0 with the following changes:
* dhcpcd: Backticks have been removed from quoting filenames
 * dhcpcd: Only manipulate stdin, stdout and stderr if they are valid
 * duid: Adjust option so the type can be specified
 * logerr: Don't leak logfile fd to scripts
 * privsep: Run the launcher process in the sandbox
 * BSD: Use `ifi_link_state` as the single source of truth about carrier
 * BSD: Ignore vether(4) devices by default
2020-10-05 16:01:13 +00:00
roy 3ace96f44a dhcpcd: Use ppoll(2) 2020-09-06 14:57:18 +00:00
roy 529fe136c2 Sync 2020-09-06 14:55:34 +00:00
roy b4100df48f Update to dhcpcd-9.2.0 with the following changes:
* route: ensure IPv4LL routes come last in priority
 * DHCP: fix many issues with extending the last lease
 * privsep: don't read control group from config in privsep
 * privsep: only the master process responds to signals
 * privsep: use a socketpair for stderr/stdin rather than dupping /dev/null
 * privsep: right limit stdin/stderr/stdout
 * privsep: dumping a lease is now run in a sandbox
 * options: check if kernel supports INET or INET6 before enabling default
 * options: let clientid override a prior duid
 * options: allow -1 to represent infinity for requested lease time
 * dhcpcd: fix a crash initing a new interface after route overflow
2020-09-06 14:54:28 +00:00
roy 61fe7a6beb Sync 2020-07-03 10:46:45 +00:00
roy 1d3a3c99fc Update to dhcpcd-9.1.4 with the following changes:
* Fix SMALL builds
 * Ensure DBDIR exists at startup
2020-07-03 10:45:43 +00:00
roy 95af55eb59 dhcpcd: Fix SMALL build 2020-07-02 17:15:00 +00:00
roy 2fc7a081d2 Sync 2020-07-02 13:59:19 +00:00
roy a43a146444 Update to dhcpcd-9.1.3 with the following changes:
* inet6: Add support for reporting Mobile IPv6 RA's
 * inet6: Report RA Proxy flag if set
 * BSD: Allow non NetBSD and OpenBSD to set IN6_IFF_AUTOCONF
 * privsep: Don't handle any signals meant for the main process
 * eloop: Try and survive a signal storm
 * dhcpcd: Add an option to poll the interface carrier state
 * script: Make visible some link level parameters to lease dumping
 * inet6: Don't regen temp addresses we didn't add
 * privsep: Don't limit file writes if logging to a file
 * DHCP6: Fix lease timings with nodelay option
2020-07-02 13:57:40 +00:00
roy b49ede492e dhcpcd: Build privsep resource limited sandbox. 2020-06-15 17:02:58 +00:00
roy a47a5665d4 Sync 2020-06-15 16:59:05 +00:00
roy e66fc20f54 Update to dhcpcd-9.1.2 with the following changes:
* NetBSD: free ARP state once IPv4LL address announced
* NetBSD: Mark RA dervied addresses as AUTOCONF
* BSD: Only mark static routes from dhcpcd.conf as static
* DHCP6: Ensure requested addresses are requested
* DHCP6: Fix prefix length calculation when no prefix specified
* privsep: Implement a resource limited sandbox
2020-06-15 16:58:01 +00:00
roy 378e0318d0 dhcpcd: Disable priviledge separation and sandboxing for SMALLPROG builds
It's a fair chunk of code and is probably safe enough for our ramdisks.
2020-06-11 16:05:54 +00:00
roy 50e9876ff7 dhcpcd: kqueue(2) support removed in favour of pollts(2) 2020-06-04 13:09:45 +00:00
roy b652e16f07 Sync 2020-06-04 13:08:13 +00:00
roy d37f9bca9d Update to dhcpcd-9.1.1 with the following changes:
* Restore dumping leases from stdin
 * auth: Only accept RECONFIGURE messages from LL addresses
 * auth: Access the RDM monotonic counter file via privsep
 * ARP: call arp_announced() when cancelling it
 * BSD: fwip(4) interfaces are now ignored by default
 * privsep: Ensure IPC buffers are large enough to carry messages
 * privsep: Only open RAW sockets for the needed protocols
 * privsep: Fix indirect ioctls returning data
 * privsep: wait for processes on SIGCHLD rather than when sent a STOP cmd
 * eloop: just use ppoll/pollts(2), falling back to pselect(2)
2020-06-04 13:07:12 +00:00
roy d31eb9bba7 Sync 2020-05-31 12:52:11 +00:00