summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2010-05-14Order struct element by size.Claudio Jeker
2010-05-14Do not send notifications directly onto the wire. Decide in the caller howClaudio Jeker
to send the notification. On accept use write() else queue message and try to send the queued messages out via msgbuf_write(). This may still fail but is better then the code beforehands. OK michele@
2010-05-14Use calloc() instead of malloc() to allocate the connection structure. ThisClaudio Jeker
way the memory is zeroed. This is equivalent to the relayd commit by reyk. OK reyk, jsg
2010-05-14allocate all struct event's on the heap, it looks cleaner, feels betterReyk Floeter
and follows a suggestion in event.h. also don't mix signal() and signal_set()/signal_add(). ok jsg@ gilles@
2010-05-14zero out the allocate memory for a new control connection via calloc()Reyk Floeter
ok jsg@ gilles@
2010-05-14When merging interfaces after a config reload, the fsm state for interfacesStuart Henderson
is forced into IF_STA_NEW so that if_init() can be called to setup timers etc. When a loopback interface is added to the config, this means there's no way to get to the correct state. Fix by avoiding changing an existing IF_STA_LOOPBACK and forcing loopback interfaces to be passive (otherwise skipping the if_init on an active interface causes problems). ok claudio@
2010-05-14spacingReyk Floeter
2010-05-13typo: colision->collisionStuart Henderson
2010-05-12Make sure there is a difference in the log of non-fatal and fatalClaudio Jeker
notifications.
2010-05-12Remove the tiny bit of C++ that is not realy needed so that we get a pureClaudio Jeker
C application. OK yasuoka@, reyk@
2010-05-11sort struct by size and kill some unneeded spaces.Claudio Jeker
2010-05-11Kill IMSG_RECONF_AREA. LDP does not have a concept of areas.Claudio Jeker
2010-05-11No need to do a rt_find() twice.Claudio Jeker
2010-05-10Mention that commands may be abbreviated. ok claudio@Stuart Henderson
2010-05-10Simplify wording about abbreviating commands. ok claudioStuart Henderson
2010-05-10zap trailing whitespace;Jason McIntyre
2010-05-10whitespace fixesMarc Espie
2010-05-10document that INSTALL/DEINSTALL scripts are dead.Marc Espie
2010-05-10typoMarc Espie
2010-05-10Various comment typos. 'wether' -> 'whether' (most popular), 'possiblity' ->Kenneth R Westerback
'possibility', 'optins' -> 'options', 'resposne' -> 'response', 'unecessary' -> 'unnecessary', 'desination' -> 'destination'. Collected from various misc@ and tech@ postings, many by Brad Tilley.
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