summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2005-02-09Initialize iface->self only once. if_act_start() may be called multipleClaudio Jeker
times for a interface.
2005-02-09Print the interface state from the view of the neighbor in ospfctl sh nei.Claudio Jeker
The idea is to print DR, BDR or DROther dependent on the type of the neighbor. This is only done for multicast capable networks.
2005-02-09Prevent the ADJ_TMOUT from complaining about an unexpected event.Claudio Jeker
From norby@
2005-02-09Fix the restart DD case. In case of a timeout recheck the adjacency and goClaudio Jeker
to state NBR_STA_XSTRT and issue a new initial DB description packet or go to NBR_STA_2_WAY respectivly. OK norby@
2005-02-09When sending out hellos, copy the bdr and dr addresses into iface->self.Claudio Jeker
Without this the election process causes strange results as a router that announces itself as dr/bdr is prefered over one that doesn't.
2005-02-09If the router self is the originator of the LS update flood it outClaudio Jeker
no matter what. This solves an issue where self originated updates where not flooded because the router was the DR.
2005-02-09Once again a round of bugfixes in the db exchange process. This isClaudio Jeker
one of the worst documented parts of the RFC. The initial packet sent by the slave may have no flags set. Don't enforce that the M bit is set but instead check that the I bit and MS bit are unset. The master should only issue NBR_EVT_XCHNG_DONE if it has sent at least one packet with M bit cleared else the slave may get stuck in state Exchange. In NBR_STA_LOAD the db_tx_timer() still needs to send db descriptions out. This will be the last packet sent with the cleared M bit.
2005-02-09Add buf_seek() as buf_reserve() fails if a buf_add()/buf_reserve() isClaudio Jeker
called afterwards as it may realloc() the buffer and so the returned pointer is bogus. Needed by the upcomming originate LSA code. OK henning@
2005-02-09Print the neighbor address and not the local interface address inClaudio Jeker
ospfctl show nei.
2005-02-09need to send IMSG_NETWORK_DONE after sending networks announcement.Claudio Jeker
Similar to the fix commited by henning@ a few hours ago. OK henning@
2005-02-09cleanup and unifdef'ing, no change in object filesHenning Brauer
work by Daniel Ouellet <daniel@presscom.net>
2005-02-09in case some md5 don't match, keep the offending files around as aMarc Espie
borked package (with fixed md5). Makes it easier to locate those files and erase them later if needed... this also makes collisions explicit if user forgets and tries to install a new package later.
2005-02-09need to send IMSG_NETWORK_DONE after sending networks and associated filterHenning Brauer
sets, otherwise local netyworks get withdrawn after config reload; misbehaviour noticed by peter.galbavy@knowtion.net, claudio ok
2005-02-08Change default metric to 10, reflects what is stated in ospfd.conf(5).Esben Norby
ok claudio@
2005-02-08* plug memory leaks in some paths. From Andrey MatveevPatrick Latifi
ok otto
2005-02-08The LSA seq_num should be unsigned as it is expected by ntohl/htonl() evenClaudio Jeker
though the seq_num needs to be compared as signed number. No idea how IETF came up with such a stupid idea especially because the seq_num is not allowed to wrap. requested by henning@ OK henning@
2005-02-07make updatedepends slightly safer: note which packages may have bogusMarc Espie
dependencies, so that if you do one big pkg_add -r *, then you can check which packages may have issues thanks to forced updates.
2005-02-07Fix error message: set-state, not setstate.Ryan Thomas McBride
2005-02-07Fix protos, and a KNF nit. From Andrey Matveev <andrushock@korovino.net>Ryan Thomas McBride
2005-02-07spelling fixDavid Krause
2005-02-07spelling fixesDavid Krause
2005-02-07take size of metainfo into account when checking if the file system isMarc Espie
large enough before installing a package.
2005-02-05connect ospfd and ospfctlHenning Brauer
2005-02-04update `dst port', `ip proto', `ether proto', and SEE ALSO;Jason McIntyre
ok mcbride@
2005-02-04unfuck amd64Peter Valchev
2005-02-04Use log_warn() insteade of log_warnx() after sendto() and if_set_mcast()Claudio Jeker
errors as errno was set by the call.
2005-02-04Add sanity checks for AS-external LSA. Refine some other checks to be asClaudio Jeker
strict as possible. OK norby@
2005-02-03Simplify the ifstated syntax:Marco Pfatschbacher
"carp0 link up" => carp0.link.up "and" => && "or" => || * Allow one line actions after if statements without braces. * Remove unecessary parentheses in the example config. ok mcbride@
2005-02-03Implement simple duplicate suppression of peer errors; ok henning@Darren Tucker
2005-02-03add ospfd.conf.5 to SEE ALSO;Jason McIntyre
2005-02-03no need for -compact/.Pp in these lists;Jason McIntyre
2005-02-02various fixes;Jason McIntyre
2005-02-02Add manpage ospfd.conf(5).Esben Norby
ok claudio@ henning@ jmc@ jaredy@
2005-02-02Change keyword fibupdate to fib-update, for consistency with bgpd.conf(5).Esben Norby
ok claudio@ henning@
2005-02-02Typo in constant.Esben Norby
ok claudio@ henning@
2005-02-02excessive ()Henning Brauer
2005-02-02KNFHenning Brauer
2005-02-02KNFHenning Brauer
2005-02-02KNFHenning Brauer
2005-02-02buffer structs and API ssize_t -> size_t; from bgpdHenning Brauer
2005-02-02usage() is __deadHenning Brauer
pt out by Alexander v Gernler
2005-02-01switch the buffer size describing vars from ssize_t to size_t and adjustHenning Brauer
the API appropriately. avoid singled-compare warnings by rewriting two expressions. ok claudio
2005-02-01Introduce dynmaic buffers. Dynamic buffers are realloced() until max isClaudio Jeker
hit. This makes it possible to alloc a buffer based on the max packet size and filling it up slowly till the packet is finished or *sigh* an overflow is detected. While doing that switch most sizes from ssize_t to the unsigned size_t as this makes more sense. The ssize_t -> size_t change is mostly from henning@
2005-02-01Free neighbors that have been inactive for 24hrs.Esben Norby
OK claudio@
2005-01-31Be a bit more paranoid about leases that are currently acked. There is aClaudio Jeker
small window where it is possible that a lease is acked and simultaniously removed and so the state is not removed. This may be a cause for the "already acking" issue. OK millert@
2005-01-31Simply use the ethernet source address of the request as new ethernetClaudio Jeker
destination instead of the one included in the dhcp packet. Especially because there are to many cases where the supplied address is wrong. This hopefully solves all problems with gateways involved, like the one reported by Dylan Martin. OK krw@ henning@ millert@
2005-01-31Don't malloc fds each time, just realloc() as needed.Todd C. Miller
There's no need to clear revents -- poll() does that for us. Move setting of cur_time to the top of the loop for better accuracy. When poll returns 0, don't check revents since we know none were set.
2005-01-31warn(3) + _exit(2) instead of err(3) in the forked childHenning Brauer
From: Andrey Matveev <andrushock@korovino.net>
2005-01-31-Wsign-compare clean, Andrey Matveev <andrushock@korovino.net>Henning Brauer
2005-01-31add some references to SEE ALSO;Jason McIntyre
from alexey e. suslikov; kill a .Pp while here;