OpenBSD CVS

CVS log for src/usr.sbin/ospfd/kroute.c


[BACK] Up to [local] / src / usr.sbin / ospfd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.117 / (download) - annotate - [select for diffs], Wed Mar 8 04:43:14 2023 UTC (15 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.116: +1 -2 lines
Diff to previous 1.116 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.116 / (download) - annotate - [select for diffs], Wed Feb 8 08:20:54 2023 UTC (16 months ago) by tb
Branch: MAIN
Changes since 1.115: +2 -2 lines
Diff to previous 1.115 (colored)

usr.sbin: missing void to appease clang 15's -Wstrict-prototype.

Revision 1.115 / (download) - annotate - [select for diffs], Fri May 6 15:51:09 2022 UTC (2 years, 1 month ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.114: +3 -4 lines
Diff to previous 1.114 (colored)

Relax the limitation of what is an acceptable unicast IP.

Remove the IN_BADCLASS() check which filters out the experimental IPv4
address space. Now there are no more experiments in IPv4 and so there
is less reason for these network daemons to deny such an IP.
Everything still disallows multicast IPs (224/4) and loopback (127/8)
a few also disallow 0/8 but this is not consistent.

In any case using 240/4 in production is a really bad idea but it is
not up to this software to prevent you from being a fool.

OK deraadt@ tb@

Revision 1.114 / (download) - annotate - [select for diffs], Thu Aug 20 03:09:28 2020 UTC (3 years, 9 months ago) by jmatthew
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.113: +7 -1 lines
Diff to previous 1.113 (colored)

Use the ROUTE_FLAGFILTER setsockopt to filter out routing socket messages
for L2 and broadcast routes, since we don't need them at all.

ok kn@ remi@ dlg@

Revision 1.113 / (download) - annotate - [select for diffs], Sat Nov 9 15:54:19 2019 UTC (4 years, 7 months ago) by denis
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.112: +7 -7 lines
Diff to previous 1.112 (colored)

Fix function name in error message.

input & OK claudio@

Revision 1.112 / (download) - annotate - [select for diffs], Fri Dec 28 19:25:10 2018 UTC (5 years, 5 months ago) by remi
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.111: +33 -15 lines
Diff to previous 1.111 (colored)

Add config option fib-priority to set a custom prio for routes ospfd
inserts into the kernel routing table.

OK claudio@

Revision 1.111 / (download) - annotate - [select for diffs], Tue Jul 10 11:49:04 2018 UTC (5 years, 11 months ago) by friehm
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.110: +2 -4 lines
Diff to previous 1.110 (colored)

Since we use multiple cloning routes (mpath) if more than one ip address
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@

Revision 1.110 / (download) - annotate - [select for diffs], Mon Jun 25 22:16:53 2018 UTC (5 years, 11 months ago) by remi
Branch: MAIN
Changes since 1.109: +13 -6 lines
Diff to previous 1.109 (colored)

Add IMSG_IFADDRADD to ospfe and the master process.
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@

Revision 1.109 / (download) - annotate - [select for diffs], Sun Feb 11 02:27:33 2018 UTC (6 years, 3 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.108: +31 -3 lines
Diff to previous 1.108 (colored)

Use the new route filter ROUTE_PRIOFILTER in ospfd. Usually we only
need to see routes with a higher priority (lower value) than ospfds
own routes.
ok claudio, ok henning previous version, feedback from sthen

Revision 1.108 / (download) - annotate - [select for diffs], Mon Jul 24 11:00:01 2017 UTC (6 years, 10 months ago) by friehm
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.107: +3 -3 lines
Diff to previous 1.107 (colored)

Unify ROUNDUP macros for parsing route messages.
Use the macro from route(8) / ospf6d(8) since it works also with argument 0.

OK claudio@

Revision 1.107 / (download) - annotate - [select for diffs], Tue Dec 27 09:15:16 2016 UTC (7 years, 5 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.106: +16 -16 lines
Diff to previous 1.106 (colored)

struct rroute has been removed, rename variables.

ok claudio@

Revision 1.106 / (download) - annotate - [select for diffs], Sat Dec 5 12:20:13 2015 UTC (8 years, 6 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.105: +4 -9 lines
Diff to previous 1.105 (colored)

Pledge ospfd SE ("stdio inet mcast") and RDE ("stdio") move some code
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@

Revision 1.105 / (download) - annotate - [select for diffs], Mon Oct 26 11:46:25 2015 UTC (8 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.104: +2 -3 lines
Diff to previous 1.104 (colored)

Kernel got fixed we no longer need to check if rtm_pid is 0 to filter out
route messages that are not from us.

Revision 1.104 / (download) - annotate - [select for diffs], Sat Oct 24 16:42:18 2015 UTC (8 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.103: +6 -1 lines
Diff to previous 1.103 (colored)

Filter our RTM_GET messages which are not from us.

Revision 1.103 / (download) - annotate - [select for diffs], Sun Sep 27 17:31:50 2015 UTC (8 years, 8 months ago) by stsp
Branch: MAIN
Changes since 1.102: +2 -2 lines
Diff to previous 1.102 (colored)

As done for bgpd recently, rename if_mediatype to if_type in ospfd/ospf6d.
And some ifmedia64 fixes.
"move forward" deraadt@

Revision 1.102 / (download) - annotate - [select for diffs], Mon Jul 20 23:45:39 2015 UTC (8 years, 10 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.101: +4 -4 lines
Diff to previous 1.101 (colored)

Fix a segfault at startup when if_change() ist called before
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@

Revision 1.101 / (download) - annotate - [select for diffs], Sun Jul 19 01:59:32 2015 UTC (8 years, 10 months ago) by benno
Branch: MAIN
Changes since 1.100: +3 -3 lines
Diff to previous 1.100 (colored)

revert previous

    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.

Revision 1.100 / (download) - annotate - [select for diffs], Sat Jul 18 15:57:14 2015 UTC (8 years, 10 months ago) by mpi
Branch: MAIN
Changes since 1.99: +4 -4 lines
Diff to previous 1.99 (colored)

Properly handle carp(4) interfaces in "backup" mode on start-up.

Problem analyzed and fix provided by Johan Ymerson, thanks!

ok claudio@, benno@

Revision 1.99 / (download) - annotate - [select for diffs], Fri Jul 17 20:06:46 2015 UTC (8 years, 10 months ago) by claudio
Branch: MAIN
Changes since 1.98: +12 -2 lines
Diff to previous 1.98 (colored)

Do similar handling of connected routes and filtering of llinfo and broadcast.
With this the ospfd fib and the kernel routing table are better in sync.

Revision 1.98 / (download) - annotate - [select for diffs], Wed Feb 11 05:57:44 2015 UTC (9 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.97: +2 -2 lines
Diff to previous 1.97 (colored)

Use sizeof(u_short) in the first check since there are RT messages that
are less then sizeof(*rtm) bytes long (e.g. interface announcements).
Found the hard way by phessler@

Revision 1.97 / (download) - annotate - [select for diffs], Tue Feb 10 08:26:47 2015 UTC (9 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.96: +3 -1 lines
Diff to previous 1.96 (colored)

Forgot the EAGAIN or EINTR check on read.

Revision 1.96 / (download) - annotate - [select for diffs], Tue Feb 10 05:24:48 2015 UTC (9 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.95: +9 -5 lines
Diff to previous 1.95 (colored)

Convert ospfd over to SOCK_CLOEXEC | SOCK_NONBLOCK and make the route
socket non-blocking. Introduce the same trigger for partial rt msgs.

Revision 1.95 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:19 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.94: +2 -2 lines
Diff to previous 1.94 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
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)

Revision 1.94 / (download) - annotate - [select for diffs], Mon Jun 23 03:46:17 2014 UTC (9 years, 11 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored)

The second level of the CTL_NET sysctl is a PF_*, not an AF_*

inconsistent usage in route(8) noted by Gregor Best (gbe (at) ring0.de)

Revision 1.93 / (download) - annotate - [select for diffs], Wed Oct 30 17:24:35 2013 UTC (10 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.92: +3 -3 lines
Diff to previous 1.92 (colored)

another simple %i to %d conversion for obviousness

Revision 1.92 / (download) - annotate - [select for diffs], Sat Jun 1 16:00:21 2013 UTC (11 years ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.91: +6 -11 lines
Diff to previous 1.91 (colored)

Minor cleanup, do not set values to 0 twice.

Revision 1.91 / (download) - annotate - [select for diffs], Fri Sep 16 18:24:57 2011 UTC (12 years, 8 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.90: +51 -7 lines
Diff to previous 1.90 (colored)

Rather than reloading kernel routes immediately when an RTM_DESYNC is seen,
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@.

Revision 1.90 / (download) - annotate - [select for diffs], Mon Jul 4 04:34:14 2011 UTC (12 years, 11 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.89: +3 -7 lines
Diff to previous 1.89 (colored)

LINK_STATE_IS_UP() cleanup userland part. There is no need to special
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.

Revision 1.89 / (download) - annotate - [select for diffs], Wed Jan 12 15:07:46 2011 UTC (13 years, 5 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.88: +15 -17 lines
Diff to previous 1.88 (colored)

Kill struct rroute and move the metric to struct kroute. This
disturbed me for a long time and makes upcomming work a bit easier.
OK sthen@, phessler@

Revision 1.88 / (download) - annotate - [select for diffs], Thu Oct 14 07:35:47 2010 UTC (13 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.87: +7 -6 lines
Diff to previous 1.87 (colored)

kr_redistribute() needs to be called with the head node of a multipath
chain. Fix kroute_insert() and rtmsg_process() to correctly do this.
OK bluhm@

Revision 1.87 / (download) - annotate - [select for diffs], Wed Jul 14 01:00:32 2010 UTC (13 years, 11 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.86: +10 -1 lines
Diff to previous 1.86 (colored)

handle RTM_DESYNC. if the kernel says we're out of sync with the kernel
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.

Revision 1.86 / (download) - annotate - [select for diffs], Mon Jul 12 14:35:13 2010 UTC (13 years, 11 months ago) by bluhm
Branch: MAIN
Changes since 1.85: +5 -15 lines
Diff to previous 1.85 (colored)

Merge duplicate log messages into one log_warn().
ok claudio@

Revision 1.85 / (download) - annotate - [select for diffs], Fri Jul 9 15:38:28 2010 UTC (13 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.84: +2 -2 lines
Diff to previous 1.84 (colored)

ospfd is a AF_INET only routing daemon so limit the routing socket to that
af. This is possible since this filtering no longer blocks RTM_IFINFO.
OK henning@

Revision 1.84 / (download) - annotate - [select for diffs], Sun Jun 27 05:15:20 2010 UTC (13 years, 11 months ago) by dlg
Branch: MAIN
Changes since 1.83: +4 -4 lines
Diff to previous 1.83 (colored)

fix rtmsg_process to return on an error during processing rather than
continue. fix kr_dispatch_msg so it acts when rtmsg_process fails.

from andrew sallaway based on discussion with claudio@
ok claudio@

Revision 1.83 / (download) - annotate - [select for diffs], Wed Jun 23 23:34:02 2010 UTC (13 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.82: +2 -4 lines
Diff to previous 1.82 (colored)

127/8 is INADDR_LOOPBACK & IN_CLASSA_NET the kroute code does not
automagicaly mask the addresses. While there kill a #ifdef that no
longer makes sense since it is the least problem for portable versions.

Revision 1.82 / (download) - annotate - [select for diffs], Wed Jun 23 04:26:51 2010 UTC (13 years, 11 months ago) by dlg
Branch: MAIN
Changes since 1.81: +2 -2 lines
Diff to previous 1.81 (colored)

fetchifs and fetchtable return -1 on error, not !0. in fact, they return
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@

Revision 1.81 / (download) - annotate - [select for diffs], Tue May 18 15:19:07 2010 UTC (14 years ago) by claudio
Branch: MAIN
Changes since 1.80: +2 -3 lines
Diff to previous 1.80 (colored)

Spacing.

Revision 1.80 / (download) - annotate - [select for diffs], Fri Apr 2 23:55:37 2010 UTC (14 years, 2 months ago) by sthen
Branch: MAIN
Changes since 1.79: +4 -4 lines
Diff to previous 1.79 (colored)

The rtm_errno check which was moved in the last commit should only
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@

Revision 1.79 / (download) - annotate - [select for diffs], Thu Apr 1 14:02:40 2010 UTC (14 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.78: +9 -15 lines
Diff to previous 1.78 (colored)

Minor cleanup figured out while syncing kroute with snmpd's.
OK dlg@

Revision 1.78 / (download) - annotate - [select for diffs], Tue Feb 23 10:59:31 2010 UTC (14 years, 3 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.77: +53 -187 lines
Diff to previous 1.77 (colored)

fetchtable and the kroute dispatch handlers both parse the same messages
in slightly different ways. this unifies these handlers and cuts
fetchtable over to using the generic handler.

help from claudio@ and sthen@
ok claudio@

Revision 1.77 / (download) - annotate - [select for diffs], Mon Feb 22 13:28:01 2010 UTC (14 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.76: +30 -48 lines
Diff to previous 1.76 (colored)

dedup some code a bit. rather than have the same code in fetchifs and
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@

Revision 1.76 / (download) - annotate - [select for diffs], Mon Feb 22 10:56:29 2010 UTC (14 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.75: +5 -123 lines
Diff to previous 1.75 (colored)

remove the original fetchtable code and replace it with the new
refetchtable.

tested by me and sthen@
ok claudio@

Revision 1.75 / (download) - annotate - [select for diffs], Fri Feb 19 10:37:12 2010 UTC (14 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.74: +1 -19 lines
Diff to previous 1.74 (colored)

oops, remove dead code.

Revision 1.74 / (download) - annotate - [select for diffs], Fri Feb 19 10:35:52 2010 UTC (14 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.73: +249 -0 lines
Diff to previous 1.73 (colored)

implement ospfctl fib reload.

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@

Revision 1.73 / (download) - annotate - [select for diffs], Tue Feb 16 18:27:11 2010 UTC (14 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.72: +46 -1 lines
Diff to previous 1.72 (colored)

Pick up RTM_DELADDR and issue an internal IFADDRDEL message to the ospfe to
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@

Revision 1.72 / (download) - annotate - [select for diffs], Thu Jul 23 16:36:27 2009 UTC (14 years, 10 months ago) by claudio
Branch: MAIN
Changes since 1.71: +3 -4 lines
Diff to previous 1.71 (colored)

Spelling and comment fixes by stsp@

Revision 1.71 / (download) - annotate - [select for diffs], Fri Jun 5 22:40:24 2009 UTC (15 years ago) by chris
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

rtm->rtm_hdrlen conversion

ok claudio@, henning@

Revision 1.70 / (download) - annotate - [select for diffs], Fri Jun 5 04:12:52 2009 UTC (15 years ago) by claudio
Branch: MAIN
Changes since 1.69: +7 -4 lines
Diff to previous 1.69 (colored)

Preliminary rdomain support, all hacked up by reyk@

Revision 1.69 / (download) - annotate - [select for diffs], Tue Jun 2 20:16:59 2009 UTC (15 years ago) by claudio
Branch: MAIN
Changes since 1.68: +13 -3 lines
Diff to previous 1.68 (colored)

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@

Revision 1.68 / (download) - annotate - [select for diffs], Sun Apr 26 12:48:06 2009 UTC (15 years, 1 month ago) by sthen
Branch: MAIN
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored)

comment typos; no binary change

Revision 1.67 / (download) - annotate - [select for diffs], Fri Jan 16 20:50:13 2009 UTC (15 years, 4 months ago) by gollo
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.66: +9 -8 lines
Diff to previous 1.66 (colored)

fix last update

OK claudio@ henning@

Revision 1.66 / (download) - annotate - [select for diffs], Thu Jan 8 19:27:56 2009 UTC (15 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.65: +7 -1 lines
Diff to previous 1.65 (colored)

Fix use after free of kr. Happend when the first loop removed the head
element without updating the kr pointer which was later on used again.
Found by david@. OK norby@

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jan 6 22:00:31 2009 UTC (15 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.64: +1 -7 lines
Diff to previous 1.64 (colored)

Remove workaround added in rev 1.63. The real issue has been found and
fixed and the bandaid is no longer needed. See rev. 1.26 of sys/net/radix.c

Revision 1.64 / (download) - annotate - [select for diffs], Thu Jan 1 20:40:10 2009 UTC (15 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.63: +4 -3 lines
Diff to previous 1.63 (colored)

Move initialisation of krt into kif_init so that it is possible to call
kr_shutdown() after kif_init().

Revision 1.63 / (download) - annotate - [select for diffs], Wed Dec 17 14:57:00 2008 UTC (15 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.62: +7 -1 lines
Diff to previous 1.62 (colored)

Add a workaround for some crazyness that happens if a cloning route has a
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.

Revision 1.62 / (download) - annotate - [select for diffs], Fri Dec 12 22:43:17 2008 UTC (15 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.61: +63 -79 lines
Diff to previous 1.61 (colored)

Make the kroute code routing priority aware. This solves a few issues and
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@

Revision 1.61 / (download) - annotate - [select for diffs], Fri Nov 21 17:10:45 2008 UTC (15 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.60: +1 -8 lines
Diff to previous 1.60 (colored)

Kill some old debug messages that are no longer needed.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Sep 29 09:54:30 2008 UTC (15 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.59: +17 -19 lines
Diff to previous 1.59 (colored)

Refactor code that handles the kroute interfaces and make it possible to
learn new interfaces during runtime. This should solve the issue with
reloads failing when interfaces where created during runtime.
OK norby@

Revision 1.59 / (download) - annotate - [select for diffs], Thu Jul 24 18:46:59 2008 UTC (15 years, 10 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

Use memcpy() and memcmp() like everywhere else in ospfd. OK norby@

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jun 13 07:05:26 2008 UTC (16 years ago) by claudio
Branch: MAIN
Changes since 1.57: +4 -4 lines
Diff to previous 1.57 (colored)

Simplify ROUNDUP() macro, it does not need the additional size argument.
That will be sizeof(long) no matter what.

Revision 1.57 / (download) - annotate - [select for diffs], Fri May 9 12:46:45 2008 UTC (16 years, 1 month ago) by henning
Branch: MAIN
Changes since 1.56: +2 -1 lines
Diff to previous 1.56 (colored)

insert/delete routes w/ prio RTP_OSPF

Revision 1.56 / (download) - annotate - [select for diffs], Mon May 5 12:55:37 2008 UTC (16 years, 1 month ago) by claudio
Branch: MAIN
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

Use rtm_hdrlen instead of the static header length. OK norby@

Revision 1.55 / (download) - annotate - [select for diffs], Wed Oct 17 20:52:42 2007 UTC (16 years, 7 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.54: +5 -1 lines
Diff to previous 1.54 (colored)

From ripd: Add missing RTM_VERSION checks

Revision 1.54 / (download) - annotate - [select for diffs], Mon Oct 1 08:35:12 2007 UTC (16 years, 8 months ago) by norby
Branch: MAIN
Changes since 1.53: +9 -8 lines
Diff to previous 1.53 (colored)

fix alot of whitespace problems...

Revision 1.53 / (download) - annotate - [select for diffs], Tue Sep 25 11:25:41 2007 UTC (16 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.52: +128 -60 lines
Diff to previous 1.52 (colored)

Last missing piece in the equal cost multipath support for ospfd.
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

Revision 1.52 / (download) - annotate - [select for diffs], Mon Jul 23 12:21:35 2007 UTC (16 years, 10 months ago) by pyr
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.51: +8 -3 lines
Diff to previous 1.51 (colored)

when multipath routes exist, display them in ospfctl sh fib output.
ok claudio@

Revision 1.51 / (download) - annotate - [select for diffs], Tue Jun 19 16:45:15 2007 UTC (16 years, 11 months ago) by reyk
Branch: MAIN
Changes since 1.50: +41 -6 lines
Diff to previous 1.50 (colored)

add support for mapping route labels to AS-external route tags.

manpage bits from jmc@
ok norby@ claudio@

Revision 1.50 / (download) - annotate - [select for diffs], Wed Jun 13 17:16:07 2007 UTC (17 years ago) by claudio
Branch: MAIN
Changes since 1.49: +8 -1 lines
Diff to previous 1.49 (colored)

Ingnore updates that did not change the route. This enhances the signal to
nois ratio on the routing socket. OK norby@ reyk@

Revision 1.49 / (download) - annotate - [select for diffs], Tue Jun 12 04:23:47 2007 UTC (17 years ago) by claudio
Branch: MAIN
Changes since 1.48: +3 -2 lines
Diff to previous 1.48 (colored)

When removeing as-ext LSA initialise the metric to some sane default else
the ospfd on the other side is dropping the packets because the sanity check
fails.

Revision 1.48 / (download) - annotate - [select for diffs], Tue May 22 14:08:41 2007 UTC (17 years ago) by claudio
Branch: MAIN
Changes since 1.47: +121 -102 lines
Diff to previous 1.47 (colored)

Rework the way how ospfd fetches and tracks interfaces. Try to merge the
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@

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Mon Apr 30 20:45:01 2007 UTC (17 years, 1 month ago) by ckuethe
Branch: OPENBSD_4_1
Changes since 1.42: +4 -4 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

From claudio@
> ospfd and ripd a re busted in 4.1 because the are unable to track
> linkstates. This was fixed in 1.43 of ospfd/kroute.c and 1.6 of
> ripd/kroute.c.
>
> revision 1.43
> date: 2007/03/13 16:48:03;  author: claudio;  state: Exp;  lines: +4 -4
> rtm_tableid is only valid for RTM_ADD, RTM_CHANGE and RTM_DELETE but not
> 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.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Apr 19 13:01:04 2007 UTC (17 years, 1 month ago) by claudio
Branch: MAIN
Changes since 1.46: +61 -35 lines
Diff to previous 1.46 (colored)

Use iovecs to write routing messages to the socket instead of a static
structure. This gives greater flexibility and solves an upcoming problem
with multipath routes. OK norby@

Revision 1.46 / (download) - annotate - [select for diffs], Thu Apr 12 12:51:37 2007 UTC (17 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.45: +2 -1 lines
Diff to previous 1.45 (colored)

Before starting to evaluate the redistributon of a route it helps to set
the metric to the highest and least preferred possible value else no routes
are redistributed. OK norby@

Revision 1.45 / (download) - annotate - [select for diffs], Tue Mar 27 09:43:20 2007 UTC (17 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.44: +220 -65 lines
Diff to previous 1.44 (colored)

First step to make ospfd equal cost multipath aware.
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

Revision 1.44 / (download) - annotate - [select for diffs], Tue Mar 13 17:01:15 2007 UTC (17 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.43: +1 -2 lines
Diff to previous 1.43 (colored)

Don't call rtlabel_unref() twice on RTM_DELETE. kroute_remove() does it
so don't unref before calling kroute_remove() or we end up with wrong
reference counts.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Mar 13 16:48:03 2007 UTC (17 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.42: +4 -4 lines
Diff to previous 1.42 (colored)

rtm_tableid is only valid for RTM_ADD, RTM_CHANGE and RTM_DELETE but not
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.

Revision 1.42 / (download) - annotate - [select for diffs], Sun Feb 25 18:10:47 2007 UTC (17 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE
Branch point for: OPENBSD_4_1
Changes since 1.41: +15 -14 lines
Diff to previous 1.41 (colored)

copy mis-aligned routing socket message into a properly aligned struct, so
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

Revision 1.41 / (download) - annotate - [select for diffs], Sat Feb 24 00:10:45 2007 UTC (17 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

spelling; sthen@spacehopper

Revision 1.40 / (download) - annotate - [select for diffs], Thu Feb 1 12:51:01 2007 UTC (17 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.39: +19 -1 lines
Diff to previous 1.39 (colored)

kr_reload() -- another helper function for reload support. This one
takes care that redistribution is correct after reload. OK norby@ pyr@

Revision 1.39 / (download) - annotate - [select for diffs], Wed Dec 13 13:30:07 2006 UTC (17 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.38: +5 -3 lines
Diff to previous 1.38 (colored)

Doh! I forgot the change from kroute to rroute in the deletion case.
Found by Armin Wolfermann

Revision 1.38 / (download) - annotate - [select for diffs], Thu Dec 7 19:14:27 2006 UTC (17 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.37: +8 -5 lines
Diff to previous 1.37 (colored)

Make it possible to set the metric and LSA type for redistributed routes.
Mostly based on a diff by Pierre-Yves Ritschard (I just simplified the parser
code). OK norby@

Revision 1.37 / (download) - annotate - [select for diffs], Tue Nov 28 19:21:15 2006 UTC (17 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

add additional link states to report the half duplex / full duplex
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@

Revision 1.36 / (download) - annotate - [select for diffs], Tue Nov 28 16:36:58 2006 UTC (17 years, 6 months ago) by henning
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

mib we pass to sysctl when fetching the routing table has 7 entries now,
not 6 any more (rtableid added). need to tell sysctl so.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Nov 17 08:55:31 2006 UTC (17 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.34: +96 -30 lines
Diff to previous 1.34 (colored)

Support for multiple networks on one interface. Until now only the main
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@

Revision 1.34 / (download) - annotate - [select for diffs], Thu Nov 16 15:55:29 2006 UTC (17 years, 6 months ago) by henning
Branch: MAIN
Changes since 1.33: +6 -2 lines
Diff to previous 1.33 (colored)

ignore routing messages for alternate tables for now, from bgpd

Revision 1.33 / (download) - annotate - [select for diffs], Tue May 30 22:06:14 2006 UTC (18 years ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.32: +36 -11 lines
Diff to previous 1.32 (colored)

Now that rtlabels are accessable via sysctl we can use route lables to
define which routes should be redistributed via OSPF. So now you can
define the export list on a fine graded basis. More to come... OK norby@

Revision 1.32 / (download) - annotate - [select for diffs], Sat May 27 19:28:20 2006 UTC (18 years ago) by claudio
Branch: MAIN
Changes since 1.31: +3 -6 lines
Diff to previous 1.31 (colored)

Revert last commit. Having ifindex of 0 is an error and needs to be reported.
Having routes with incorrect ifindex makes it impossible to correctly validate
routes. -current ospfd needs a -current kernel.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Fri May 5 13:57:56 2006 UTC (18 years, 1 month ago) by brad
Branch: OPENBSD_3_9
Changes since 1.25: +24 -21 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

MFC:
Fix by henning@

only look at later rt_msghdr fields for those messages actually using
rt_msghdr, same as in bgpd

Revision 1.31 / (download) - annotate - [select for diffs], Fri Apr 28 15:46:10 2006 UTC (18 years, 1 month ago) by henning
Branch: MAIN
Changes since 1.30: +4 -3 lines
Diff to previous 1.30 (colored)

do not log "interface with index 0 not found". ifindex == 0 happens on
routes. same as in bgpd now. norby ok

Revision 1.30 / (download) - annotate - [select for diffs], Tue Apr 25 08:01:16 2006 UTC (18 years, 1 month ago) by claudio
Branch: MAIN
Changes since 1.29: +2 -1 lines
Diff to previous 1.29 (colored)

ARGSUSED for event handler.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Apr 18 19:19:18 2006 UTC (18 years, 1 month ago) by claudio
Branch: MAIN
Changes since 1.28: +1 -6 lines
Diff to previous 1.28 (colored)

struct kif_kr is not used in ospfd.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Apr 16 11:40:54 2006 UTC (18 years, 1 month ago) by henning
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

KNF

Revision 1.27 / (download) - annotate - [select for diffs], Sun Apr 16 11:38:11 2006 UTC (18 years, 1 month ago) by henning
Branch: MAIN
Changes since 1.26: +24 -21 lines
Diff to previous 1.26 (colored)

only look at later rt_msghdr fields for those messages actually using
rt_msghdr, same as in bgpd, ok claudio norby

Revision 1.26 / (download) - annotate - [select for diffs], Wed Mar 8 13:49:07 2006 UTC (18 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.25: +51 -29 lines
Diff to previous 1.25 (colored)

Fix logic of the kroute code. First of all there was a porblem if a prefix
is known via kernel and ospf. If the kernel route is removed the ospf one
was not added to the FIB. This is an uncommon event so it is OK to request
an update from the RIB in this case.
Additionally ospfd treated bgpd inserted routes like static routes. This
is wrong because IGP routes habe a higher preference over EGP routes. In
this case a bgpd route needs to be overridden by a ospfd one.
With these to fixes bgpd and ospfd start to play nicely together.
OK norby@

Revision 1.25 / (download) - annotate - [select for diffs], Mon Jan 23 22:29:15 2006 UTC (18 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE
Branch point for: OPENBSD_3_9
Changes since 1.24: +1 -2 lines
Diff to previous 1.24 (colored)

Kill stupid comment. "not reached" after a continue is superfluous.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jan 12 15:10:02 2006 UTC (18 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.23: +64 -22 lines
Diff to previous 1.23 (colored)

Rewrite the redistribute code. The previous implementation was stupid and
resulted in a major bottleneck if bgpd was used on the same box -- not clever
to do linear searches over 175k entries :(. This now moves the redistribute
code back into kroute duty and kills the linear list. Also default routes are
now redistributed without the need for a kernel default route.
OK norby@

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jan 12 15:00:48 2006 UTC (18 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.22: +6 -6 lines
Diff to previous 1.22 (colored)

Change inet_addr("127.0.0.1") into htonl(INADDR_LOOPBACK) and similar.
OK norby@

Revision 1.22 / (download) - annotate - [select for diffs], Thu Jan 5 15:53:36 2006 UTC (18 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.21: +8 -3 lines
Diff to previous 1.21 (colored)

Make ospfd respect carp(4) interfaces and their weird behaviour. They will
not be used to connect to a OSPF cloud and forced to be passive. With this
ospfd will only announce the carp interface route if the interface is master.
So you can connect a LAN in a redundant way to your ospf backbone. OK norby@

Revision 1.21 / (download) - annotate - [select for diffs], Wed Dec 14 00:44:40 2005 UTC (18 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.20: +6 -5 lines
Diff to previous 1.20 (colored)

Replace strlcpy() with memcpy() in the sockaddr_dl handling. sdl_data is
not a C string and strlcpy() only works on C strings -- returns length of
the source.  Found by tedu@ OK deraadt@ tedu@

Revision 1.20 / (download) - annotate - [select for diffs], Mon Aug 8 08:38:42 2005 UTC (18 years, 10 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

tab before newline.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jun 26 19:22:12 2005 UTC (18 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.18: +9 -1 lines
Diff to previous 1.18 (colored)

Do not automaticaly announce routes that have RTF_DYNAMIC set. These routes
are e.g. created by the PMTU code and are removed after some time.
OK norby@

Revision 1.18 / (download) - annotate - [select for diffs], Tue May 24 21:36:40 2005 UTC (19 years ago) by claudio
Branch: MAIN
Changes since 1.17: +30 -1 lines
Diff to previous 1.17 (colored)

Only redistribute networks if the interface they depend on is actually
up and running. This makes redistribution of carp(4)-ed networks magically
work. OK norby@

Revision 1.17 / (download) - annotate - [select for diffs], Tue May 24 21:31:07 2005 UTC (19 years ago) by claudio
Branch: MAIN
Changes since 1.16: +3 -4 lines
Diff to previous 1.16 (colored)

Set ifindex for all kernel routes. This makes it very easy to track the
state of static prefixes.
OK norby@

Revision 1.16 / (download) - annotate - [select for diffs], Fri May 13 08:29:13 2005 UTC (19 years, 1 month ago) by claudio
Branch: MAIN
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored)

The NET_RT_IFLIST sysctl returns RTM_IFINFO and RTM_NEWADDR messages in
the buffer. While RTM_IFINFO starts with a struct if_msghdr RTM_NEWADDR
does not. In other words (struct sockaddr *)(next + sizeof(ifm)) is only
correct for RTM_IFINFO and not for RTM_NEWADDR. So move the ifm_type check
up else get_rtaddrs() would access memory outside of buf.
OK henning@

Revision 1.15 / (download) - annotate - [select for diffs], Sat Apr 16 21:48:21 2005 UTC (19 years, 1 month ago) by claudio
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

Set F_STATIC flag earlier else the default route will end up as non-static.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Apr 12 09:54:59 2005 UTC (19 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.13: +37 -1 lines
Diff to previous 1.13 (colored)

Support for self originated AS-external LSA.
With "redistribute (static|connected|default|none)" it is possible to
tell ospfd which external routes should be announced.
Connected routes will be announced only if there is no corresponding
interface configured, in that case the prefix is not external.
Adding and removing of announced prefixes are done automaticaly.
OK norby@

Revision 1.13 / (download) - annotate - [select for diffs], Thu Mar 31 19:32:10 2005 UTC (19 years, 2 months ago) by norby
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Add support for crypt authentication (MD5).

ok and input claudio@

Revision 1.12 / (download) - annotate - [select for diffs], Sat Mar 26 13:35:16 2005 UTC (19 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.11: +7 -6 lines
Diff to previous 1.11 (colored)

Implement the IMSG_CTL_IFINFO bits correctly. This is needed for
"ospfctl show fib interface".
OK henning@ norby@

Revision 1.11 / (download) - annotate - [select for diffs], Sat Mar 26 11:06:49 2005 UTC (19 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.10: +1 -108 lines
Diff to previous 1.10 (colored)

kroute.c cleanup, simplify code and remove unused functions.
OK henning@

Revision 1.10 / (download) - annotate - [select for diffs], Wed Mar 23 20:28:29 2005 UTC (19 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.9: +5 -2 lines
Diff to previous 1.9 (colored)

The interface name in struct sockaddr_dl may not be nul terminated and
so the strlcpy() will copy to much. Use sa_nlen instead with some additional
logic. This fixes a problem where interfaces where not found.
OK norby@

Revision 1.9 / (download) - annotate - [select for diffs], Wed Mar 23 20:15:50 2005 UTC (19 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.8: +4 -10 lines
Diff to previous 1.8 (colored)

prefixlen2mask() should return a network byte order result as it does imply
by using an in_addr_t as return type. It simplyfies also the usage as in most
cases the mask is used with a struct in_addr address which is also network
byte order. Add prototypes of prefixlen2mask() and mask2prefixlen() to
ospfd.h as it is used or will be used at different places.
OK norby@

Revision 1.8 / (download) - annotate - [select for diffs], Wed Mar 23 11:30:21 2005 UTC (19 years, 2 months ago) by henning
Branch: MAIN
Changes since 1.7: +16 -2 lines
Diff to previous 1.7 (colored)

grow receive buffer on the routing socket, from bgpd

Revision 1.7 / (download) - annotate - [select for diffs], Wed Mar 23 11:07:42 2005 UTC (19 years, 2 months ago) by henning
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

explicitely initialize opt, from bgpd

Revision 1.6 / (download) - annotate - [select for diffs], Tue Mar 15 22:03:56 2005 UTC (19 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.5: +38 -5 lines
Diff to previous 1.5 (colored)

Add control messages for the show fib commands.
OK norby@ deraadt@

Revision 1.5 / (download) - annotate - [select for diffs], Mon Mar 7 10:28:14 2005 UTC (19 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.4: +30 -11 lines
Diff to previous 1.4 (colored)

Track interface state (up/down) and media status. Simplify the code a bit
by using the kif/kroute info while allocating interfaces.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Feb 24 16:28:43 2005 UTC (19 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.3: +3 -256 lines
Diff to previous 1.3 (colored)

Remove the kroute nexthop specific code as there is no need for this in
ospfd. While there clean up some other no longer needed stuff.
OK norby@

Revision 1.3 / (download) - annotate - [select for diffs], Tue Feb 15 15:39:30 2005 UTC (19 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

let ospfd "tag" its routes with RTF_PROTO2, bgpd uses RTF_PROTO1 already

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jan 28 17:53:33 2005 UTC (19 years, 4 months ago) by norby
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Change my email address to the OpenBSD one since Ericsson has nothing to
do with this software, just happend to be my only valid email address at
the time.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Jan 28 14:05:40 2005 UTC (19 years, 4 months ago) by claudio
Branch: MAIN

Welcome ospfd
started by Esben Norby some time ago by using the imsg/three process framework
of bgpd. He implemented the basic concept plus the ospf finite state machines.
Later I joined and helped him cleanup, debug and extend his work.
Right now it is not particularly useful, major parts are still missing but is
imported to allow more people to work on it.
status:
The basic protocol works for broadcast networks and the LS database is
synchronized and updated. It is not possible to be DR or BDR on a network
and other interface types like point-to-point are not yet supported.
The shortest path tree is not calculated and so no routing information is
exchanged with the kernel FIB.

Not yet connected to the builds.
OK henning@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.