summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2010-06-02Start reworking the LDE. Implement a FEC RB tree that can be used for theClaudio Jeker
route table and the per neighbor request and mapping lists. The received and sent mappings are added to the per neighbor RB tree and additionally linked to the route table. This makes lookups, etc. a lot easier. While there flip the neighbor hash list over to a RB tree. OK michele@
2010-06-02remove c++ commentsMartin Hedenfal
ok gilles@
2010-06-01new queue, again; gcc2 compile tested by deraadtJacek Masiulaniec
2010-06-01New queue doesn't compile on gcc2, back out. Spotted by deraadt@Jacek Masiulaniec
2010-06-01close FILE `f' when we leave function fprio_readin(), so it wont get lostzinovik
ok beck@, todd@
2010-06-01namespace_new() leaks `ns' on error path.Martin Hedenfal
from zinovik@
2010-06-01With IPv6 OSPF a single LSA can get larger than the MTU. As aAlexander Bluhm
workaround it is better to drop this LSA with a log entry instead of sending emtpy update packets in a burst. As link LSAs cannot be split, the propper solution might be IPv6 fragments. See also RFC5340 Section 4.4.3.8 and Appendix A.1. ok stsp@
2010-06-01Schedule newly arrived mail immediately, ie. place it at the beginningJacek Masiulaniec
of the list of next items to try, or near the beginning if the schedule contains expired mail, which is of highest priority.
2010-06-01Include birth time in smtpctl show queue raw.Jacek Masiulaniec
2010-06-01Add NULL pointer check after calloc.Alexander Bluhm
ok claudio@ stsp@
2010-06-01It's lasttry + 1 because I initially thought passing identical birthJacek Masiulaniec
and lasttry args to queue_retry would make it return birth leading looped scheduling, but that's not true so drop the "+ 1".
2010-06-01Fix error message.Alexander Bluhm
ok claudio@ stsp@
2010-06-01Better errors.Jacek Masiulaniec
2010-06-01Don't interpret garbage on stack; problem seemingly exposed by myJacek Masiulaniec
queue rewrite. Proper fix after gilles wakes up.
2010-06-01Fix one case of not sending smtp session id on error.Jacek Masiulaniec
2010-05-31oopsJacek Masiulaniec
2010-05-31Rewrite entire queue code.Jacek Masiulaniec
Major goals: 1) Fix bad performance caused by the runner process doing full queue read in 1s intervals. My Soekris can now happily accept >50 msg/s while having multi-thousand queue; before, one hundred queue would bring the system to its knees. 2) Introduce Qmail-like scheduler that doesn't write as much to the disk so that it needs less code for servicing error conditions, which in some places can be tricky to get right. 3) Introduce separation between the scheduler and the backend; these two queue aspects shouldn't be too tied too each other. This means that eg. storing queue in SQL requires rewrite of just queue_backend.c. 4) Make on-disk queue format architecture independent, and more easily extensible, to reduce number of flag days in the future. Minor goals: ENOSPC no longer prevents delivery attempts, fixed session limiting for relayed mail, improved batching of "relay via" mails, human-readable mailq output, "show queue raw" command, clearer logging, sending of single bounce about multiple recipients, exact delay= computation, zero delay between deliveries while within session limit (currently 1s delay between re-scheduling is enforced), mta no longer requests content fd, corrected session limit for bounce submissions, tiny <100B queue files instead of multi-KB, detect loops before accepting mail, reduce traffic on imsg channels by killing enormous struct submit_status.
2010-05-31imsg_compose_event() return value was never checked. Make it fatal() if needed.Charles Longeau
ok jacekm@ gilles@
2010-05-31Do not add the swap*.c to the CFILES as a dependency. The rest of theTheo de Raadt
Makefile.* file copes with swap*.c the same as vers.c; it is also much nicer to keep the whole CFILES as far-reaching absolute or relative paths rather than relative to . ok miod
2010-05-31use strtonum() instead of atoi() to parse the device addressTheo de Raadt
(from 1 - USB_MAX_DEVICES, not 0- as submitted) from Gleydson Soares
2010-05-31Remove trailing whitespace and spaces before tabs.Martin Hedenfal
ok gilles@
2010-05-31Add -I${.CURDIR}, fixes building in obj/.Martin Hedenfal
ok deraadt@
2010-05-31Initial import of ldapd, a small LDAP daemon. Work in progress.Martin Hedenfal
ok deraadt@ jacekm@ gilles@ back@ henning@ blambert@
2010-05-28Send the IMSG_NEIGHBOR_UP msg when the neighbor is going into operationalClaudio Jeker
status instead upon creation (when the first HELLO is received). The LDE needs only to know about operational neighbors or it may happen that the LDE is sending messages to neighbors that have no session open resulting in a crash because of unitialized structures. OK michele@
2010-05-27when a rule has two conditions (ie: accept for { domain foo, domain bar } )Gilles Chehade
expand to two rules each having its own condition rather than one rule with a tail queue of conditions. this simplifies code a bit and removes a couple hacks. basic testing by oga and me
2010-05-27struct opt as not used anywhere else, kill it, we can reintroduce it laterGilles Chehade
if we feel a need for it
2010-05-27kill struct opt from struct rule, we don't use it, we don't need itGilles Chehade
2010-05-26No need to include <sys/sysctl.h> here and it pulls in <sys/proc.h>Todd C. Miller
which causes conflicts with the libevent macros. OK deraadt@
2010-05-26libevent has named two of it's new macros by the same name as our kernelTheo de Raadt
macros, which are visible, and get pulled into some source code... Hide the kernel ones inside _KERNEL, and make trpt (the only userland viewer of them) define _KERNEL temporarily. This is really gross. libevent is doing a poor job of choosing function names! ok tedu guenther
2010-05-26Move imsg into libutil and add a man page.Nicholas Marriott
Minor bump for libutil. Previous versions of this diff and man page looked at by various people. "you should just commit" deraadt
2010-05-26Rename some imsg bits to make namespace collisions less likely buf toNicholas Marriott
ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE. ok henning gilles claudio jacekm deraadt
2010-05-25Ugh. Remove name2id.c for real now.Claudio Jeker
2010-05-25Remove another leftover from ospfd. ldpd does not have a concept of ext_tagClaudio Jeker
and so there is no need to carry ext_tag and rtlabels around. "Yes! kill kill kill" michele@
2010-05-25Implement the missing label map recv functions and cleanup the other recvClaudio Jeker
functions a bit to make them all look more similar. All but the label req abort message are now parsed and passed to the lde.
2010-05-25Add upcomming IMSG_LABEL_RELEASE, IMSG_LABEL_WITHDRAW and IMSG_LABEL_ABORT.Claudio Jeker
Add missing bits to struct map and restructure/simplify the lde.c imsg code.
2010-05-25Kill a bogus bzero() and introduce an empty lde_check_release().Claudio Jeker
That function will be needed soon.
2010-05-25I removed code in the last commit that is needed. Allocate rbuf now byClaudio Jeker
default or else we bomb on the first read access.
2010-05-24automatically generate the _arch= and _mach= lines at the top of the kernelTheo de Raadt
Makefile, since we already know them. (Later on, we can remove the chunks from the Makefile.* files...) ok kettenis
2010-05-24now that we can handle >9 args, put "-D name=value" on one line: it's a bitJason McIntyre
more readable, and fixes a spacing bug we had in smtpd.8;
2010-05-23When executing external mda, call dup2, closefrom, and chdir beforeJacek Masiulaniec
setresuid because after dropping superuser privileges the process cannot be trusted to call these. Thanks to oga@, kettenis@, and nicm@ for confirming my paranoia.
2010-05-21remove unused functionsCharles Longeau
from tobias@ (loooooong time ago) ok rainer@ henning@ tobias@
2010-05-21Use _exit(2) in mda helper child process.Jacek Masiulaniec
2010-05-20S_ISREG() should be called on st.st_mode not st.st_flagsGilles Chehade
2010-05-19cleanup-only commit, removes unrequired includes, no functionnal changeGilles Chehade
2010-05-19Remove yet another ospf leftover that is not needed here. This timeClaudio Jeker
neighbor self and all the madness surrounding this amazing concept. LDP is not self aware so there is no need for this. OK michele@
2010-05-19When installing MPLS VPN routes set the RTF_MPLS bit since those routesClaudio Jeker
have MPLS information connected to them and the kernel requires the flag now. OK michele@
2010-05-19Set RTF_MPLS in rtm_fmask and rtm_flags because ldpd wants to play withClaudio Jeker
the MPLS part of those routes. OK michele@
2010-05-19Add softreconfig support for peers changing the RIB. Done by first unloadingClaudio Jeker
the old RIB and then via softreconfig in and a special softreconfig out loading the new RIB. Feature requested and testeded by Elisa Jasinska. OK henning@
2010-05-18Spacing.Claudio Jeker
2010-05-18use the right capitalization for "HyperText Transfer Protocol (HTTP)"Igor Sobrado
and "server". fixes for bgplg(8) and relayd.conf(5) suggested by jmc@, good catch! ok jmc@