Age | Commit message (Collapse) | Author |
|
input & OK claudio@
|
|
inserts into the kernel routing table.
OK claudio@
|
|
exists in the same network, the routes are distinguished by their gateway
address, which is the associated interface address.
The ospfd has to track the gateway addresses so that kroute_matchgw() is able to
find the correct routes.
OK claudio@
|
|
This allows ospfd to recover automatically when an ip address gets
removed and re-added as it happens when the netstart script is executed
on a running system.
previous attempt discussed with friehm@ last year
input from sthen@ and jca@
OK jca@
|
|
need to see routes with a higher priority (lower value) than ospfds
own routes.
ok claudio, ok henning previous version, feedback from sthen
|
|
Use the macro from route(8) / ospf6d(8) since it works also with argument 0.
OK claudio@
|
|
ok claudio@
|
|
around to make it possible. Parent can't be pledged at the moment because
of carp ioctl (carp demote). Putting it in so that people can test.
OK benno@
|
|
route messages that are not from us.
|
|
|
|
And some ifmedia64 fixes.
"move forward" deraadt@
|
|
imsg_init() exposed by the second part of this diff which makes
carp(4) interfaces be recognized to be in "backup" mode on start-up.
Problem analyzed and fix provided by Johan Ymerson, thanks!
ok claudio@, mpi@
|
|
Properly handle carp(4) interfaces in "backup" mode on start-up.
Problem analyzed and fix provided by Johan Ymerson, thanks!
ok claudio@, benno@
it breaks on systems without carp because iev_ospfe is not initiallized
at the time kif_init() is called in main.
|
|
Problem analyzed and fix provided by Johan Ymerson, thanks!
ok claudio@, benno@
|
|
With this the ospfd fib and the kernel routing table are better in sync.
|
|
are less then sizeof(*rtm) bytes long (e.g. interface announcements).
Found the hard way by phessler@
|
|
|
|
socket non-blocking. Introduce the same trigger for partial rt msgs.
|
|
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)
|
|
inconsistent usage in route(8) noted by Gregor Best (gbe (at) ring0.de)
|
|
|
|
|
|
set (or extend) a timer and only reload when this expires. Avoids repeatedly
dumping full kernel routes (thus generating more load) when the machine has
problems keeping up with messages on the route socket. (if you see lots of
repeated "reloading interface list and routing table" in ospfd logs, this
will help).
Suggestions/ok claudio@.
|
|
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.
|
|
disturbed me for a long time and makes upcomming work a bit easier.
OK sthen@, phessler@
|
|
chain. Fix kroute_insert() and rtmsg_process() to correctly do this.
OK bluhm@
|
|
routing table and interface list, do a reload of the kernel state.
ive been running this in production for 2 or 3 weeks.
tested by sthen@
ok sthen@ claudio@ deraadt@
code written by andrew sallaway at the univeristy of queensland.
|
|
ok claudio@
|
|
af. This is possible since this filtering no longer blocks RTM_IFINFO.
OK henning@
|
|
continue. fix kr_dispatch_msg so it acts when rtmsg_process fails.
from andrew sallaway based on discussion with claudio@
ok claudio@
|
|
automagicaly mask the addresses. While there kill a #ifdef that no
longer makes sense since it is the least problem for portable versions.
|
|
the number of bytes they processed from the kernel on success, so testing
against 0 meant that the fib reload code always dropped out early.
found by andrew sallaway
ok claudio@
|
|
|
|
be done for rtmsgs (which have an rtm_errno) and not ifmsgs (which have
part of an if_data struct in that location). Fixes problems finding
interface addresses at startup. ok claudio@
|
|
OK dlg@
|
|
in slightly different ways. this unifies these handlers and cuts
fetchtable over to using the generic handler.
help from claudio@ and sthen@
ok claudio@
|
|
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@
|
|
refetchtable.
tested by me and sthen@
ok claudio@
|
|
|
|
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@
|
|
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@
|
|
|
|
ok claudio@, henning@
|
|
|
|
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@ henning@
|
|
element without updating the kr pointer which was later on used again.
Found by david@. OK norby@
|
|
fixed and the bandaid is no longer needed. See rev. 1.26 of sys/net/radix.c
|
|
kr_shutdown() after kif_init().
|