summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2003-12-22add a configtest modeHenning Brauer
2003-12-22reload is used in signal handler, make it volatile sig_atomic_tHenning Brauer
2003-12-22use .Fl for flag;Jason McIntyre
from Franciszek Holop;
2003-12-22No need to setup a signal handler for SIGKILL as you can't catch it anyway.Miod Vallat
2003-12-22in the same vein we can plain errx() if the geteuid check fails.Henning Brauer
2003-12-22when starting up and the configuration has errors, do not call fatal().Henning Brauer
plain exit() is enough. we have not yet forked and an error message is already printed by the parser. inspired by a theo request
2003-12-22spellingTheo de Raadt
2003-12-22my bloody attempt at a manpage. to be fleshed out.Henning Brauer
2003-12-21sync comments with reality and shorten a bit where appropriateHenning Brauer
2003-12-21rename get_imsg() to imsg_get(); that's more consistentHenning Brauer
2003-12-21wrap read & write buffers for imsgs into a struct.Henning Brauer
finally gives us read buffers per pipe instead of per process, eleminating a possible race. also gets us a real imsg_init() that does all the boring init work
2003-12-21little KNF inbetweenHenning Brauer
2003-12-21overhaul the write buffering code.Henning Brauer
introduce msgbuf API and bundle all info needed for the write buffers in a struct msgbuf. also switch to a write queue per handled connection (each bgp session, each pipe) instead of one big one. fixes some subtle problems and is overall nicer. ok claudio@
2003-12-21Add virtual file system, so that pkg_add and pkg_delete can check forMarc Espie
read-only status, or size concerns, before even beginning to add/remove files. Allows pkg_add -n and pkg_delete -n to be more thorough as well. Some testing by Todd Millert, comments by Greg Steuck and Sam Smith.
2003-12-21queued_reads in struct peer was not ever used exept for an initialization to 0Henning Brauer
2003-12-21use pipe(2)s instead of socketpair(2)s.Henning Brauer
suggested by tedu@ for a performance gain, ok claudio@
2003-12-21don't try to write out data immediately if there are queued writes.Claudio Jeker
OK henning@
2003-12-21yet more from the castathon; most aspath functions where accessing non-Claudio Jeker
aligned memory (u_int16_t) therefor crashed the RDE on my sparc64. All buffer specific functions use now void * instead of u_char * so most cast are now history. Tested on sparc64 and i386. OK henning@
2003-12-21document (lightly) openssl errstr;Jason McIntyre
feedback from markus@
2003-12-20knf. OK henning@Claudio Jeker
2003-12-20session_notification can take void *data too instead of u_char *data,Henning Brauer
quite a few casts lost their life due to that
2003-12-20more from the castathon; imsg_compose takes void * now so get rid of the castsHenning Brauer
2003-12-20more cast cleanup imsg_compose takes now a void * argument. OK henning@Claudio Jeker
2003-12-20typo, teduHenning Brauer
2003-12-20let buf_add take void *data instead of u_char *data and save a zillionHenning Brauer
evil casts
2003-12-20few missing break; in default: cases in switch; one noticed by tedu@Henning Brauer
2003-12-20zap -Werror and -Wcast-alignHenning Brauer
2003-12-20make imsg.data void *, theoHenning Brauer
2003-12-20revert lastHenning Brauer
2003-12-20don't cast imsg.data to struct peer_config, memcpy instead, fixes 64bitHenning Brauer
prodded by theo
2003-12-20spacingTheo de Raadt
2003-12-20parent: waitpid() for the child processes on exitHenning Brauer
2003-12-20fatal() is a bit too much on 0 bytes read. imsg_get returns 0 in otherHenning Brauer
cases as well and all receivers cope
2003-12-20keep track which process we are so fatal() can log in which proc theHenning Brauer
condition happened. fatal()s from subsystems used by all 3 processes like the imsg subsystem were hard to track down without knowing in which process the condition happened.
2003-12-20better set of warning optsHenning Brauer
2003-12-20formulate two comparisons sligthly different to prevent the left side fromHenning Brauer
becoming negative. this was logically impossible already but this way gcc has the chance to notice that as well. together with the last commit this makes bgod -Wsign-compare clean
2003-12-20reconf is an enum reconf_action, not intHenning Brauer
2003-12-20poll returns plain int...Henning Brauer
2003-12-20read(2)/write(2) return ssize_t, not size_tHenning Brauer
2003-12-19Argh. Calculate the length really, really correctly.Ryan Thomas McBride
2003-12-19Calculate the length of the captured pfsync payload correctly when printingRyan Thomas McBride
pfsync packets recieved on the wire. Prevents printing of giberish states with snaplen smaller than the mtu of syncif on the sender, and probably other ungoodness.
2003-12-19even smaller typo with also big effect... < is not the same as >Henning Brauer
of course the holdtime has to be _smaller_ than the minimal allowed holdtime from the new configuration for the session needing a reinitialisation.... it beeing bigger is the normal case and no reason to reinit.
2003-12-19Small typo/pasto big effect. Muddled keepalive timer with holdtimer.Claudio Jeker
Additionaly the keepalive timer is automaticaly restarted by session_keepalive(). help & OK hungry henning :)
2003-12-19zap the msg_ struct we don't ever useHenning Brauer
2003-12-19when sending a notification things actually work better if you copy error codeHenning Brauer
and suberr code into the message... really
2003-12-19actually we need to init the configuration we receive in the reconfigure caseHenning Brauer
much earlier, on RECONF_CONF, and not on RECONF_DONE, to prevent an unneeded session down/up cycle for already established sessions.
2003-12-19conf->holdtime was not set to teh default value initially if no holdtimeHenning Brauer
was specified in teh config file. this was done correctly in the reconfiguration process... use a new function init_conf() to set defaults where needed; currently only holdtime, and call it both in the startup and the reconf case. ok claudio@
2003-12-19knfTheo de Raadt
2003-12-19Rework of the RDE config merge. This fixes problems with peers thatClaudio Jeker
where newer up. OK henning@
2003-12-19when adding a new peer during reconfiguration set its sock to -1.Henning Brauer
misbehaviour found by claudio