summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d
AgeCommit message (Collapse)Author
2013-01-14kroute.c rev 1.69 of ospfd for ospf6dFlorian Obser
------------------------------------------------------------------------ date: 2009/06/02 20:16:59; author: claudio; state: Exp; lines: +13 -3 Track reject and blackhole routes and allow them to be redistributed even though they point to the loopback. Mainly used for redistribute default since on default free routers we need to have a fake route now. After discussion with Tonnerre Lombard, idea OK henning@ ------------------------------------------------------------------------ ok claudio@
2012-10-22Unfortunately "ospf6ctl show fib" printed embedded scopes as theAlexander Bluhm
destination addresses still contain them. To fix that, call recoverscope() in log_in6addr(). Also log_in6addr_scope() should not fiddle with the scope itself, put that into a generic function addscope(). OK claudio@
2012-10-21Move common ospf6d functions for ipv6 address manipulation intoAlexander Bluhm
util.c to reuse them in ospf6ctl. OK claudio@
2012-09-26last stage of rfc changes, using consistent Rs/Re blocks, and moving theJason McIntyre
references into a STANDARDS section;
2012-09-20The current code in ospf6d kroute tries to read the scope of theAlexander Bluhm
route from the gateway's scope id. That does not work as the kernel provides the scope id via the kame hack instead of the sin6_scope_id field of the sockaddr_in6. Call recoverscope() to fix that. OK claudio@
2012-09-20Bring back log_in6addr_scope() as ospf6ctl uses it.Alexander Bluhm
Found by kettenis@ the hard way.
2012-09-19Instead of fiddling about the kame hack here and there, implementAlexander Bluhm
the functions embedscope(), recoverscope(), clearscope(). ok claudio@
2012-09-19Do not care about the kame hack when logging a link local address.Alexander Bluhm
The scope should have been converted when we received it from kernel. Remove log_in6addr_scope(), it is not used. ok claudio@
2012-09-18The if (!better && !equal) check is redundant as the same conditionAlexander Bluhm
is checked a few lines below again. Fewer checks make the code more readable. ok stsp@
2012-09-17Fix trailing whitespaces.Alexander Bluhm
2012-06-12The router-dead-time is only a 16-bit value in ospf v3.Claudio Jeker
Found by robert at peichaer.org. OK henning@ jmc@
2012-04-24take a stab at documenting when arguments need quoted, and valid macroJason McIntyre
characters; prompted by a diff from robert peichaer org thanks gilles and henning for feedback ok deraadt zinke
2012-04-11delete excessive evtimer_pending; ok claudioTheo de Raadt
2012-04-10Handle file descriptor exhaustion in the accept() case.Theo de Raadt
ok claudio
2011-11-06Add a #include that's currently picked up via another header that'sPhilip Guenthe
violating namespace rules ok claudio@
2011-08-20Decouple log_verbose() from log_init() so the verbose flag stays set withStuart Henderson
"-v" (previously only "-vd" worked). Similar to recent ospfd commit. ok claudio@
2011-07-07It helps to set the sdl_family so that the kernel knows what this is.Claudio Jeker
2011-07-07Rework the distribution of link state and iface FSM state changes.Claudio Jeker
Link state changes are sent from the parent to both childs and iface FSM state changes are sent from the ospfe to the rde.
2011-07-07Only send interface address changes to the ospfe/rde if the interfaceClaudio Jeker
is actually used by the config. This should fix the exits caused when interfaces are dynamically added to the kernel.
2011-07-07Just use if_find() to find an interface by ifindex.Claudio Jeker
2011-07-07correct/change some debug and fatal messages.Claudio Jeker
2011-07-07KNFClaudio Jeker
2011-07-07Commit stuff that I added to another tree eventhough it should haveClaudio Jeker
been in the last commit. I should not work on multiple laptops at the same time.
2011-07-07Kill nh_reachable. Link state checking is so easy now that it does notClaudio Jeker
matter anymore to cache this value for ospf6d.
2011-07-04LINK_STATE_IS_UP() cleanup userland part. There is no need to specialClaudio Jeker
case carp(4) interfaces anymore. LINK_STATE_IS_UP() almost always does the right job. OK deraadt@ henning@ This needs a -current kernel or link state may be not reported correctly.
2011-07-04Make sure that passive interfaces (like carp) are added to theClaudio Jeker
intra-area rtr LSA. Diff initialy made by Patrick Coleman but simplified by myself. Tested and OK dlg@
2011-06-28mention "include" support, boilerplate from ospfd.conf(5), ok dlg@Stuart Henderson
2011-06-27bring include support for config files in from ospfd.David Gwynne
sure deraadt@
2011-05-06Do not special case loopback interfaces on init. Instead force themClaudio Jeker
to IF_STA_LOOPBACK in if_act_start() this way they will repsect IFF_UP on startup. Also mark the interfaces as passive. Initial diff provided by Patrick Coleman. OK dlg@
2011-05-05KNFClaudio Jeker
2011-05-02Some cleanup, some KNF and sync non functional differences withClaudio Jeker
ospfd's version.
2011-05-02Sync with ospfd/database.cClaudio Jeker
2011-05-02wrap long lineClaudio Jeker
2011-05-02Don't include sys/param.h and reformat some lines.Claudio Jeker
2011-04-30no need to escape |, pointed out by jmc@Stuart Henderson
"it's worth killing, if just to stop it being copied all over the place"
2011-03-24Make the sequence number constanst explicitly unsigned. The seq_num isClaudio Jeker
already defined as a u_int32_t type.
2011-03-07continguous -> contiguousHenning Brauer
From: "Anthony J. Bentley" <anthonyjbentley at gmail dot com>
2010-12-31Add missing #includes instead of assuming that some system header pulls inPhilip Guenthe
the needed bits ok deraadt@, millert@
2010-12-13Do not use a carp address as ospf router id because it is not unique.Alexander Bluhm
ok claudio@
2010-10-14Same fix as previously commited to ospfd. Ensure that kr_redistribute()Claudio Jeker
is called with the head node of a multipath chain.
2010-08-22Redistributing the default route with ospf6d did not work correctly.Alexander Bluhm
- kroute.c may not ignore the default route. - Use the ROUNDUP macro from route/show.c as this one is also correct for netmask with prefixlen 0. - Implement ospf_redistribute and the redistribute parser like ospfd. ok claudio@
2010-08-22When removing an announced prefix, inherit the metric and ext_tagAlexander Bluhm
from the LSA that is currently in the tree. Based on claudio@'s diff and his fix for ospfd. Additionally originate an LSA with external route tag correctly by writing the AS-external-LSA's bit T into the correct field. ok claudio@
2010-08-22Origin network-LSA with options based on the options of the link-LSAs.Alexander Bluhm
Without this fix Cisco's OSPF 6 ignores our network-LSAs. ok claudio@
2010-08-03fix linecount bug with comments spanning multiple linesHenning Brauer
problem reported with the obvious fix for bgpd by Sebastian Benoit <benoit-lists at fb12.de>, also PR 6432 applied to all the others by yours truly. ok theo isn't it amazing how far this parser (and more) spread?
2010-07-14Another hand knitted offsetof() that needs to die. This time steal theClaudio Jeker
mask2prefixlen6 version from bgpd.
2010-07-14use offsetof() instead of self knitted version to please gcc4.Claudio Jeker
stolen from ospf.h
2010-07-12Merge duplicate log messages into one log_warn().Alexander Bluhm
ok claudio@
2010-07-09Do not try to originate an intra-area-prefix-lsa if an interfaceAlexander Bluhm
address changes that does not belong to any area. This fixes an ospf6d crash. To not search for the area in orig_intra_lsa_net(), just pass the area as function parameter. ok claudio@
2010-07-06Update the interfaces changes from kroute to rde via imsg. ThisAlexander Bluhm
is needed to orginate correct intra-area-prefix-lsas. ok claudio@ stsp@
2010-07-06Use the static variable narea only where needed for config reload.Alexander Bluhm
The other imessages use the stack variables area and iface. ok claudio@