Commit Graph

269 Commits

Author SHA1 Message Date
sevan
e004a11994 Update usage() to include documented flags 2018-08-27 13:43:05 +00:00
roy
0ef7c20cc1 Sync 2018-08-20 10:55:59 +00:00
roy
3e0aeb312b Import dhcpcd-7.0.8 with the following changes:
*  Don't use IP_PKTINFO on NetBSD-7 as it's incomplete.
  *  Workaround RTM_NEWADDR sending the wrong broadcast address
     on NetBSD-7.
  *  Silence diagnostics if an address vanishes when reading
     it's flags on all BSD's.
  *  Misc compiler warnings fixed.
2018-08-20 10:55:03 +00:00
kamil
f53ceb8937 Fix build failure in dhcpcd under uUBSan
GCC with -fsanitize=undefiend detects a potential overflow in the code.
Cast the return value of ntohs(3) to size_t.

Fix merged upstream by <roy>.
2018-08-03 02:17:33 +00:00
roy
4addc59065 Import dhcpcd-7.0.7 with the following changes:
*  host routes work correctly again
  *  vlanid is also used to calculate slaac stable private addresses
2018-07-24 07:58:31 +00:00
triaxx
7d3291fe74 Fix an inconsistency that showed /var/db/duid in the man page while the
binary opened /var/db/dhcpcd/duid.
2018-07-05 05:41:17 +00:00
roy
8a7c7b0681 Sync 2018-06-21 11:58:23 +00:00
roy
8798a27054 Import dhcpcd-7.0.6 with the following changes:
*  fixed compile issues with prior release
  *  fixed carrier loss not being detected for IPv4
  *  UUID based DUID is used where available and no prior DUID exists
2018-06-21 11:55:19 +00:00
roy
03a87bcca2 Sync 2018-06-04 16:45:52 +00:00
roy
90122e541e Sync 2018-06-04 09:56:16 +00:00
roy
53aec9c10e Import dhcpcd-7.0.5a.
Only change is to fix builds without INET6.
2018-06-04 09:55:13 +00:00
roy
0450c156e9 Sync 2018-06-02 09:44:27 +00:00
roy
32efa79ab1 Import dhcpcd-7.0.5 with the following changes:
*  dhcp: Clarified some checksumming code, style and commentary
     (thanks to Maxime Villard)
  *  dhcp6: IAID is now unique per IA type rather than global
  *  ip6: if an IA callback causes a fork, exit earlier
2018-06-02 09:42:48 +00:00
roy
bdaa820626 Sync 2018-05-02 22:08:45 +00:00
roy
d1cb50ca95 Import dhcpcd-7.0.4 with the following changes:
* Routing: Fix case when cloning route changes but needs to be replaced
 * DHCP6: Transpose DHCP userclass option into DHCP6
 * DHCP6: Fix sending custom vendor class option
 * Auth: Allow zero value replay detection data
 * Auth: Allow different tokens for send and receive
 * ND6: Warn if router lifetime is set to zero
 * DHCP6: Softwire Address and Port-Mapped Clients, RFC7598
2018-05-02 22:06:41 +00:00
roy
dfcbac0022 Sync 2018-04-06 10:47:47 +00:00
roy
bd2e5260ed Import dhcpcd-7.0.3 with the following changes:
*  dhcp6: fix a null termination overflow on status messages
  *  options: static routes can be setup in global context again
  *  routes: dhcpcd added host routes are now reported correctly
2018-04-06 10:46:36 +00:00
roy
2072b910b9 Add support for setproctitle(3) 2018-03-27 06:18:40 +00:00
roy
adc6b41097 Sync 2018-03-27 06:16:34 +00:00
roy
ac9a05d6dd Import dhcpcd-7.0.2 with the following changes:
*  Added support for setproctitle(3)
  *  Kernel RA is no longer disabled when IPv6 is disabled in dhcpcd
  *  DHCPv6 PD is no longer stopped if no Routers are found
  *  If the DHCP leased address is deleted, enter the reboot state
  *  DHCPv6 unicast is no longer performed when not in master mode
  *  dhcpcd will now detect netlink/route socket overflows ad re-sync
2018-03-27 06:14:39 +00:00
mrg
6d188dd0d7 convert HAVE_GCC handling to modern GCC release numbering:
- HAVE_GCC=5 is now the default (vs. HAVE_GCC=53 we've been using for
  GCC 5.4 and GCC 5.5.)
- remove some more GCC 4.8 code.  we don't support GCC 4 here.
- adjust set lists to gcc=5 from gcc=53.

add some basic HAVE_GCC=6 handling (totally unused so far.)
2018-02-02 01:02:39 +00:00
roy
d20bb8f953 Sync 2018-01-29 11:13:06 +00:00
roy
10383d8fc1 Import dhcpcd-7.0.1 with the following changes:
*  hooks: remove use of local builtin for better portability
*  dhcpcd: don't log errors working out carrier for departed interfaces
*  ipv4: allow configuration of static broadcast address
*  if: don't set MTU during interface discovery
*  if: don't activate non matching interfaces to commandline ones
*  eloop-bench: fix hangs when using a large number of cycles
*  dhcp: don't bind when we've just probed an address to inform
2018-01-29 11:11:22 +00:00
roy
094d397286 Sync 2018-01-01 11:50:56 +00:00
roy
d92ae095f2 Import dhcpcd-7.0.0 with the following changes:
*  dhcp: when unicasting on L3, unicast on L2 as well
  *  dhcp: when rebooting, don't set cidaddr
  *  dhcp6: don't listen on IPv6 addresses when not using DHCPv6
  *  dhcp: only set probe state when probing (fixes REBOOT reason)
  *  ipv6: disable kernel RA if interface is active
  *  hooks: set protocol to link for link layer events
2018-01-01 11:48:51 +00:00
roy
c378917b11 Sync 2017-12-06 10:35:05 +00:00
roy
ffdc9e0056 Import dhcpcd-7.0.0-rc4 with the following changes:
*  Don't flush prefix routes/routers if kernel does not support RA
  *  dhcp: improve errors around UDP checksum failure
  *  dhcp: announce existing addresses before rebooting
  *  bpf: rework loop so that we can close/reopen fd inside and abort
  *  ipv6nd: don't handle NA/RA for non active interfaces
  *  dhcp6: listen on all addresses in non master mode
  *  dhcpcd-run-hooks: set protocol in dhcpcd, don't guess
  *  Ensure that xid is unique across all interfaces
  *  dhcp6: redirect message to interface which uses the xid
  *  bsd: strip scope from LL addresses when detecting their addition
  *  ipv6nd: fix address lifetime overflow on carrier up
  *  dhcp6: fix confirmation of lease on carrier up
2017-12-06 10:33:29 +00:00
roy
eea0c4791a Cleanup 2017-10-08 09:10:11 +00:00
roy
3c389f9623 Remove mistakenly commited debug. 2017-10-07 14:14:40 +00:00
roy
ec1306698f dhcpcd no longer needs hmac_md5.c 2017-10-07 14:11:07 +00:00
roy
d8819cfad2 Import dhcpcd-7.0.0-rc3 with the following noteable changes:
*  Fixed handling RA's from multiple routers
  *  Fixed changing to a better route based on gateway
  *  IPv6 default route is now deleted when config is not persistent
  *  Use hmac(3) if available in libc to reduce binary size

Fixes PR bin/52554
2017-10-07 14:05:36 +00:00
roy
4777372b1e Sync 2017-09-19 19:19:21 +00:00
roy
2e864d58b0 Import dhcpcd-7.0.0-rc2 with the following changes:
*  dhcp: fixed classless static routes
  *  prefix delegation: build routes after assigning addresses
  *  dhcp: on lease expiration, discover only when carrier
  *  ip6: fix potential segfault when lifetime overflows
  *  dhcp: fix reporting of DNS encoded SIP servers
  *  dhcp6: fix unicast in non master mode
2017-09-19 19:16:48 +00:00
roy
f514d3c7bb build dhcpcd with ARPING support for non small builds. 2017-09-15 12:02:00 +00:00
bsiegert
1eb43387d0 dhcp: Fix classless static routes
Assign the netwask correctly from the message.

Cherry-picked from upstream in
https://dev.marples.name/rDHC510c760cb24ef4b1b16cc14732c5ffe0fbb0d96d.

This fixes route assignments when running on Google Compute Engine,
which uses classless static routes.
2017-09-05 11:58:55 +00:00
roy
77e8e2e514 Restore Makefile.inc so dhcpcd is installed correctly as pointed out by kre@.
This reverts my prior commit.
2017-06-13 00:28:10 +00:00
roy
ed0dec9ae6 This Makefile fragment is no longer used. 2017-06-12 14:52:02 +00:00
roy
fc48706b44 Replace @DATADIR@ with /usr/share/examples as pointed by plunky@ 2017-06-12 14:50:38 +00:00
roy
071e94d506 Sync 2017-05-10 11:03:44 +00:00
roy
a38988a026 Import dhcpcd-7.0.0-rc1 with the following changes:
*  Default to use VLANID>0 for IAID instead of MAC address
  *  Stop sharing the DHCPv6 port in master mode with other processes
  *  Fix some prefix delegation issues when the carrier drops or
     addresses become stale
  *  Fix a crash when starting dhcpcd with -n
  *  Fix test for preferring a fake lease over a real one
  *  Show to real address lifetimes being added when adding IPv6
     addresses
  *  Restore the -G, --nogateway option
2017-05-10 11:00:37 +00:00
roy
d14d1633e4 Build logerr support. 2017-04-14 10:00:06 +00:00
roy
4589239c13 Sync 2017-04-14 09:56:32 +00:00
roy
f85b60c0ae Import dhcpcd-7.0.0-beta3 with the following changes:
*  restored --logfile support as a few people complained it vanished
     The new logging code even makes the overall binary size smaller
     on most platforms.
  *  BPF filter now trims garbage trailing the payload
     OK, it's not garbage, but userland doesn't know some drivers append
     FCS to it.
  *  support NetBSD's RO_MSGFILTER socket option to reduce avoid context
     switching for route(4) messages that don't interest us.
  *  Don't open sockets if just sending signals.
  *  HMAC-MD5 test's now check expectations in code rather than relying
     on visual confirmation.
  *  added eloop-bench to test performance of eloop with available
     polling mechanisms.
2017-04-14 09:53:06 +00:00
roy
b6de69380c Generate dhcpcd-embedded.c for dependencies too. 2017-04-14 07:55:55 +00:00
roy
c9d961458a Add dhcpcd-embedded.h to DPSRCS to ensure it exists when generating dependencies. 2017-04-13 18:12:32 +00:00
christos
8bf0b7f8c5 The last stderr message felt lonely and committed suicide. 2017-04-06 14:01:27 +00:00
christos
bcf59e7932 transposition police! 2017-04-06 14:00:34 +00:00
christos
55498c5a44 delete extra file 2017-04-05 21:26:30 +00:00
kamil
96ab71d5fd Try to fix build of dhcpcd (bpf.c) - violation of stack protector (GCC)
Patch obtained from <roy>
2017-04-03 00:42:20 +00:00
roy
7466388691 Let's make things easier and split the example hooks out into
a new Makefile.
2017-04-02 20:18:37 +00:00