summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2010-02-23Unbreak tree. struct lsa_asext changed so we need to adjust the outputClaudio Jeker
function. Correct fix will follow but this compiles again.
2010-02-23This is a total dejavu of bgpd/kroute.c 1.165. Because IPv6 fucked up andClaudio Jeker
created a badly sized struct sockaddr_in6 we need to add some magic pading on 64bit archs. Code stolen from bgpd after a painful afternoon of bug hunting, head scratching and violent cursing. Now ospf6d works on 64bit archs.
2010-02-23Remove some extra ().Claudio Jeker
2010-02-23Oups, forgot this file in last commit. Bit definitions for AS-ext LSA neededClaudio Jeker
by lsa_asext_check().
2010-02-23Implement lsa_asext_check() to verify that type 5 LSA are correctly encoded.Claudio Jeker
Diff originally from stsp@, some minor modifications by me. First step to support type 5 LSA.
2010-02-23fetchtable and the kroute dispatch handlers both parse the same messagesDavid Gwynne
in slightly different ways. this unifies these handlers and cuts fetchtable over to using the generic handler. help from claudio@ and sthen@ ok claudio@
2010-02-23Fix byte range parsing, broken in last revision of http_protocol.c,Pierre-Yves Ritschard
unfortunately this backs out the use of strtonum and goes back to strtoll will need more love in a future diff. This fix from Dan Harnett <daniel @ harnett . name> ok deraadt@
2010-02-22dedup some code a bit. rather than have the same code in fetchifs andDavid Gwynne
dispatch_rtmsg, factor the message handling out. both fetchifs and dispatch_rtmsg get a buffer full of messages and then run it through a parser. now they get their buffers and pass it to rtmsg_process. ok claudio@
2010-02-22remove the original fetchtable code and replace it with the newDavid Gwynne
refetchtable. tested by me and sthen@ ok claudio@
2010-02-22Correctly encode FEC prefixes. This makes my test setup much happyer.Claudio Jeker
OK michele
2010-02-22Treat multiple Router-LSAs originated by the same router as anStefan Sperling
aggregate, as mandated by RFC5340. OK claudio@
2010-02-21Kill double declaration of control_imsg_relay().Michele Marchetto
From Christiano F. Haesbaert. ok claudio@
2010-02-21Check bufferevent_new() return value. If it is NULL print an error messageMichele Marchetto
and return. From Martin Hedenfalk. ok claudio@
2010-02-20Make send_* functions return void (and not int) as they can just succeedMichele Marchetto
or fatal(). ok claudio@
2010-02-20Remove unneeded abstraction in neighbor fsm.Michele Marchetto
ok claudio@
2010-02-20Add line breaks to the source to render an .RS display that got skipped;Ingo Schwarze
found by and unbreaking the build with mandoc(1). I will also send this patch upstream. ok jmc@
2010-02-19Oups, unbreak build.Claudio Jeker
2010-02-19Cleanup a bit, remove unneeded dummy neighbor and initialize queue headsClaudio Jeker
in the correct place. Queue mappings ordered by inserting at tail. OK michele
2010-02-19If a neighbor goes down we need to cleanup the LIB from all FEC that pointClaudio Jeker
via that neighbor. Fixes a use after free and an additional NULL dereference in a log_debug is fixed as well. OK michele
2010-02-19Do not double free a knode when kroute_insert() fails. kroute_insert()Claudio Jeker
will free the node if something fails. OK michele
2010-02-19oops, remove dead code.David Gwynne
2010-02-19implement ospfctl fib reload.David Gwynne
this tells the daemon to resync the kernels list of interfaces and routes with the daemons list. this is very useful if the routing socket overflows and you want to sync things up again. lots and lots of help from claudio@ ok claudio@
2010-02-18Fix a leak that could happen with multiple requests on the oneJonathan Gray
connection and while here create a seperate function for handling cleaning up after a request; with suggestions from reyk and claudio. ok claudio@
2010-02-18Make the output of printconf() look like a real config file.Claudio Jeker
OK michele@
2010-02-18Set the correct defaults for label advertisement, retention and distribution.Michele Marchetto
ok claudio@
2010-02-18Do an event_del before event_set/event_add in case we double addJonathan Gray
something here as well. ok claudio@ phessler@
2010-02-18Our groff does not handle all cases of nested displays properly, soIngo Schwarze
resolve the contradiction in the manual whether it's allowed or not in favour of "not allowed" for now, shelving my diff to support nested displays in mandoc(1) for later consideration. Found by and unbreaking the build with mandoc(1). Feedback and OK jmc@
2010-02-18Each .Bk must be closed by .Ek.Ingo Schwarze
Found by and unbreaking the build with mandoc(1). OK jmc@
2010-02-18We need to set SO_REUSEADDR before doing the bind() of the tcp socket.Claudio Jeker
It does not help to set SO_REUSEPORT after doing the bind. Fixes failures to start ldpd because of TIME_WAIT sessions. OK michele
2010-02-18Remove some debug messages that are too verbose and no longer needed.Claudio Jeker
OK michele@
2010-02-18Close a fd leak when opening the tcp connection to the neighbor.Claudio Jeker
OK michele
2010-02-17in map_stdio_get() use strdup on the right buffer, not on a pointer thatGilles Chehade
will be NULL 99% of the times... fixes segv in path that's not enabled yet
2010-02-17erf, previous fix to lka crash was still using the wrong define ...Gilles Chehade
2010-02-17Always call the shutdown code after returning from event_dispatch().Jonathan Gray
As the child processes now call event_loopexit() and signal handling is done through libevent if a child process died we wouldn't always cleanup properly and wouldn't do carp demote to failover either. This matches the way ospfd does things which is where the event_loopexit() in child processes change came from originally. ok claudio@ pyr@
2010-02-17the map api becomes backend-agnostic with initial support for db(3) andGilles Chehade
stdio(3) backends, though for now we only enable db(3). this is the first commit of a serie to improve maps and everything related. idea discussed with and diff okay jacekm@
2010-02-17localpart of a struct path may legally exceed MAXLOGNAME, causing lka toGilles Chehade
fatalx() on a lowercase() call in some cases. make sure lka uses a buffer capable of holding a localpart, and do not attempt getpwnam() if we know it's going to fail anyway... issue reported by Ben Lindstrom <mouring@eviladmin.org>
2010-02-16Make ldpd less verbose.Michele Marchetto
ok claudio@
2010-02-16Pick up RTM_DELADDR and issue an internal IFADDRDEL message to the ospfe toClaudio Jeker
inform about the interface address change. If this is an active interface it will be downed. A ospfctl reload is needed to fetch the new/changed IP if one got set. OK dlg@, sthen@
2010-02-16When taking an interface down just try to do the cleanup. In cases whereClaudio Jeker
the interface was removed or when the address changed leaving the multicast groups will fail because that already happend. Fix if_leave_group() to remove the refcount before doing the ioctl() so that the reference is correctly removed. OK dlg@, sthen@
2010-02-16Only merge interfaces that have the same address and netmask. Fixes a bugClaudio Jeker
with reloads when running ospfd on multiple aliases on the same interface. Is also needed to handle interface address changes in a much better way. OK dlg@, sthen@
2010-02-16Clear the DR and BDR addresses in nbr_act_delete(), makes the electionClaudio Jeker
process more reliable after interface flaps. Especially when the router-id changed at the same time. OK dlg@, sthen@
2010-02-16Lets violate the RFC once more. Change the way we map hello packets toClaudio Jeker
neighbors from using the source IP on broadcast interfaces to using the router-id all the time. The interface lookup will already check for matching subnets so there is no conflict possible. This makes ospfd finally grok router-id changes without freaking out. Additionally whinge when an other router is using the same router-id instead of failing in a very horrible way. OK sthen@, dlg@
2010-02-16Don't log the same thing twice. From a much bigger diff.Claudio Jeker
OK dlg@, sthen@
2010-02-16implement support for fast hello packets.David Gwynne
if route-dead-time is set to "minimal" (rather than a number of seconds), the dead time is set to 1 second and hellos are sent at the interval specified by fast-hello-interval in msecs. this is non standard wrt to the ospf rfc, but it does interoperate with at least one other router vendor. this allows much better responsiveness to l3 topology changes than the standard intervals allow. if i yank a cable to one of my upstreams, the routes adjust in a second rather than the default of 40 i was running with before. the users dont even notice something changed. developed while working with joshua atterbury. ok claudio@ as part of a larger diff. dedicated to zan rowe who thinks she is a bigger nerd than me.
2010-02-16the minimal spf-holdtime and spf-delay is 10 msec, not 50.David Gwynne
pointed out by claudio@ before, somehow it snuck back in.
2010-02-16allow spf-delay and spf-holdtime to be specified in msec so ospfd canDavid Gwynne
better respond to rapid topology changes. developed while working with joshua atterbury ok claudio@ as part of a larger diff.
2010-02-16Plug a memory leak in pushfile().Michele Marchetto
ok claudio@
2010-02-11Not knowing a AFI/SAFI pair in the MP capability is no reason to failClaudio Jeker
a session. Just print a warning and move on since both side need to announce a pair to use it. Found and OK sthen@
2010-02-11We need to load the config before kr_init() is called or fib-update isClaudio Jeker
ignored. Found and fix tested by Elisa Jasinska.
2010-02-11While looking through this code I figured out that set nexthop self andClaudio Jeker
no-modify are not supported for MP protocols like IPv6. Add support for those and while testing find another bug in the same region. Inverse the check for the return value of memcmp() -- we're interested in equality. Until now IPv6 was running with an implicit set nexthop self on all iBGP sessions. Oups. set nexthop stuff is OK when tested henning@ and sthen@