summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2010-05-09in recent change, an assignation was removed which would cause a bogusGilles Chehade
pointer deref if we actually went through this code path (reload, does not work yet so it is disabled)
2010-05-07When failing to form an adjacency, log the interface name as wellStuart Henderson
as the neighbour. ok claudio@
2010-05-06don't clobber CFLAGS; ok gilles@Christian Weisgerber
2010-05-06Use YPMAXRECORD instead of _PW_NAME_LEN here too.Antoine Jacoutot
ok robert@ pyr@
2010-05-05Unconditionally set HAVE_ISINF and HAVE_ISNAN in the generatedMark Kettenis
ap_config_auto.h. We know we have these functions in libc on OpenBSD, but the check for them fails with gcc due to some __builtin__xxx stupidity. ok drahn@, sthen@, henning@
2010-05-04Assuming that a prefixlen 32 is a host route is not clever when IPv6 comesClaudio Jeker
into play. Check the AID and use 32 or 128 based on the address family. Now bgpctl show rib <IPv6 addr> works like in the IPv4 case. Bug reported and fix made during yesterday's Swinog BE#85
2010-05-04Add some documentation about the last change (nexthop verification andClaudio Jeker
extended rde rib syntax). OK sthen
2010-05-03Adjustments for multiple kroute table support. This adds a few new commandClaudio Jeker
arguments (show tables and show fib table 1, etc). Tested by sthen@, OK to move on by henning@
2010-05-03Make it possible to load multiple routing tables at the same time and useClaudio Jeker
those for alternate RIBs. This allows to use "rde rib TESTIT rtable 1". NOTE: nexthop verification has changed for alternate tables. For now nexthop will only be verified against the main routing table (id 0). Because of this "nexthop qualify via bgp" may now compare the nexthops against bgpd routes from a different RIB. Tested by sthen@, OK to move on by henning@
2010-05-02Initialise the port in nslookup.c correctly. It was initialisedStefan Sperling
to zero in interactive mode, should be 53. Second half of patch submission by Nathan Rickerby (pr 6322). ok krw
2010-05-01remove an uneeded extern which upsets gcc4, matches changes madeJonathan Gray
in the upstream arla code. ok miod@
2010-05-01As suggested by miod, rename dynroot_enable so we don't conflict withJonathan Gray
a definition from a header. This turns out to be the same change made in the upstream arla code. ok miod@
2010-05-01split up a multiple assignment so we aren't casting an lvalue.Jonathan Gray
ok michele@ claudio@
2010-05-01incomming -> incomingMichael Knudsen
The ones found in gnu/ left out by intention. ok jmc
2010-04-30shuffle some things around to deal with incomplete typesJonathan Gray
gcc4 gets upset about. based on suggestions from miod@, ok millert@
2010-04-29Remove some more ospfd-ism from the interface code. This time removeClaudio Jeker
of most of the IF_TYPE_ special cases and most interface types. Point-to-point and broadcast still present because of find_iface() which needs addtional fixing. OK michele@
2010-04-28Allow neighbor-as in AS filter statements like:Claudio Jeker
match from any source-as neighbor-as set localpref 1000 OK henning@
2010-04-28- plug memleak (in #if 0'd code)Jasper Lievisse Adriaanse
ok pyr@
2010-04-27imsg.h does not need sys/tree.h.Nicholas Marriott
ok eric
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