summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* Remove duplicated header.dhcpcd-7Roy Marples2020-02-10
|
* compat: Fix a typo in pidfile when O_CLOEXEC is not definedPetr Gotthard2020-02-10
| | | | While here, include fcntl.h in if.c for older environments.
* inet: Allow forcing a host route from an interface without a leaseRoy Marples2019-12-31
|
* Release dhcpcd-7.2.5dhcpcd-7.2.5Roy Marples2019-12-20
|
* options: Fix allocating the script optionRoy Marples2019-12-20
| | | | | | When passing PARSE_STRING_NULL we expect to store the string NULL terminated. As such, allocate space for it an ensure we have space for it.
* Release dhcpcd-7.2.4dhcpcd-7.2.4Roy Marples2019-12-20
|
* DHCP: Ensure we have a lease to extract options from.Roy Marples2019-12-19
|
* DHCP6: Remove now unused varsRoy Marples2019-12-17
|
* DHCP6: Add disabled code to allow packet replayRoy Marples2019-12-17
| | | | | | | I get bored of adding similar code from time to time just to aid debugging, so let's just add it in. Someone else might find it useful too.
* DHCP6: Rework delegation deprecationRoy Marples2019-12-17
| | | | | | | | | | Split ipv6_addaddrs out so ipv6_doaddr can operate on a single address. Call this when deprecating delegated addresses to avoid calling ipv6_addaddrs. This allows a more simple ipv6_addaddrs that doesn't need to test which address collection we are deleting from and removes DHCPv6 specific code from the generic IPv6 module.
* DHCP6: Fix deprecating a delegated prefixRoy Marples2019-12-16
| | | | | Be sure to remove the address using the right TAILQ member. While here, simplify the initialisation of pd_pfxs.
* options: Suboption 3 of NTP Server is a FQDNRoy Marples2019-12-16
| | | | As such it should be domain and not ip6address.
* DHCP6: Work better with infinite addressesRoy Marples2019-12-12
| | | | | | | And as such just log infinite lease rather than an arbitary number. Backported from d7e68001.
* DHCP6: Change state to REQEST when any IA has NOBINDING statusRoy Marples2019-07-29
| | | | Just to be more RFC conformant.
* hooks: Ensure header is empty before populating it.Roy Marples2019-07-12
| | | | Thanks to Andreas
* Release dhcpcd-7.2.3dhcpcd-7.2.3Roy Marples2019-06-26
|
* Fix typo in configureOleksandr Kravchuk2019-06-25
|
* DHCP6: Fix INFORM supportRoy Marples2019-06-20
|
* 30-hostname: Fix typo: hsort -> hshortDaniel Gröber2019-06-12
|
* DHCP6: Keep running regardless of RA stateRoy Marples2019-06-12
| | | | | | | | | | We should keep DHCP6 running even if routers expire or link changes. This is noted in RFC3315 18.1.2: If the client receives no responses before the message transmission process terminates, as described in section 14, the client SHOULD continue to use any IP addresses, using the last known lifetimes for those addresses, and SHOULD continue to use any other previously obtained configuration parameters.
* BSD: Ensure we have enough of a RTM message to read it.Roy Marples2019-05-04
| | | | As not all are of equal size.
* OpenBSD: Fix compileRoy Marples2019-05-04
|
* DHCPv6: Fix exclude prefix length check.dhcpcd-7.2.2Roy Marples2019-05-04
|
* Release dhcpcd-7.2.2Roy Marples2019-05-04
|
* sun: More validation around route messagesRoy Marples2019-05-04
|
* sun: Apply same RTM validation from BSDRoy Marples2019-05-03
|
* BSD: Ignore coverity errorsRoy Marples2019-05-03
| | | | | We could do ((char *)rtm) + rtm->rtm_msglen but that looks more ugly than rtm + 1.
* BSD: Validate RTM message lengths receivedRoy Marples2019-05-03
| | | | Doubtful these lengths would be invalid, but you never know.
* BPF: Fix ARP BPF filter to actually filter unwanted ARP message typesRoy Marples2019-05-03
| | | | | | While here, clarify the BPF instruction space needed for ARP as it could overflow in the very unlikely event we ARP for three addresses at the same time.
* DHCPv6: Fix a potential read overflow with D6_OPTION_PD_EXCLUDERoy Marples2019-05-03
| | | | | | | | | | | | dhcpcd only checks that the prefix length of the exclusion matches the prefix length of the ia and equals the length of the data in the option. This could potentially overrun the in6_addr structure. This is fixed by enforcing RFC 6603 section 4.2 option limits more clearly. Thanks to Maxime Villard <max@m00nbsd.net> for finding this.
* Fix a small brain fart causing LINK_UNKNOWN to spin.Roy Marples2019-05-02
|
* BSD: Simplify carrier detection once more.Roy Marples2019-05-02
| | | | | | | | | | | RTM_IFINFO messages now send the un-molested link status to the main carrier handler which no longer polls on LINK_UNKNOWN. Instead, we check carrier status directly, which if unsupported we instead interface flags. This is 2019, all interface drivers should report link status correctly via RTM_IFINFO messages and trying to constantly work around this is error prone and time consuming.
* Fix commentRoy Marples2019-05-02
|
* BSD: RTM_IFINFO is not emitted for all interfaces past unknown linkRoy Marples2019-05-02
| | | | | It has to work for wireless interfaces, but we have no idea about other interfaces. So test valid carrier for unknown.
* Don't report errno here.Roy Marples2019-04-29
|
* dhcp: Cast away a warning on mips64Roy Marples2019-04-29
|
* dhcp: Ensure that we have DHCP running on the receiving interfaceRoy Marples2019-04-29
| | | | ... before trying to process the received BOOTP message on it.
* Release dhcpcd-7.2.1dhcpcd-7.2.1Roy Marples2019-04-26
|
* sun: Simplify initialisation of the multicast destinationRoy Marples2019-04-26
|
* OpenBSD: Don't spam syslog when cannot send NARoy Marples2019-04-26
| | | | | | The error is "No route to host". OpenBSD does not support IPv6 address sharing, so it's no biggie. As such, only log an error when debugging.
* FreeBSD: Fix fetching the IPv6 address lifetimeRoy Marples2019-04-26
| | | | | FreeBSD it seems sensibly uses a monotonic clock for IPv6 lifetimes but the others use the wall clock.
* WhitespaceRoy Marples2019-04-26
|
* sun: Don't define IN_IFF_TENTATIVE or IN_IFF_DETACHEDRoy Marples2019-04-25
| | | | | Let's not pretend these exist and adjust existing #ifdefs to compensate.
* sun: Detect correct broadcast address as RTM_NEWADDR liesRoy Marples2019-04-25
| | | | | | | | | I suspect this is because the broadcast address needs to be set after the address, but RTM_NEWADDR is triggered from adding the address. While here, actually set the broadcast address requested for IPv4 and simplify the code.
* dhcpcd.conf: Fix wording about ipv6rsRoy Marples2019-04-24
|
* sun: Fix compile as IN6ADDR_LINKLOCAL_ALLNODES_INIT isn't defined.Roy Marples2019-04-24
|
* IPv6ND: Use generic initialisers rather than inet_ptonRoy Marples2019-04-24
|
* sun: Fix adding IPv4LL default routeRoy Marples2019-04-24
|
* sun: Bind IPv6ND socket to interface.Roy Marples2019-04-23
| | | | Just to be on the safe side as it is per interface ....
* Fix compileRoy Marples2019-04-23
|