summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2008-12-29Remove unused prototype.aschrijver
2008-12-29Recognize MPLS packets over loopback interfaces.Michele Marchetto
OK canacar@
2008-12-29Handle ENOSPC in queue_update_envelope; cleanup the code a bit; ok gilles@Jacek Masiulaniec
2008-12-28a few documentation updates for opsf6(8) and ospf6ctl(8): remove anIgor Sobrado
existing (but undocumented) flag from the usage of ospf6d; documentation tweaks; while here, synchronize synopsis and usage. ok claudio@
2008-12-28Plug some memory leakage in aldap_parse by calling aldap_freemsgBret Lambert
Let aldap_freemsg allow for a NULL ber_element tree, since it's now possible to pass one in. "looks fine to me :-)" aschrijver@
2008-12-28correct some outputClaudio Jeker
2008-12-28Correctly display net lsa and the LSA type is now 16bit. This removesClaudio Jeker
the duplicate database headers seen all the time.
2008-12-28Initial bits for originating net lsa again from Stefan Sperling with someClaudio Jeker
changes by myself.
2008-12-28Part of lsa_self() works at least everything with us as adv_rtr should beClaudio Jeker
killed. From Stefan Sperling
2008-12-28area_ospf_options() should not return network byte order options. InsteadClaudio Jeker
the callers should take care of getting the byte order right. While there remove the opts[123] from the hello_hdr and use LSA_24_* to handle this nasty fields instead. Now router LSA have the correct flags set.
2008-12-28First shot at originating router LSA, still a lot of XXX but seems toClaudio Jeker
work for IF_TYPE_BROADCAST networks. Initial diff by Stefan Sperling, some additional work by myself
2008-12-28No need to byteswap req_hdr.type as lsa_find() will do that for us.Claudio Jeker
From Stefan Sperling
2008-12-28Sync up with the last commit. Some flags are now gone.Claudio Jeker
From Stefan Sperling's diff collection
2008-12-28Sync up the flags with the new and shiny RFC5340 while there introduceClaudio Jeker
some macros to handle the 24bit insaneness. rfc5340 syncup by Stefan Sperling, the insanity is mine
2008-12-28Send the interface index in the correct byte order and add iface_id toClaudio Jeker
struct nbr to identify the neighbors correclty. From Stefan Sperling stsp (at) stsp.name
2008-12-28Correctly sync the FSM by issuing the NBR_EVT_NEG_DONE event before sendingClaudio Jeker
possible database desciption files to the RDE. NBR_EVT_NEG_DONE sends an imsg to the RDE to bring the RDE in the correct state for the database exchange when doing this the wrong way the RDE will issue errors. From ospfd (rev. 1.23 of database.c) via Stefan Sperling
2008-12-28Add a ugly workaround for the problem where an invalid AS4_PATH is passedClaudio Jeker
over mulitple hops and causes bgpd to close the connection. This is what the RFC requires us to do but the result is a DoS against all OpenBGPD routers when somebody injects such a bad optional transitive attribute because the intermediate routers don't give a damn about it. As a result we now ignore such bad prefixes and don't allow them in the decision process. The handling of optional transitive attributes needs to be rethinked because all of them can be abused in such a way. Idea OK by a few + henning@, tested myself against my crappy regress test suite that needs way more work.
2008-12-27Fix memory leak.aschrijver
2008-12-27kill unused function; ok gilles@Jacek Masiulaniec
2008-12-27Manpage bits for "showqueue" -> "show queue" change.Jacek Masiulaniec
2008-12-27log_warn -> log_warnxJacek Masiulaniec
2008-12-27cleanup; ok gilles@Jacek Masiulaniec
2008-12-27Put common handler code in a function; ok chl@ gilles@Jacek Masiulaniec
2008-12-27Merge hash() and queue_message_hash() into one func, queue_hash(). Fix callersJacek Masiulaniec
to use this interface consistently; ok chl@ gilles@
2008-12-27Break showqueue and showrunqueue into 2 words; ok gilles@Jacek Masiulaniec
2008-12-26parse.y doesn't allow listen backlog configuration, so "bzero default" is used.Jacek Masiulaniec
Hardcode it instead: 5 is a popular choice across the tree; ok gilles@
2008-12-23Link the directory containing the MIB definitions for snmpd(8).Reyk Floeter
2008-12-23export the livelock counter in a private mib openBSD.5.Reyk Floeter
discussed with dlg@
2008-12-22typoJacek Masiulaniec
2008-12-22Fix few cases where "smtpctl showqueue" could exit prematurelyJacek Masiulaniec
if msg is delivered between readdir and opendir, or readdir and fopen, etc. etc. Be more unforgiving about errors other than ENOENT, and err() if they happen, not just warn(). ok gilles@
2008-12-22cleanupJacek Masiulaniec
2008-12-22s->s_msg.session_hostname must hold resolved hostname as well; ok gilles@Jacek Masiulaniec
2008-12-22Reduce IMSG_LKA_HOST to only make NI_NAMEREQD getnameinfo call. WeJacek Masiulaniec
don't need it to return NI_NUMERICHOST conversion because there's no reason not to do it in smtp; ok gilles@
2008-12-22delinting: salen may be used with no prior init; ok gilles@Jacek Masiulaniec
2008-12-22Remove entry from mdaproctree after reaping mda child; ok gilles@Jacek Masiulaniec
From: Nicholas Marriott <nicholas.marriott@gmail.com>
2008-12-22To reset state, it's enough to set s->s_state = S_HELO, rcptcountJacek Masiulaniec
is zeroed in MAIL FROM handler; ok gilles@
2008-12-21fix session flags resetting; ok gilles@Jacek Masiulaniec
2008-12-21- missing prototype + smtp.c was misusing session_auth_pickup()Gilles Chehade
- unlike starttls, ssmtp sets the F_SECURE flag on session before helo/ehlo handlers are called. this means that if we clear all flags in helo/ helo handlers, we prevent smtpd from advertising AUTH as it will do so only for F_SECURE sessions. This commits unbreaks SMTP AUTH with smtp sessions. Problem spotted by James Turner <james@bsdgroup.org>
2008-12-21Add more compile time checking; fix warnings reported by gcc.Jacek Masiulaniec
From: Nicholas Marriott <nicholas.marriott@gmail.com>
2008-12-21Add more compile time checking; fix one warning reported by gcc.Jacek Masiulaniec
From: Nicholas Marriott <nicholas.marriott@gmail.com>
2008-12-21- AUTH PLAIN may receive credentials as a parameter to AUTH or on aGilles Chehade
following line, this commit brings support for the latter which was not supported yet. - AUTH LOGIN is now supported, allowing smtp auth support on clients that do not support AUTH PLAIN (ie: my mobile phone for instance ;)
2008-12-20- various improvements from Ingo Schwarze;Jason McIntyre
- remove non-functional -v option from docs/usage() feedback/ok millert otto
2008-12-20- update smtpd.conf to provide an example of an auth enabled listenerGilles Chehade
- update smtpd.conf.5 just to provide an example, a better description of "enable auth" will come when im done implementing it ;)
2008-12-20- import first bricks of SMTP AUTH support. currently only AUTH PLAIN isGilles Chehade
supported, AUTH LOGIN will follow soon. AUTH will only work if a listen directive has "enable auth" keywords, AND session is safe (ssmtp or starttls).
2008-12-19document the default localpref, from discussion withHenning Brauer
Mick Hohmann <mick at IM dot net>
2008-12-19fix IF-MIB element and implementation ifInUnknownErrors -> ifInUnknownProtosReyk Floeter
2008-12-19fix indentation, no binary change.Jacek Masiulaniec
2008-12-19- fatal() if flock() has failed for any reason that's not EWOULDBLOCK, thisGilles Chehade
is not supposed to happen but better safe than sorry. suggested by jacekm@ - while at it, remove the locking of delivery file we create when doing a Maildir delivery. the purpose of Maildir is to prevent the need for locking in the first place ... I must have been tired that day.
2008-12-19- smtpd handled mbox locking failures as "regular" temporary failures whichGilles Chehade
is not good at all. As a result, under heavy load messages would be kept in queue, and delayed for hours just because we failed locking a few times. This commit makes smtpd distinguish between lock fails and "regular" temporary fails. - delivery scheduler will reschedule immediately a message that couldn't be delivered because of a lock fail. If we fail to lock too many times we fallback to previous "delay increase" logic. "looks sane" jacekm@
2008-12-18Introduce safe_fclose, which tries to push file to the disk asJacek Masiulaniec
quickly as possible; it fails under temporary error conditions, letting caller react appropriately. ok gilles@