summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2010-04-27Correct sensor logic so we don't get stuck in a loop.Jonathan Gray
ok deraadt@
2010-04-27Dumb mistake done twice. First in ospfd then synced to snmpd. rtm_errnoClaudio Jeker
is only valid for messages with an rt_msghdr. So move the check back where it was before. Problem found by jsg@
2010-04-27sort the map types;Jason McIntyre
2010-04-27this commit enables "plain" as a backend for maps (that means aliases,Gilles Chehade
virtual AND secrets), adds a description in smtpd.conf.5 and removes a mention to special map "aliases" which was removed a while ago. to use plain maps: map "myaliases" { source plain "/etc/mail/aliases" } code diff was okayd a while ago by jacekm@
2010-04-27initial work at fixing aliases support:Gilles Chehade
- kill struct alias, struct expandnode is used instead - introduce map_parse_alias() and map_parse_virtual() - aliases and virtual code no longer assume db(3) but use the map API which lets them become backend agnostic AND value-checked. this actually makes the code simpler by removing all values parsing from aliases.c - rename K_SECRETS -> K_SECRET, K_ALIASES -> K_ALIAS for consistency the enum has singular names. - aliases, virtual and forward now work with an expandtree and deal with multiple levels of resolving by merging expandtree's more coming soon ;)
2010-04-26Add some { } for better readability and to make the code look like theClaudio Jeker
other blocks in this function.
2010-04-26Fix some memory leaks on config reload failure and move one particularClaudio Jeker
cleanup loop to parse.y where it belongs. OK henning@
2010-04-24fix format stringCharles Longeau
while there, print SIZE unconditonnally (prompted by gilles@) ok gilles@
2010-04-24pieces required for resolve-lib (reuse code for consistency)Marc Espie
2010-04-24more tweaks so that it can be extended and used during ports buildsMarc Espie
2010-04-24Fix breakage of dig's -p option introduced when support forStefan Sperling
parsing the [host]:port syntax in resolv.conf was added. Patch by Nathan Rickerby <rickerby () gmail ! com>. Prodded by jmc, OK djm krw
2010-04-24refactor LibSpec to be able to reuse it for library matches during build:Marc Espie
- use double dispatch to match static libs - prepare for less strict dependencies if need be
2010-04-24+ pkg_add, for dpbMarc Espie
2010-04-24simplify using //=Marc Espie
2010-04-22- sort the keyword listJason McIntyre
- rewrite the description of "size" ok gilles jacekm
2010-04-22Fix a case of runner trying to send imsg directly to smtp process insteadJacek Masiulaniec
of forwarding it via queue.
2010-04-22- kill the runner_imsg_compose wrapper to reduce indirectionJacek Masiulaniec
- kill noisy log_debug
2010-04-22Including bgpd.h in mrt.h is dumb.Claudio Jeker
2010-04-22Depending on capa.neg.as4byte (bgp session is using 4-byte AS numberClaudio Jeker
extension) we need to switch between _AS4 and non _AS4 types. The non _AS4 mrt types are totaly confused by 4-byte AS_PATH attributes since they expect 2-byte ones (and vice versa). Problem found and fix tested by Xiaoliang Zhao (xzhao at cernet edu cn).
2010-04-22Correct the BGP4MP subtypes according to draft-ietf-grow-mrt-11.Claudio Jeker
The _AS4 types where reversed and the local types are missing even though I'm not sure if bgpd will ever support them.
2010-04-21introduce first map parser for maps of kind K_SECRETS !Gilles Chehade
map_parse_secret() converts a map value into a struct map_secret. lka no longer needs to do any parsing, it simply calls map_lookup() with kind K_SECRETS, checks if it returned a !NULL value, and call lka_encode_secret to safely do the base64 encoding.
2010-04-21when creating a map, make sure we do not store a key/val separator at theGilles Chehade
beginning of the key (ie: "gilles: bleh" should not be stored as key[gilles] val[ bleh])
2010-04-21map.c is growing big, split it into three different files:Gilles Chehade
map.c contains the map API calls as usable by smtpd processes, map_backend.c contains backend implementations and map_parser.c contains parser implementations used internally by the map API
2010-04-21my evbuffer_readln_crlf() hack can be killed now that nicm@ has brought usGilles Chehade
an update to libevent that ships with evbuffer_readln(). beers for nicm@ !
2010-04-21change prototypes for map_*_get() functions, we need the get-er functionGilles Chehade
to fill the size of value for the caller. have map_lookup() actually lookup the parser in map_parsers table and call it if it is set, otherwise return raw value which is similar to current behavior. currently, no map kind has a parser set, so this is essentially no functionnal change. fix map_stdio_get(), it was not used yet in -current but i spotted a bug while enabling it in my sandbox. it returns key and value instead of key.
2010-04-21map_lookup() takes an additionnal parameter of type enum map_kind whichGilles Chehade
will be used to select the appropriate map parser. make sure every call to map_lookup() is updated. map_lookup() currently ignores the value.
2010-04-21introduce enum map_kind, the map_parsers array and map_parser_lookup()Gilles Chehade
which will be used to perform stronger checks on map values. they are unused yet ...
2010-04-21simplify map_lookup() by having the backend lookup done in newGilles Chehade
map_backend_lookup() function, no functionnal change, first of many changes to come in map.c
2010-04-21Runner process is just a helper for queue, so tear down its imsgJacek Masiulaniec
channels to parent, mda, mta, lka, smtp, and control. This leaves just the channel to queue, which forwards imsgs on runner's behalf and redirects any replies back to it. OK gilles@
2010-04-21Fix pathetic performance when submitting large mails via /usr/sbin/sendmail,Jacek Masiulaniec
caused by realloc() abuse.
2010-04-21Remove unusable ifdef DEBUG code.Jacek Masiulaniec
2010-04-21Add the "angle" sensor, measured in degrees; from Luis PintoTheo de Raadt
2010-04-21Fix logic error just like the one in previous revision.Jacek Masiulaniec
2010-04-20Fix crash that could happen when attempting ``smtpctl remove'' whileJacek Masiulaniec
the message is being delivered.
2010-04-20Get rid of MAXSENSORDEVICES. Gaps in sensordev lists are now handledTheo de Raadt
by returning ENXIO instead of ENOENT, to essentially indicate hotplug sensor that has gone away. Accessing beyond the end of the sensordev list still returns ENOENT, so that you can see there are no further devices. ok kettenis oga
2010-04-20Correct map definition syntax. Reported by Rene Maroufi <info@maroufi.net>.Jacek Masiulaniec
2010-04-20Document the ``alias <map>'' parameter.Jacek Masiulaniec
2010-04-20Add "frequency" type for sensors. (and teach userland how to print thatOwain Ainsworth
type). Measured in Hz. ok deraadt@
2010-04-20Document ``size'' setting; OK gilles@Jacek Masiulaniec
2010-04-20Support "accept from local ..." as documented in the man page.Jacek Masiulaniec
Reported by Rene Maroufi <info@maroufi.net>
2010-04-20Use correct type for ``mda_id'', ie. match with type used in imsg header.Jacek Masiulaniec
2010-04-200x0 is a valid base address.Marco Peereboom
ok oga
2010-04-20Kill *2400* lines of code by abstracting common bits of the imsg handlers.Jacek Masiulaniec
2010-04-20when a size is declared with a quantifier in smtpd.conf, have parse.y useGilles Chehade
scan_scaled(3) to support the quantifiers rather than rolling my own code. prompted by jacekm@
2010-04-20prefix_unlink() must remove the rib entry. Currently this was only doneClaudio Jeker
in prefix_destroy() but there is another caller of prefix_unlink() which missed the rib_remove() resulting in tree corruption and possible crashes. Doing the remove in prefix_unlink() is better since we do the same with the prefix and rib & prefix are linked. Fix some comments to match code and remove double call to pt_empty()/pt_remove(). Found while hacking on something else.
2010-04-20setproctitle(3) the parent process to "[priv]" to match other OpenBSDJacek Masiulaniec
daemons.
2010-04-20Make smtpd -d produce verbose output, ie. restore behaviour from beforeJacek Masiulaniec
rev. 1.94.
2010-04-19Use larger buffer for mda output.Jacek Masiulaniec
2010-04-19- use perror(3)Jacek Masiulaniec
- call _exit(2) instead of exit(3) in forked processes
2010-04-19two lines were missing from previous commitGilles Chehade