Age | Commit message (Collapse) | Author | |
---|---|---|---|
2007-05-28 | another small step towards hoststated reloading. | Pierre-Yves Ritschard | |
allow purging of parts of the hoststated environment structure. start using this function now to only keep vital information in hoststated children processes. ok reyk@ | |||
2007-05-28 | parse_asnum must return 0 (no match) if word is not an as number instead | Henning Brauer | |
of bitching and erroring out. worked so far because at the position it kicked in, only asnumor nothing were allowed | |||
2007-05-28 | store the configuration file's path, this will be useful when reloading. | Pierre-Yves Ritschard | |
2007-05-28 | allow matching on communities using 0 in the AS part, that is in use. | Henning Brauer | |
that unfortunately means we cannot use 0 for "unset". ok claudio | |||
2007-05-28 | move `interrupted' stuff inside state: removes one local variable, allows | Marc Espie | |
me to cut up big function into smaller ones. | |||
2007-05-28 | delay error reporting a bit more: try installing and deinstalling everything | Marc Espie | |
and report more issues. | |||
2007-05-28 | store skipupdatedeps in the set, not the plist | Marc Espie | |
2007-05-28 | lift up more of the dev checking code into Vstat. | Marc Espie | |
un-special case SpecialFiles on deletion. Now that CONTENTS is part of the plist, it's checked as well on addition. | |||
2007-05-28 | oops, can't copy CONTENTS twice | Marc Espie | |
2007-05-28 | always create packing-lists with a `contents' entry. | Marc Espie | |
2007-05-28 | split off handle creation (for added packages) into its own routine. | Marc Espie | |
2007-05-28 | clean up packing-list validation, call the methods `prepare_for_addition' | Marc Espie | |
and `prepare_for_deletion', that's clearer... | |||
2007-05-28 | Reflect recent hoststated changes into hoststatectl | Pierre-Yves Ritschard | |
This unbreaks the tree. Fixed from the depth of the OpenBSD lair. | |||
2007-05-27 | so save_old_libs becomes the first routine to handle full UpdateSets. | Marc Espie | |
2007-05-27 | oops, save_old_libs is now set dependent, we no longer store old packages | Marc Espie | |
in the same location. | |||
2007-05-27 | move computation of header to a separate function. | Marc Espie | |
slightly more precise comment | |||
2007-05-27 | move packing-list validation to the UpdateSet level. | Marc Espie | |
2007-05-27 | comment out some of this code. Currently, we don't know how to recover | Marc Espie | |
from collision with old libs (and the result from figure_out_old_libs says so), so don't pretend we're doing anything significant with them... | |||
2007-05-27 | group packing-list validation for replaced packages with added one. | Marc Espie | |
2007-05-27 | Second step towards hoststated reload: | Pierre-Yves Ritschard | |
First split out hosts, tables and services into to structs, one that contains the runtime fields and one (inside the runtime) that contains mostly static fields that will be sent over the socket during reload. Also move the demoted field of tables inside the flags field as its just a boolean. ok reyk@ | |||
2007-05-27 | use macros from sys/queue.h | Pierre-Yves Ritschard | |
ok otto@ | |||
2007-05-27 | allow to specify table templates in the configuration file and to | Reyk Floeter | |
inherit them from multiple services or relays. this is useful if you want to use a table with the same list of hosts but different ports as specified in the relay or service section. this makes mcbride more happy ok pyr@ | |||
2007-05-27 | initialize pfx->pfx_maxlen too, rotting in my tree for some time | Henning Brauer | |
2007-05-27 | Additional truncation checks, mostly from tcpdump.org, | Can Erkin Acar | |
and remove some unused hlen assignments found by lint from Stuart Henderson, reviewed by me, ok henning@ claudio@ | |||
2007-05-27 | rename $state->{replace} to $state->{allow_replacing}, which matches intent | Marc Espie | |
better... | |||
2007-05-27 | errors can now be a local variable | Marc Espie | |
2007-05-27 | Simplify the mess that deals with alaready installed packages. | Marc Espie | |
We can now have one central point that deals with it. | |||
2007-05-27 | store replaced packages inside the UpdateSet directly. | Marc Espie | |
2007-05-27 | depend more stuff off handle. | Marc Espie | |
Introduce UpdateSet, finally, with a main handle. | |||
2007-05-27 | finish converting most things in pkg_add to the `handle' form, so | Marc Espie | |
we no longer stash anything inside locations. | |||
2007-05-27 | move the dependency solver up to the handle | Marc Espie | |
2007-05-27 | tweaks; ok uwe | Jason McIntyre | |
2007-05-26 | pass more handle through | Marc Espie | |
2007-05-26 | simplify error logic a bit more, always let prepare_to_add return a | Marc Espie | |
handle. Also kill very old @exec tests. | |||
2007-05-26 | link mount_vnd to the build, and remove usr.sbin/vnconfig, which is now | Alexander von Gernler | |
completely contained at the new place. provide a legacy link to /usr/sbin to go away after next release. ok deraadt@ | |||
2007-05-26 | use __packed structs for the on-the-wire packets and just memcpy at once | Henning Brauer | |
instead of kind-of manual copyin/out. increases accuracy in server mode. collecting dust in my tree for some time, result of a conversation with somebody i really want to give credit to, but I can't find the mails now :( okey dokey sez theo | |||
2007-05-26 | first steps for implementing reload: | Pierre-Yves Ritschard | |
* make parse_config allocate the hoststated function by itself * make as many sockets as necessary to talk to the relay children * add send_all for talking to all children with advise and ok reyk@ | |||
2007-05-26 | Rewrite the sdio(8) tool so that it can send arbitrary MMC commands. | Uwe Stuehler | |
2007-05-26 | oops, fix: pass handle instead of location to can_install. | Marc Espie | |
Ditch the modifications of global $errors. | |||
2007-05-26 | base tests on $handle->has_error instead of $errors. | Marc Espie | |
2007-05-26 | give a more descriptive name to function, we're past abreviations | Marc Espie | |
2007-05-26 | More comment typos from Diego Casati. Including winners like funtion, allmost, | Kenneth R Westerback | |
oustside, seqencer, toghether, nessissary, etc. | |||
2007-05-25 | until people finally fix their @group issues in packages, at least refuse | Marc Espie | |
flat-out to write packages with no @group annotations on fishy stuff (writable directories, setuid/setgid stuff) | |||
2007-05-25 | "interupt" -> "interrupt" in various comments. Mostly from Diego Casati. | Kenneth R Westerback | |
2007-05-25 | Check fdopen() return value. | Todd C. Miller | |
Ignore SIG_PIPE when writing to sendmail. This allows cron to still run jobs when sendmail is missing or broken (a warning will be logged). Move mailto variable to the same scope as mail and use the mail variable, not mailto, to test whether we have an open pipe to the mailer. | |||
2007-05-25 | Pass the handle to can_install, so that it can fill in errors (the package | Marc Espie | |
location is actually not used by this routine). | |||
2007-05-25 | start cleaning up the mess that is error-handling when installing packages. | Marc Espie | |
Mid-Term, we want to manipulate true `handles' that encapsulate package locations. For now, we create this handle externally, and just use it to record errors, in duplicate... Once handles are ready, they should be agregated into UpdateSets, to make replacement of packages more explicit and flexible. | |||
2007-05-25 | move the mode checker code from pkg_create into ArcCheck, so that pkg_add | Marc Espie | |
can reuse it. | |||
2007-05-25 | also rename this one for further wrapping | Marc Espie | |
2007-05-25 | rename `handle' to `location' in preparation for wrapping it in a | Marc Espie | |
proper `handle'. |