Age | Commit message (Collapse) | Author |
|
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().
|
|
low priority gateway route below itself plus a carp interface on the same
network. The result is that some arp entries can't be added.
This is a bandaid that will give me time to figure out the real bug.
|
|
makes to code simpler. While the routing table is somewhat simpler the
redistribution code does not allow a much more radical approach. With some
additional help of Mr. Kernel and his rtsock it should be possible to rip
even more code out of kroute.c.
Tested and OK sthen@, gollo@
|
|
|
|
learn new interfaces during runtime. This should solve the issue with
reloads failing when interfaces where created during runtime.
OK norby@
|
|
|
|
That will be sizeof(long) no matter what.
|
|
|
|
|
|
|
|
|
|
Send all possible nexthops to the parent process and correctly sync
the RIB, FIB and kernel routing table. Based on initial work by pyr@.
OK pyr@ norby@
PS: don't forget that you need to enable multipath support via a sysctl
|
|
ok claudio@
|
|
manpage bits from jmc@
ok norby@ claudio@
|
|
nois ratio on the routing socket. OK norby@ reyk@
|
|
the ospfd on the other side is dropping the packets because the sanity check
fails.
|
|
code which is very similar and especially include RTM_NEWADDR in
dispatch_rtmsg(). With this newly created interfaces will no longer cause
config reload problems.
OK norby@
|
|
structure. This gives greater flexibility and solves an upcoming problem
with multipath routes. OK norby@
|
|
the metric to the highest and least preferred possible value else no routes
are redistributed. OK norby@
|
|
Change kroute.c code so that it correctly tracks multipath routes.
Route redistribution is way more complex in a mulitpath environment.
It is not possible to redistribute multiple pathes and only a part of the
multipath routes may be redistributable. So a route is redistributed as soon
as one of the multipath routes is redistributable.
Tested and OK norby@ and pyr@ -- at least we see no regression
|
|
so don't unref before calling kroute_remove() or we end up with wrong
reference counts.
|
|
for stuff like RTM_IFINFO or RTM_IFANNOUNCE. So move check to a save location.
Always check rtm_type before accessing some random value inside the route
message.
|
|
that we can access it safely; ok claudio
in the long term we must deal with the 32/64 bit issues of if_buadrate and
friends
|
|
|
|
takes care that redistribution is correct after reload. OK norby@ pyr@
|
|
Found by Armin Wolfermann
|
|
Mostly based on a diff by Pierre-Yves Ritschard (I just simplified the parser
code). OK norby@
|
|
state, if known by the driver. this is required to check the full
duplex state without depending on the ifmedia ioctl which can't be
called in the kernel without process context.
ok henning@, brad@
|
|
not 6 any more (rtableid added). need to tell sysctl so.
|
|
address of a interface could be used. Now it is possible to specify a
interface more than once if multiple networks are configured. An alternative
network can be specified via e.g. interface em0:10.0.5.1. The old interface
syntax without the IP still works and uses the main/first configured IP
address.
ospfd now needs to include the IP header on outgoing messages as it is not
possible to specifiy the source address in sendto(2). Additionally all
multicast joins and leaves have to be tracked.
OK norby@
|