summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
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
2003-12-19update for openssl enc:Jason McIntyre
- sort options - -p and -P also show salt - expand IV - remove -salt from the examples which decrypt - remove an example which doesn't work, and is not really helpful help from markus@
2003-12-19for our internal peer ID just use the peer's IP address for now.Henning Brauer
this collides with multiviews (which we don't have yet) and will have to be changed then, but allows us to progress much faster now. ok claudio@
2003-12-19don't bother sending a SESSION_DOWN imsg to the RDE if we are quitting, thisHenning Brauer
is at best pointless and usually just causes a fatal() when we try to send it as the pipe is already closed by the RDE then. this way we can at least finish the cleanup work, including notifications to the peers about us leaving.
2003-12-19fix getpwnam use; noticed by claudio@Henning Brauer
2003-12-19fix copyrightHenning Brauer
2003-12-19knf & 64-bit cleanup; henning okTheo de Raadt
2003-12-19for(p = something; p != NULL; p = p->next) is not going to fly if there isHenning Brauer
a free(p) inside that for loop...
2003-12-19Clean up PackageLocator so it looks somewhat more object-oriented.Marc Espie
Most importantly, put all the state information into the created object, so that the actual archive can be closed, later reopened, and scanned until the correct file is found. This will be used to allow retrieving packages through ftp without keeping loads of connections opened because of dependency resolving. Approved by fries and naddy.
2003-12-18First step for configuration merges in the RDE. Currently this will notClaudio Jeker
work correctly because the peer id changes on config reload. The code in the RDE per se should be OK.
2003-12-18reset nconf to NULL after free(), from claudioHenning Brauer
2003-12-18Recognize NAT-D and NAT-OA payloads. markus@ ok.Hakan Olsson
2003-12-17Change pfsync IP protocol and multicast group numbers.Ryan Thomas McBride
IPPROTO_PFSYNC -> 240 INADDR_PFSYNC_GROUP -> 224.0.0.240 ok deraadt@
2003-12-17send reconf requests to the RDE as well and handle them there; syncing peerHenning Brauer
data with RIB missing use same message in RDE and SE for consistency
2003-12-17styleHenning Brauer
2003-12-17oups, kill (then helpful) shit from the time when it live out of the tree...Henning Brauer
noticed by Dries Schellekens <gwyllion@ace.ulyssis.org>
2003-12-17welcome, bgpdHenning Brauer
started by me some time ago with moral support from theo, the proceeded up to the point where the session engine worked correctly. claudio jeker joined then and did a lot of work in the RDE. it is not particulary usefull as application right now as parts are still missing but is imported to enable more people to work on it. status: BGP sessions get established fine, OPEN messages and then KEEPALIVEs exchanged etc. session FSM works fine; NOTIFICATIONs are handled fine, and all connection drops etc I provoked get handled fine. Incoming UPDATE messgages are parsed well and the data entered to the RIB, the decision process is not yet there, neither is outgoing UPDATEs or sync to the kernel routing table. not connected to the builds yet.
2003-12-16bad free - spotted by vincent@Bob Beck
2003-12-16afs cleanup, realloc strings, abort, etc.Bob Beck
testing by beck, hin, jose, fries. ok deraadt@
2003-12-16bad printf; leopold-bloom@foni.netTheo de Raadt
2003-12-15Add initial support for pf state synchronization over the network.Ryan Thomas McBride
Implemented as an in-kernel multicast IP protocol. Turn it on like this: # ifconfig pfsync0 up syncif fxp0 There is not yet any authentication on this protocol, so the syncif must be on a trusted network. ie, a crossover cable between the two firewalls. NOTABLE CHANGES: - A new index based on a unique (creatorid, stateid) tuple has been added to the state tree. - Updates now appear on the pfsync(4) interface; multiple updates may be compressed into a single update. - Applications which use bpf on pfsync(4) will need modification; packets on pfsync no longer contains regular pf_state structs, but pfsync_state structs which contain no pointers. Much more to come. ok deraadt@
2003-12-13sort options and typos for openssl {dsa,dsaparam};Jason McIntyre
2003-12-11NOMAN building works, fix NOMAN installation.Marc Espie
Noticed by jmc@
2003-12-10yppoll.cTheo de Raadt
2003-12-10stamp files and directories.Marc Espie
okay sturm@
2003-12-10Flag unresolved package names as errors.Marc Espie
Help resolution by stripping away .tgz.
2003-12-10Replace Adding/Deleting with "Pretending to add/delete" in -n mode.Marc Espie
Pick up DISPLAY from staging area, so that it gets found even if -n.
2003-12-10- fix a few exit cases that would exit with no logBob Beck
- add username to added ruleset names when possible - add much needed example to man page showing how to use NAT with tagging to track NATed authpfed connections. ok henning@ dhartmei@, man page cleanup by jmc@
2003-12-09better management of list of installed packages. Allow pkg_add/delete -nMarc Espie
to proceed correctly in case of dependencies.
2003-12-09Spell out which dependencies are getting solved so that pkg_add outputMarc Espie
is less confusing.
2003-12-09Fix logic for error handling, especially if -n is specified.Marc Espie
2003-12-06NULL not 0 at end of pdevinit[]Theo de Raadt