summaryrefslogtreecommitdiff
path: root/sbin/dhcpleased/engine.c
AgeCommit message (Expand)Author
20 hoursConvert sbin and usr.bin to check for imsgbuf_init failure and addClaudio Jeker
21 hoursConvert the common imsgbuf_read calls to the post EAGAIN world.Claudio Jeker
21 hoursUse imsgbuf_clear() where appropriate instead of msgbuf_clear().Claudio Jeker
21 hoursRename imsg_init, imsg_clear, imsg_read, imsg_write and imsg_flush toClaudio Jeker
21 hoursConvert imsg_write() callers to the new simplified return logic.Claudio Jeker
21 hoursIntroduce imsg_write() and use it instead of msgbuf_write().Claudio Jeker
2024-08-26Use i2s instead of hard coding the imsg type. Suggested by tb.Florian Obser
2024-08-26errno is unset, use fatalx(3) instead of fatal(3).Florian Obser
2024-08-26Be stricter in what we accept from the main process.Florian Obser
2024-08-25Do not peek inside of struct imsg.Florian Obser
2024-06-03more sleepy florian knf issuesTheo de Raadt
2024-06-02Switch to rebinding at the rebinding time not when one timeout past.Florian Obser
2024-02-13Only generate a new xid at the start of getting a new lease.Florian Obser
2024-01-26Put checksum flags in bpf_hdr to use them in userland dhcpleased.Jan Klemkow
2023-12-14Use imsg_get_fd() to access the fd passed with the imsg.Claudio Jeker
2023-11-25First stab at IPv6-only preferred from RFC8925.Florian Obser
2023-11-03typo: ignorning -> ignoringTheo Buehler
2022-05-05Switch the log_warnx() about trailing garbage to log_debug(). After aTheo Buehler
2022-05-04As found by n18fuhtm AT tutanota.com there are dhcp servers that send aFlorian Obser
2022-02-16According to RFC 2132, 2. BOOTP Extension/DHCP Option Field FormatFlorian Obser
2022-01-04Make host name DHCP option configurable.Florian Obser
2021-12-18Make sure we receive what we expect over imsg.Florian Obser
2021-12-13Only generate a new xid on state change.Florian Obser
2021-12-13Treat xid as a uint32_t in network byte order on the wire.Florian Obser
2021-12-13Replace struct member assignment with struct assignment to make theFlorian Obser
2021-12-09Rework in which state to add and not add the server-ip andFlorian Obser
2021-11-14When we transition from RENEWING to REBINDING state we have toFlorian Obser
2021-10-28Accept server replies from any server portKlemens Nanni
2021-09-15Rewrite and simplify dhcpleasectl(8).Florian Obser
2021-09-15Remove configured routes no longer present in lease.Florian Obser
2021-08-12Make it possible to ignore routes or nameservers from a lease as wellFlorian Obser
2021-08-04Do not enter a tight INIT -> REQUESTING -> INIT loop when the dhcpFlorian Obser
2021-08-01Do not abuse the IMSG_CTL_SEND_REQUEST imsg to transition toFlorian Obser
2021-07-26Implement possibility to send vendor class identifier (option 60) andFlorian Obser
2021-07-25If the lease didn't contain renewal or rebinding options set theFlorian Obser
2021-07-23When dhcpleasectl asks to send a new request on an interface we areFlorian Obser
2021-07-18Ignore routers option when a classless static routes option is presentFlorian Obser
2021-07-12Change the error reporting pattern throughout the tree when unveilBob Beck
2021-06-20Put (boot) filename, next-server, host-name and domain-name into leaseFlorian Obser
2021-06-18fix SMALL buildFlorian Obser
2021-06-16Implement classless static routes dhcp option.Florian Obser
2021-05-01Allow running in single user mode where /var/empty doesn't exist byFlorian Obser
2021-04-14my fingers cannot avoid KNF'ing as I review codeTheo de Raadt
2021-04-09When a DHCP server sends an invalid T1 or T2 default back to the defaultMartijn van Duren
2021-03-22Avoid overflow by writing x = (y * 7) / 8 as x = y - (y / 8); ok florianOtto Moerbeek
2021-03-16Don't (try to) deconfigure an interface that was never configured.Florian Obser
2021-03-07Reduce debug logging by moving protocol level debug logFlorian Obser
2021-03-07No need to cap the exponential backoff here, iface_timeout() alreadyFlorian Obser
2021-03-06Turns out there are dhcp servers that ignore DHCPREQUEST messages whenFlorian Obser
2021-03-01Log adding and deleting of IP addresses as well as nameservers.Florian Obser