summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2024-07-14Fail explicitly on unexptected imsg->hdr_type. Otherwise the followingTobias Heider
comparison is undefined.
2024-07-14sync slaacd(8) log.c to dhcpleased(8)'s version.Florian Obser
We don't built log.c on the ramdisk so no need for ifndef small.
2024-07-14log_getverbose() is a void functionFlorian Obser
pointed out by tb
2024-07-14sync slaacd(8) log.h to dhcpleased(8) log.hFlorian Obser
- include stdlib.h for exit(3) - knf fixes - define log_getverbose as (0) instead of 0 input & OK tb
2024-07-14Unbreak tree by defining log_getverbose() for SMALL buildsTheo Buehler
ok anton florian
2024-07-13Reduce if_indextoname(3) usage.Florian Obser
Don't ask the kernel to translate an if_index to a name if we are not running with verbose logging, it's not free.
2024-07-13NULL check must be inside the loop. found tobheYASUOKA Masahiko
ok tobhe
2024-07-13Fix radius.c again^2. Cancel previous and revert the latest oneYASUOKA Masahiko
(sent to tech@).
2024-07-13Fix radius.c again. Previous was old one.YASUOKA Masahiko
2024-07-13grammar/macro fixes for the radius text;Jason McIntyre
2024-07-13Fix radius.c. Previous it was broken.YASUOKA Masahiko
2024-07-13Add RADIUS support. Authentication, accounting, and "DynamicYASUOKA Masahiko
Authorization Extensions"(DAE) are supported. feedback markus stu ok tobhe
2024-07-11Make sure we are interested in an interface that shows up.Florian Obser
2024-07-11Be a bit more noisy in syslog on what is going on.Florian Obser
So far dhcp6leased(8) has been completely silent. Prodding by Brian Conway.
2024-07-11Write lease after we configured prefixes.Florian Obser
While here, do not claim we have a ::/0 lease, it confuses the parser.
2024-07-11Do not show expired lease information in dhcp6leasectl.Florian Obser
2024-07-11Forgot to initialize status_code in previous.Florian Obser
No STATUS_CODE option from the server means "success", but we are now using stack garbage, which is usually not "success".
2024-07-10Pass status option up.Florian Obser
If we are in state "renewing" and the DHCPv6 server returns an unsuccessful status go to "rebinding", i.e. ask any DHCPv6 server for a lease not just the one we got the lease from. This likely fixes a problem reported by Brian Conway where the ISP returned "NoBinding - Prefix not bound to this interface." for a renew. dhcp6leased recovered once T1 expired and we went to "rebinding" after some time.
2024-07-10Pass int to the *2str functions, we don't need anything fancy.Florian Obser
2024-07-10Only vis(3) the option, not the rest of the packet.Florian Obser
Lots of head scratching and help from the hackroom ensued because of a inconveniently placed \r that truncated a string and placed garbage at a weird place.
2024-07-09Track configured and new prefix delegations in iface.Florian Obser
When the DHCPv6 server renumbers and hands us new delegations we have to deconfigure the old prefixes. To prevent situations where we have no IPv6 at all, first configure the new prefixes and then remove the old prefixes.
2024-07-09Skip prefixes with vltime 0.Florian Obser
Servers indicate unusable prefixes with vltime 0 when we are in state reboot and probably hand us new, valid prefixes. In IPv4 dhcp we would receive a NACK instead...
2024-07-09remove unnused prototypeFlorian Obser
2024-07-09point mount -> mount point;Jason McIntyre
from netbsd -r1.46/pgoyette
2024-07-01Enclose IPv6 address in a square bracket if the address is used withYASUOKA Masahiko
the port number. ok florian tobhe
2024-06-30correct history; dmesg appeared (without a manual page) in v7Jonathan Gray
ok deraadt@
2024-06-30delete dhclient(8). ipv4 dhcp leases have been acquired by theTheo de Raadt
always-running-in-background dhcpleased(8) for a while, which is activated per-interface with "ifconfig $if autoconf', or "ifconfig $if inet autoconf", or with "inet autoconf" in /etc/hostname.$if dhclient(8) has done execve(3) of ifconfig(8) to handle this for a while, so everyone has moved to the dhcpleased(8) method ok florian
2024-06-30Clearify "force" and "preference" interaction.Florian Obser
Problem reported by Kirill A. Korinsky OK kn
2024-06-29Disable the shared cache between resolvers for now.Florian Obser
Since the latest libunbound update the frontend process would segfault about once a day on one of my MX servers with what looks like a use-after-free deep inside of libunbound. Maybe we are poking too much at internals and the shared cache is too much of a hack. #ifdef for now to ease investigation, but it is possible that this code just has to go.
2024-06-29remove unused varsJonathan Gray
2024-06-27dhclient hasn't prodded us in a long time to renew a lease.Florian Obser
OK deraadt
2024-06-19Handle interfaces going down and up again.Florian Obser
Missing feature reported by, testing & OK semarie
2024-06-18iked: do not attempt to read multiple SANsTheo Buehler
No extension in a valid certificate appears more than once per RFC 5280 section 4.2. So don't go walking the extension stack and try to inspect multiple subject alternative names because crappy OpenSSL API encourages you to do so. Instead call the API in the only correct way possible and report multiple SANs in log_info(). This is unlikely to be hit since the extension caching in LibreSSL has rejected repeated OIDs in a cert for a long time. ok tobhe
2024-06-14sync to unbound 1.20.0Florian Obser
heavy lifting by sthen
2024-06-09Introduce IFCAP_VLAN_HWOFFLOAD for vio(4).Jan Klemkow
Add IFCAP_VLAN_HWOFFLOAD to signal hardware like vio(4) can handle checksum or TSO offloading with inline VLAN tags. tested by Mark Patruck, sf@ and bluhm@ ok sf@ and bluhm@
2024-06-06hand PD_IAs to dhcp6leasectlFlorian Obser
2024-06-06Accept more compact forms of prefix delegation requests.Florian Obser
For example, these are now valid, too: request prefix delegation on vio1 for vether4/64 request prefix delegation on vio1 for { vether5 vether6/64 } Reminded by Tim Kuijsten
2024-06-05Implement lease files.Florian Obser
2024-06-05Use a loop to add request options.Florian Obser
This makes it easier to extend in the future.
2024-06-05unused functionFlorian Obser
2024-06-05implement removing of addresses from interfacesFlorian Obser
2024-06-05Do not try to configure an interface with prefix length 0.Florian Obser
2024-06-05Do not request a prefix with length zero.Florian Obser
If we got a prefix delegation for some IA but not others use the prefix lenght from the configuration for the ones we did not get a prefix delegation.
2024-06-04IAIDs can start at 0.Florian Obser
I was under the impression that an IAID of 0 is special, but that's not true. Letting IAID start at zero makes array indexing easier and avoids an out of bounds access pointed out by dhill. While here, do not trust IAID received via imsg but do our own accounting.
2024-06-03gc v4 structFlorian Obser
2024-06-03more sleepy florian knf issuesTheo de Raadt
2024-06-03more whitespace and knfTheo de Raadt
2024-06-03knf; pointed out by deraadtFlorian Obser
2024-06-03implement rapid commitFlorian Obser
2024-06-03hook dhcp6leased to the buildFlorian Obser
OK deraadt