summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2009-07-06default waittime is 5, not 3;Jason McIntyre
from Paul Stoeber
2009-07-03allow pkg_mklocatedb -p to work again; from espie@Christian Weisgerber
2009-07-02Rewrite the sysctl handlers to use libc functions (getifaddrs andClaudio Jeker
if_indextoname) instead of looking at the sysctl data directly. This makes the code a lot simpler and actually work. Tested by many (todd@, sthen@, and a few people on tech@). OK sthen@, deraadt@
2009-06-29Protect the other rde_send_kroute() with a F_RIB_NOFIB check.Claudio Jeker
2009-06-29Doh! Fix logic botch that disconnected the FIB from the Loc-RIB instead ofClaudio Jeker
making sure that other RIBs are not injecting routes into the FIB.
2009-06-29Unfuck mrt table dumps and plug a memory leak while there.Claudio Jeker
2009-06-29since upper-bound is not a power of two here, use arc4random_uniformMartynas Venckus
instead, to avoid modulo bias. ok jacekm@, gilles@
2009-06-28Fix small regression introduced with symlinks handling.Antoine Jacoutot
spotted by jmc@
2009-06-28Remove useless blank space in output.Antoine Jacoutot
2009-06-28Teach sysmerge to deal with links (found the hard way when I realised IAntoine Jacoutot
missed some very much needed symlinks under /etc/fonts/conf.d/). The behaviour is the following, if a link does not exist: * in '-a' mode, it is created automatically * in normal mode, sysmerge will ask what you want to do If one wants to use '-a' mode while still being in control of what links are created, sysmerge.ignore can be used. "sounds good to" phessler@, ok sthen@
2009-06-26use standard safe CTheo de Raadt
2009-06-26locally define nitems() macro, #ifndef'd.Okan Demirmen
"please commit" gilles@ jacekm@
2009-06-26There is no need to log routing socket version mismatches.Claudio Jeker
OK henning@, sthen@
2009-06-26More consistent RTM_VERSION checking. A few missing one was in the wrongClaudio Jeker
spot. OK henning@, sthen@
2009-06-26Another daemon needing RTM_VERSION checks. Why rwhod is doing all the hardClaudio Jeker
work instead of using getifaddrs() and working on this much simpler structure is beyond my immagination. Looked over by henning@ and sthen@
2009-06-26If two or more children exit before hotplugd is scheduled only one SIGCHLDKurt Miller
will be delivered, so deal with this case in the SIGCHLD handler. Also retry if waitpid() fails with EINTR. looks good deraadt@ millert@
2009-06-25sasyncd isn't interested in messages on the routing socket other thanStuart Henderson
RTM_IFINFO to monitor the state of carp(4) interfaces; programme the filter on the socket accordingly so it doesn't have to handle other message types. ok henning@
2009-06-25fix the function name in log_warn() text, it was borrowed from someStuart Henderson
previous test code of mine.
2009-06-25Another kroute.c needing RTM_VERSION checks. Looked over by sthen@ and henning@Claudio Jeker
2009-06-25At least try to check for the RTM_VERSION here even so part of this codeClaudio Jeker
escaped from a horror story and robs you're sanity. This needs major cleanup. OK sthen@, OK henning@
2009-06-25Another kroute.c code with missing RTM_VERSION checks.Claudio Jeker
OK sthen@, henning@
2009-06-25Add missing RTM_VERSION checks. Bad me, no cockies.Claudio Jeker
Tested and OK sthen@, OK henning@
2009-06-25Another copy another missing RTM_VERSION check.Claudio Jeker
Tested and OK sthen@, OK henning@
2009-06-25Another copy of the strange while loop seen in route(8). Add missingClaudio Jeker
RTM_VERSION check. Tested and OK sthen@, OK henning@
2009-06-25Same code as in route(8) same RTM_VERSION check missing.Claudio Jeker
Tested and OK sthen@, OK henning@
2009-06-25typo;Jason McIntyre
2009-06-25incorrect .PATH setting, discovered with nicmTheo de Raadt
2009-06-25Teach ifstated to use ROUTE_FILTER. Requested by claudio@.Stuart Henderson
ok claudio@ henning@
2009-06-25pkgpath are only used for updates, so matching should only be pkgpath vsMarc Espie
default info, and not maximal matching, otherwise too many things will match. problem noticed by marco@ With input from sthen@ and tests from kili@
2009-06-24recvmsg ENOENT noncritical tooHenning Brauer
2009-06-24Lower stack size before mlockall(). With login.conf defaults for i386,Stuart Henderson
this avoids wiring (8MB-256KB). From AerieBSD. ok deraadt@
2009-06-22Log a warning when "enforce remote-as" is triggered. ok claudio@Stuart Henderson
2009-06-21Support mouses with lots of buttons. Also, fix a crash when pressingJacek Masiulaniec
a button that's outside of the hardcoded range; miod@ ok
2009-06-21fix rcs ids. ok sthen@Martynas Venckus
2009-06-20Allocate memory for env->sc_ssl like in smtp; ok gilles@Jacek Masiulaniec
From: Josh Elsasser <josh@elsasser.org>
2009-06-19When operating in liberal mode, retain labels even if they aren't learntMichele Marchetto
from current nexthop. ok laurent@
2009-06-17Check for the correct RTM_VERSION before accessing anything in the rt message.Claudio Jeker
Fixes a SIGBUS seen on alpha by naddy@. OK naddy@, deraadt@
2009-06-17ENOPROTOOPT is non-fatal on recvfrom, can apparently happen with ipvshitHenning Brauer
2009-06-14DBDIR resides in DESTDIR.Antoine Jacoutot
ok sthen@
2009-06-13tcpdrop broke with the addition of routing domains. Repair.Andreas Gunnarsson
ok claudio@
2009-06-13Make ldpctl imsg-in-a-lib ready too.Michele Marchetto
ok eric@
2009-06-12Kill copies of prefixlen2mask and inet6applymask their now in util.cClaudio Jeker
2009-06-12Move prefixlen2mask and inet6applymask to util.c so that we can kill theClaudio Jeker
copies in bgpctl.
2009-06-12add missing header needed by warn()Charles Longeau
ok henning@
2009-06-11effectively un-do r1.111, it fucks machines with bad clocks royally.Henning Brauer
spotted the hard way by theo on armish, pinned to this changed by me. no cookie for ckuethe for not testing on machines with bad clocks.
2009-06-10Ignore ECHILD returns from waitpid() in the signal handler; it appears wePhilip Guenthe
generate SIGCHLD spuriously in some cases. Also, hotplugd doesn't care if a child is stopped, so set SA_NOCLDSTOP to suppress SIGCHLDs from that. Problem reported by Thomas Pfaff. ok deraadt@
2009-06-10zap double /, as noticed by bradMarc Espie
2009-06-10fix dewey comparison for suffixes (no early return)Marc Espie
2009-06-09missing header file; bring things into scopeTheo de Raadt
2009-06-08revert this change by eric@:David Gwynne
Make the imsg protocol network-safe. it might be network safe, but half the imsg based daemons on my firewalls dont run anymore.