summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
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
2010-04-19If interfaces are specified, get their rdomain and bind dhcpd into the sameClaudio Jeker
domain with setrdomain(). This allows to run dhcpd on multiple rdomains. OK krw@
2010-04-19initial support for ENHANCEDSTATUSCODES, has been sitting in my tree forGilles Chehade
a month or so
2010-04-19move Composite pattern (auto-visitor) into its own subclassMarc Espie
2010-04-19basic support for SIZE extension, has been sitting in my tree for a monthGilles Chehade
or so ... okayd by jacekm@ a while ago
2010-04-19Simplify local delivery codepath:Jacek Masiulaniec
- replace uses of struct batch in the parent with simpler struct delivery. - replace IMSG_BATCH_* dance with single IMSG_MDA_SESS_NEW. - make mda assume it delivers to external program over a pipe. - fork helper process when delivering to maildir or a file. New feature: upon external mda failure use last line of its output as an error message. With input and tests from nicm@. OK nicm@ gilles@
2010-04-17work-around !found error.Marc Espie
2010-04-16Memory allocated with calloc() is initialized to zero, no need to do thatClaudio Jeker
explicitly.
2010-04-16Move a function to a place that is a bit more logical. No functional change.Claudio Jeker
2010-04-15resolve conflicts from import of v3.2.5Jakob Schlyter
2010-04-15NSD v3.2.5Jakob Schlyter
2010-04-15Log recieved notifications in a human understanable way. Makes debuggingClaudio Jeker
a bit easier. OK michele@
2010-04-15Cleanup the interface FSM by removing most of the ospfd specific statesClaudio Jeker
that have nothing to do with LDP. OK michele@
2010-04-15session_shutdown() issues a NBR_EVT_CLOSE_SESSION and therefore aClaudio Jeker
session_close() which does the event_del(&nbr->rev) so no need to do it twice. There is also no need to send two S_SHUTDOWN messages. OK michele@
2010-04-15Fix fd leak in error case.Claudio Jeker
OK michele@