summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2009-02-13Make stats output more sysctl-like by killing spaces around '='; ok gilles@Jacek Masiulaniec
2009-02-13Ensure ss is never dereferenced when NULL. Can't happen with current code,Jacek Masiulaniec
but it could in future, and fatal is better than segv. Reported by sthen@. ok gilles@ sthen@
2009-02-12Make vertex_free() correctly free LSAs in per-interface LSA trees.Stefan Sperling
Save a pointer to the right LSA tree in new member v->lsa_tree. This saves us the hassle of finding the right tree in vertex_free(), we already know it at creation time so why not tuck it in there? This might cause problems if the ospfe side ever decides to call area_del() with a non-empty area->lsa_tree, without correctly initialising v->lsa_tree. But grep shows that the area's lsa_tree is currently just initialized on the ospfe side, but never modified. ospf6d daemons which crashed after about 1 min with malloc options FGJ are now happy. ok claudio@
2009-02-12-v logs debug adjtime calls also; ok henning@Kevin Steves
2009-02-11Because IPv6 fucked up and created a badly sized struct sockaddr_in6 we needClaudio Jeker
to add some pading on 64bit archs. Use a helper struct plus some ROUNDUP() magic to get the size correct. Tested on i386 and amd64 by Graeme Lee "graeme (at) omni (dot) net (dot) au" Some sort of OK by henning@ (he ignores the non-v4 code)
2009-02-11move prototypes that are really in ntp.c; ok henning@Kevin Steves
2009-02-10Fix two obvious copy-paste errors in fatal error messages. We wereStefan Sperling
printing IFINFO while we are actually handling an IFDELETE imsg.
2009-02-10log tiny frequency adjustments at debug only.Kevin Steves
ok henning@, 'I think I agree' otto@
2009-02-10endservent() not needed here; ok henning@Kevin Steves
2009-02-09Correct function name in warning to avoid confusion. After a discussion onClaudio Jeker
misc@
2009-02-08spelling in commentKevin Steves
2009-02-08Remove wake(8). The bin directories are full, no new commands to be added.Marc Balmer
2009-02-08Unlink wake(8).Marc Balmer
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2009-02-08deal with potential empty string fgets can returnCharles Longeau
use strcspn to properly overwrite '\n' in fgets returned buffer ok ray@ jaredy@ looks ok gilles@ long time ago on a similar diff
2009-02-07remove leftover from mdoc.samples; ok jmc@Martynas Venckus
2009-02-06rename a #define to be clearer; no binary changeKevin Steves
ok henning@
2009-02-05when calling ssl_session_destroy() from mta, our session will have a NULLGilles Chehade
s->s_l field. this commit fixes a crash in mta caused by a NULL deref.
2009-02-05fix format stringCharles Longeau
ok naddy@
2009-02-04gollo@ thought the timeouts were a little short, and indeed, they are off by ↵Ted Unangst
1000. (not much real effect, you can only sleep so short any way)
2009-02-03add missing headers needed by wait()Charles Longeau
ok rainer@
2009-02-03Correctly update kernel and mfc when change in routing table happens.Michele Marchetto
ok norby@
2009-02-03In Intra-Area-Prefix LSAs, set the LA-bit for all prefixes of 128-bitStefan Sperling
length, regardless of interface type. Allowed by RFC5340 and ok claudio@
2009-02-03We don't need anything other than link-local addresses andStefan Sperling
global-scope prefixes in iface->ifa_list. ok claudio@
2009-02-03Formatting fixes.Stefan Sperling
2009-02-03the prevalence of multi-core laptops revealed that taking the cpu average isTed Unangst
a poor way to adjust performance. Even with a cpu pegged, apmd is quite slow to react. Change things to consider min idle time, not average. Mostly from a diff by Laurence Tratt
2009-02-02tweak the synopsis and usage, lladdr is not an optional argument.Igor Sobrado
jmc@ might further improve on it, if needed. ok mbalmer@
2009-02-02remove unused function and macros, due to the lastest commitCharles Longeau
ok rainer@
2009-02-02Refer to the filename, not manpage, when explaining where ethers entries are.Marc Balmer
2009-02-02Clarify .NdMarc Balmer
2009-02-02Can wake up several machines in one invocation.Marc Balmer
2009-02-02deals with shaddy repositories from backwards countries that implementMarc Espie
nlist incorrectly. as diagnosed by kili@
2009-02-01embellish the output of bgpctl(8).Igor Sobrado
ok claudio@
2009-02-01"Ethernet" is a family of networking technologies developed at Xerox PARC,Igor Sobrado
not a generic name. we must use the right capitalization for this term. ok jmc@
2009-01-31write point-to-point in a consistent way.Igor Sobrado
jmc@ has provided a complete list of manual pages to be fixed, and suggested using uppercase (i.e., Point-to-Point) when discussing the protocol, and lowercase (point-to-point) otherwise. ok jmc@
2009-01-31adjtime has been logged at 32ms and greater for 2.5 years now.Kevin Steves
ok henning@ jmc@
2009-01-31Implement buf_left() to make some some more buffer handling easier.Claudio Jeker
buf_left() returns the bytes left in a buffer. This makes the check to keep MD5_DIGEST_LENGTH bytes unallocated in some messages easier. From the buf cleanup diff that was OK norby@ and henning@
2009-01-31Pass the buffer to send_packet() instead of spliting it up. This removesClaudio Jeker
some direct access to struct buf internals in the rest of ospfe. Based on a larger buffer cleanup diff that was OK norby@ henning@
2009-01-30Add missing free. Found by norby@ in ospfctl, same fix.Stefan Sperling
2009-01-30when decreasing ssl related counters, make sure the session was flagged asGilles Chehade
F_SECURE. while at it, add "smtp.sessions.aborted" which keeps track of sessions which were interrupted before completion.
2009-01-30improve statistics for smtp process. not only collect the current sessionsGilles Chehade
count, but also the total sessions count, ssmtp sessions (both current and total) and starttls sessions (both current and total) # ./smtpctl/smtpctl show stats|grep smtp.sessions smtp.sessions = 0 smtp.sessions.active = 0 smtp.sessions.ssmtp = 0 smtp.sessions.ssmtp.active = 0 smtp.sessions.starttls = 0 smtp.sessions.starttls.active = 0 #
2009-01-30clear the F_EVLOCK flag earlier to prevent the error event handler fromGilles Chehade
being called again with F_EVLOCK set. this fixes a bug where disconnect after smtpd sends greeting and before entering any command failed to go into session_destroy(). while at it, rename the "smtp.clients" statistic to "smtp.sessions" and add counters to struct s_smtp so that I can add ssmtp and starttls with my next commit ;)
2009-01-30avoid an alloc/free loop while looking for a bpf.Pierre-Yves Ritschard
ok mbalmer@
2009-01-30Do not break header for messages received via smtp.Oleg Safiullin
look ok gilles@
2009-01-30bump descriptors limit to the max and set the maximum connections count toGilles Chehade
three quarters of that limit (a session typically has 3 descriptors). when we hit that limit, we stop accepting connections, and when client closes a session, we start accepting connections again. this prevents us from going into a session that is likely to fail because of scarce resources. idea discussed with jacekm@, code mostly ripped from relayd
2009-01-30Delete code which was never used (rtsock.c is even not there).Rainer Giedat
old commit message from itojun: "rtsock.c is omitted for simplicity, as it is not meaningful on openbsd." Ok grunk@, naddy@
2009-01-30fix a very annoying events masking issue which would cause a fatal() to beGilles Chehade
hit under certain conditions; while tracking the bug I ran into other bugs which were kind of related and could cause us to hit a fatal() too. fix by me, but with lots of testing and investigation with jacekm@, ok jacekm@
2009-01-30Use if_nametosdl implementation from rtadvd, which is much nicer.Rainer Giedat
From Mischa Diehm. "looks fine to me" pyr@
2009-01-30Add missing free.Esben Norby
OK claudio@
2009-01-30more const -> sizeof()Oleg Safiullin
no binary changes ok gilles@