summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2009-02-22replace MAX* constants by sizeof where possibleOleg Safiullin
ok jacekm@
2009-02-20purge /enqueue at startup; ok gilles@Jacek Masiulaniec
2009-02-20Fix "Received: from" headerspea
ok gilles@
2009-02-19Use rde_router_id() instead of directly accessing rdeconf->rtr_id.s_addr.Stefan Sperling
"For sure!" claudio@
2009-02-19Enable origination of Intra-Area-Prefix LSAs in rde.Stefan Sperling
New Intra-Area-Prefix LSAs are originated when a neighbour becomes adjacent, or when a neighbour loses adjacency, or when an interface changes state. ok claudio@
2009-02-19Virtually re-implement origination of Intra-Area-Prefix LSAs.Stefan Sperling
We now comply with RFC5340 and move prefixes between the two ref-types of Intra-Area-Prefix LSAs (router and network). In case an LSA ends up having all of its prefixes moved to another one, the LSA is flushed from the LSDB by re-originating with MAX_AGE. (This does not yet work reliably. We end up having LSAs with zero prefixes in the LSDB in some cases. Should not affect SPF calculation, so not much harm done, but will need to be fixed.) This commit just adds the necessary code to do origination, but it is not being called yet. This will be done in a separate commit. "Looks good." claudio@
2009-02-19Remove origination of Intra-Area-Prefix LSAs from ospfe.Stefan Sperling
Will soon be done in rde instead. "Sure but don't wait too long before readding the code in rde" claudio@
2009-02-19Sync iface fsm state from ospfe to rde.Stefan Sperling
Also syncs other fields the ospfe is syncing to when getting iface updates from parent process. None of these fields are used by the rde yet, but state will be important soon, for proper origination of Intra-Area-Prefix LSAs. ok claudio@
2009-02-19In ospfe, originate new Router and Network LSAs before informing RDEStefan Sperling
about nbr state change. Intra-Area-Prefix LSAs refer to these LSAs. While not strictly necessary, it makes sense for these LSAs to be up-to-date in the LSDB before new Intra-Area-Prefix LSAs are originated. This change has no effect yet because Intra-Area-Prefix LSAs are currently originated during updates of LSA types it depends on, but origination will soon be synced to state changes in the iface and nbr state machines instead. ok claudio@
2009-02-19Make ospfe send correct nbr state to RDE.Stefan Sperling
ospfe was sending state from a local variable which does not always reflect the true state of the neighbour. The RDE would end up with an invalid nbr state of zero in some situations. Send state saved in nbr structure instead, this is always valid. ok claudio@
2009-02-19Use a bob sized header for IPv6 not the default pedro sized one.Claudio Jeker
Seems like nobody ever tried to dump IPv6 tables. Found while reworking this code.
2009-02-19don't let libevent buffer long lines forever; ok gilles@Jacek Masiulaniec
2009-02-18- add basic syntax checking to mfaJacek Masiulaniec
- decline source routing at MAIL FROM, strip at RCPT TO ok gilles@
2009-02-18IMSG_MFA_RCPT handlers are almost identical, put common code in newJacek Masiulaniec
mfa_test_rcpt; ok gilles@
2009-02-18fix compiler warning; ok gilles@Jacek Masiulaniec
2009-02-18Print spi in lowercase hex for consistency with print-enc.c and ipsecctl.Ryan Thomas McBride
ok hshoexer msf
2009-02-18previous commit was incomplete, this fixes ssmtpGilles Chehade
2009-02-18smtp_accept() now requests from lka that it performs the hostname lookupGilles Chehade
and inserts the session into the session tree. session_init() is called only when we receive the resolution answer. this fixes a race condition that would sometimes cause the hostname to appear as "<unknown>" in headers just because dns was lagging, and it unbreaks ssmtp support which suffered from th very same race condition.
2009-02-17- flock input file while the database is being builtJacek Masiulaniec
- make newaliases finish with short summary ok gilles@
2009-02-17sync makemap man page with the code. create separate page for newaliasesJacek Masiulaniec
which points at makemap as the preferred utility; ok gilles@
2009-02-17make newaliases read aliases path from smtpd.conf; idea discussed withJacek Masiulaniec
gilles@, pyr@ and henning@, diff ok gilles@.
2009-02-17imsg_init depends on ibuf being calloc'd. fix few places where mallocJacek Masiulaniec
is used instead; ok gilles@ Problem made visible by malloc.conf = AFGJ, and pointed out by otto@
2009-02-17kill unused func lka_resolve_rcpt()Jacek Masiulaniec
2009-02-17after a message has been commited to queue, do not incondtionnally clearGilles Chehade
the message id and uid immediately. only do it if session has been flagged with F_QUIT, otherwise session_pickup() will do it when in state S_DONE. this fixes a bug reported by pea@ where the message id was not displayed in the "message accepted for delivery" line.
2009-02-17- remove two debug messagesGilles Chehade
2009-02-17- always run pwd_mdb, newaliases, MAKEDEV and cap_mkdb even when not inAntoine Jacoutot
auto-mode so that the system is not left in an inconsistent state - unify messages - tweak manpage according to new behavior based on an initial patch from matthieu@ ok matthieu@
2009-02-17Fix aspath_prepend() in the case a AS-PATH has a sequence of 255 elementsClaudio Jeker
and we try to prepend. The result was a corrupt AS-PATH and a RDE fatal later on when some other operation was run on that path. Found the hard way by henning@ and sthen@. OK henning@, sthen@
2009-02-17- better outputAntoine Jacoutot
ok sthen@
2009-02-16relayd complains about a table called "backup", so change it toJason McIntyre
fallback, as used in /etc/relayd.conf; from Patrik Lundin
2009-02-16typo in error message; "bigger that" -> "bigger than"Stuart Henderson
2009-02-16Process which connects with a pool of cloned processes needs toJacek Masiulaniec
keep open all pipes going in their direction; ok pyr@
2009-02-16Don't warn about F_MESSAGE_SCHEDULED flag being present in on-disk version ofJacek Masiulaniec
the envelope; ok gilles@
2009-02-16- use .Pp, not blank linesJason McIntyre
- format some text to avoid line wrapping
2009-02-16pfsync v5, mostly written at n2k9, but based on work done at n2k8.David Gwynne
WARNING: THIS BREAKS COMPATIBILITY WITH THE PREVIOUS VERSION OF PFSYNC this is a new variant of the protocol and a large reworking of the pfsync code to address some performance issues. the single largest benefit comes from having multiple pfsync messages of different types handled in a single packet. pfsyncs handling of pf states is highly optimised now, along with packet parsing and construction. huggz for beck@ for testing. huge thanks to mcbride@ for his help during development and for finding all the bugs during the initial tests. thanks to peter sutton for letting me get credit for this work. ok beck@ mcbride@ "good." deraadt@
2009-02-15no need for __packed, and it is even used wrong; from raggeTheo de Raadt
2009-02-15Change the full sample configuration into an use case.aschrijver
2009-02-15kill local vars that are used only once; ok gilles@Jacek Masiulaniec
2009-02-15If MX query fails due to DNS error, do not attempt more queries; ok gilles@Jacek Masiulaniec
2009-02-15New config.c that allows for process cloning. Done by pyr@ forJacek Masiulaniec
relayd at n2k9, and adapted to smtpd; ok gilles@
2009-02-15Fix a bug where list of 6 MXs or more was not handled correctly.Jacek Masiulaniec
Pointed out by & ok sthen@, ok gilles@.
2009-02-14Implement makemap -t and -o, for output type and dest resp.; ok gilles@Jacek Masiulaniec
2009-02-14Initialize time_t now as necessary, fixes delivery rescheduling; ok gilles@Jacek Masiulaniec
2009-02-14document increased default snaplen; pointed out by dhillStuart Henderson
2009-02-14increase the default snaplen to 116, allows capture of pflog+ipv6+tcpStuart Henderson
without knobs. ok djm, deraadt.
2009-02-14Display envelope status & flags in "show queue"; ok gilles@Jacek Masiulaniec
2009-02-13Fix a crash in lka caused by wrong assumption that we would neverJacek Masiulaniec
exceed MXARRAYSIZE * 2 addresses. Commited on behalf of gilles@ who hasn't got access to a safe box at the moment.
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