OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.69 / (download) - annotate - [select for diffs], Sat May 18 11:17:30 2024 UTC (3 weeks ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.68: +1 -2 lines
Diff to previous 1.68 (colored)

remove prototypes with no matching function; ok claudio@

Revision 1.68 / (download) - annotate - [select for diffs], Wed Jun 21 09:47:03 2023 UTC (11 months, 2 weeks ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.67: +98 -10 lines
Diff to previous 1.67 (colored)

add "fib reload" support to ospf6d/ospf6ctl, and trigger it
automatically on a timeout after RTM_DESYNC (i.e. route socket
overflow). ported across from ospfd. fixes/ok claudio@

(it's much harder to overflow the routing socket buffer these
days since it was bumped to 2MB, but still happens occasionally
on a busy machine).

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

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.66 / (download) - annotate - [select for diffs], Wed Nov 3 21:40:03 2021 UTC (2 years, 7 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.65: +2 -2 lines
Diff to previous 1.65 (colored)

log the interface along with the neighbour ID in various ospfd/ospf6d
messages.  ok remi@ benno@

if a neighbour is reachable over multiple network links, some problems
may be related to the link itself rather than the neighbour, so knowing
the interface can be important when trying to locate the source of a
problem.

Revision 1.65 / (download) - annotate - [select for diffs], Thu Sep 10 05:18:16 2020 UTC (3 years, 8 months ago) by jmatthew
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.64: +8 -1 lines
Diff to previous 1.64 (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 remi@ sthen@

Revision 1.64 / (download) - annotate - [select for diffs], Sun May 17 18:29:25 2020 UTC (4 years ago) by denis
Branch: MAIN
Changes since 1.63: +1 -3 lines
Diff to previous 1.63 (colored)

IF_IFACE_AVAIL is never used/checked, wipe it.

OK remi@

Revision 1.63 / (download) - annotate - [select for diffs], Sat May 16 15:54:12 2020 UTC (4 years ago) by denis
Branch: MAIN
Changes since 1.62: +1 -7 lines
Diff to previous 1.62 (colored)

When IMSG_IFADD is removed, IMSG_IFDELETE becomes useless

OK remi@

Revision 1.62 / (download) - annotate - [select for diffs], Mon Dec 16 08:28:33 2019 UTC (4 years, 5 months ago) by denis
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.61: +45 -3 lines
Diff to previous 1.61 (colored)

Rework route priority filter.

reads OK benno@ remi@

Revision 1.61 / (download) - annotate - [select for diffs], Thu Dec 12 08:21:34 2019 UTC (4 years, 5 months ago) by denis
Branch: MAIN
Changes since 1.60: +70 -179 lines
Diff to previous 1.60 (colored)

Refactor kernel route message handling.

OK remi@

Revision 1.60 / (download) - annotate - [select for diffs], Wed Jan 2 21:32:55 2019 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.59: +22 -9 lines
Diff to previous 1.59 (colored)

Detect and remove routes in the kernel routing table with priority
RTP_OSPF (or the configured fib-priority) inserted by another program.
ospfd does the same.

OK claudio@ benno@

Revision 1.59 / (download) - annotate - [select for diffs], Sat Dec 29 16:04:31 2018 UTC (5 years, 5 months ago) by remi
Branch: MAIN
Changes since 1.58: +12 -10 lines
Diff to previous 1.58 (colored)

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

OK denis@

Revision 1.58 / (download) - annotate - [select for diffs], Thu Jul 12 13:45:03 2018 UTC (5 years, 10 months ago) by remi
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.57: +8 -5 lines
Diff to previous 1.57 (colored)

Add support for rdomains.

small quirk from tb@
ok phessler@

Revision 1.57 / (download) - annotate - [select for diffs], Thu Jul 12 12:19:05 2018 UTC (5 years, 10 months ago) by remi
Branch: MAIN
Changes since 1.56: +4 -8 lines
Diff to previous 1.56 (colored)

With the "depend on" option routes are sent out with a metric of 65535 if
the referenced interface is down or in state backup. This is especially
useful on a carp cluster to ensure all traffic goes to the carp master.

ok friehm@ jca@

Revision 1.56 / (download) - annotate - [select for diffs], Tue Jul 10 12:17:38 2018 UTC (5 years, 11 months ago) by friehm
Branch: MAIN
Changes since 1.55: +23 -4 lines
Diff to previous 1.55 (colored)

If intra area prefixes move from one router to another router, cloning routes
may become gateway routes and contrary. The kernel does not allow to change the
flags RTF_GATEWAY / RTF_CLONING in RTM_CHANGE messages, but ospf6d tried this
anyway. The result is a broken route.
Instead of modifying such routes remove the old route and insert a new one.

Thanks to Raimund Specht for reporting the problem and testing the fix.

OK claudio@

Revision 1.55 / (download) - annotate - [select for diffs], Tue Jul 10 10:55:21 2018 UTC (5 years, 11 months ago) by friehm
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

Let kroute_matchgw() select the correct route before checking flags.

OK claudio@

Revision 1.54 / (download) - annotate - [select for diffs], Thu Feb 8 21:37:36 2018 UTC (6 years, 4 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

ospf6d mostly only cares about AF_INET6 routes
found while investigating routing socket desync with claudio.
ok remi jca claudio

Revision 1.53 / (download) - annotate - [select for diffs], Sun Nov 5 14:33:27 2017 UTC (6 years, 7 months ago) by jca
Branch: MAIN
Changes since 1.52: +1 -2 lines
Diff to previous 1.52 (colored)

Kill dead assignement.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Jun 19 19:55:57 2017 UTC (6 years, 11 months ago) by friehm
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.51: +62 -79 lines
Diff to previous 1.51 (colored)

Import route priority support from ospfd to ospf6d.
Also remove the RTF_UP flag from hdr.rtm_flags in send_rtmsg() since
ospfd and bgpd don't set the flag.

OK bluhm@ claudio@

Revision 1.51 / (download) - annotate - [select for diffs], Tue May 30 12:42:31 2017 UTC (7 years ago) by friehm
Branch: MAIN
Changes since 1.50: +130 -63 lines
Diff to previous 1.50 (colored)

Adding multipath route support to ospf6d. Almost copied from ospfd.

OK bluhm@

Revision 1.50 / (download) - annotate - [select for diffs], Tue Dec 27 17:18:56 2016 UTC (7 years, 5 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.49: +21 -23 lines
Diff to previous 1.49 (colored)

Replace struct rroute with struct kroute, as done in ospfd

ok claudio@

Revision 1.49 / (download) - annotate - [select for diffs], Thu Dec 22 23:01:58 2016 UTC (7 years, 5 months ago) by jca
Branch: MAIN
Changes since 1.48: +7 -7 lines
Diff to previous 1.48 (colored)

Let rde and ospfe know about all IFINFO messages (eg an interface MTU change).

The parent now passes all IFINFO messages down to the children, then
looks whether he has any work to do.  Same idea as ospfd.

ok benno@ claudio@

Revision 1.48 / (download) - annotate - [select for diffs], Fri Jul 17 20:12:38 2015 UTC (8 years, 10 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.47: +14 -3 lines
Diff to previous 1.47 (colored)

Similar to bgpd and ospfd skip broadcast (should not happen) and llinfo
routes also adjust the tracking of connected routes to the new way.

Revision 1.47 / (download) - annotate - [select for diffs], Wed Feb 11 05:58:57 2015 UTC (9 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (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.46 / (download) - annotate - [select for diffs], Tue Feb 10 05:39:10 2015 UTC (9 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.45: +8 -2 lines
Diff to previous 1.45 (colored)

Same session_socket_blockmode() changes as done to ospfd. Also do the same
kroute change (make socket non-blocking and add trigger for partial reads).

Revision 1.45 / (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.44: +2 -2 lines
Diff to previous 1.44 (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.44 / (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.43: +3 -3 lines
Diff to previous 1.43 (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.43 / (download) - annotate - [select for diffs], Wed Oct 30 17:24:34 2013 UTC (10 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

another simple %i to %d conversion for obviousness

Revision 1.42 / (download) - annotate - [select for diffs], Fri Mar 22 13:17:54 2013 UTC (11 years, 2 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.41: +4 -3 lines
Diff to previous 1.41 (colored)

sync comment typos/whitespace with ospfd

Revision 1.41 / (download) - annotate - [select for diffs], Mon Jan 14 14:39:38 2013 UTC (11 years, 4 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.40: +13 -3 lines
Diff to previous 1.40 (colored)

kroute.c rev 1.69 of ospfd for ospf6d
------------------------------------------------------------------------
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@

Revision 1.40 / (download) - annotate - [select for diffs], Sun Oct 21 21:30:44 2012 UTC (11 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.39: +1 -133 lines
Diff to previous 1.39 (colored)

Move common ospf6d functions for ipv6 address manipulation into
util.c to reuse them in ospf6ctl.
OK claudio@

Revision 1.39 / (download) - annotate - [select for diffs], Thu Sep 20 17:39:08 2012 UTC (11 years, 8 months ago) by bluhm
Branch: MAIN
Changes since 1.38: +18 -9 lines
Diff to previous 1.38 (colored)

The current code in ospf6d kroute tries to read the scope of the
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@

Revision 1.38 / (download) - annotate - [select for diffs], Wed Sep 19 19:20:34 2012 UTC (11 years, 8 months ago) by bluhm
Branch: MAIN
Changes since 1.37: +57 -18 lines
Diff to previous 1.37 (colored)

Instead of fiddling about the kame hack here and there, implement
the functions embedscope(), recoverscope(), clearscope().
ok claudio@

Revision 1.37 / (download) - annotate - [select for diffs], Mon Sep 17 13:49:27 2012 UTC (11 years, 8 months ago) by bluhm
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

Fix trailing whitespaces.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Jul 7 18:39:11 2011 UTC (12 years, 11 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.35: +2 -1 lines
Diff to previous 1.35 (colored)

It helps to set the sdl_family so that the kernel knows what this is.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Jul 7 17:10:48 2011 UTC (12 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.34: +6 -3 lines
Diff to previous 1.34 (colored)

Rework the distribution of link state and iface FSM state changes.
Link state changes are sent from the parent to both childs and
iface FSM state changes are sent from the ospfe to the rde.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Jul 7 17:06:51 2011 UTC (12 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.33: +21 -15 lines
Diff to previous 1.33 (colored)

Only send interface address changes to the ospfe/rde if the interface
is actually used by the config. This should fix the exits caused when
interfaces are dynamically added to the kernel.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Jul 7 03:56:59 2011 UTC (12 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)

Commit stuff that I added to another tree eventhough it should have
been in the last commit. I should not work on multiple laptops at
the same time.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jul 7 00:36:13 2011 UTC (12 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.31: +10 -14 lines
Diff to previous 1.31 (colored)

Kill nh_reachable. Link state checking is so easy now that it does not
matter anymore to cache this value for ospf6d.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Jul 4 04:34:14 2011 UTC (12 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.30: +3 -8 lines
Diff to previous 1.30 (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.30 / (download) - annotate - [select for diffs], Mon Mar 7 07:43:02 2011 UTC (13 years, 3 months ago) by henning
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

continguous -> contiguous
From: "Anthony J. Bentley" <anthonyjbentley at gmail dot com>

Revision 1.29 / (download) - annotate - [select for diffs], Thu Oct 14 07:38:05 2010 UTC (13 years, 7 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.28: +6 -5 lines
Diff to previous 1.28 (colored)

Same fix as previously commited to ospfd. Ensure that kr_redistribute()
is called with the head node of a multipath chain.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Aug 22 21:15:25 2010 UTC (13 years, 9 months ago) by bluhm
Branch: MAIN
Changes since 1.27: +5 -6 lines
Diff to previous 1.27 (colored)

Redistributing the default route with ospf6d did not work correctly.
- 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@

Revision 1.27 / (download) - annotate - [select for diffs], Wed Jul 14 17:09:13 2010 UTC (13 years, 10 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.26: +6 -6 lines
Diff to previous 1.26 (colored)

Another hand knitted offsetof() that needs to die. This time steal the
mask2prefixlen6 version from bgpd.

Revision 1.26 / (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.25: +5 -14 lines
Diff to previous 1.25 (colored)

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

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jul 6 13:24:35 2010 UTC (13 years, 11 months ago) by bluhm
Branch: MAIN
Changes since 1.24: +4 -1 lines
Diff to previous 1.24 (colored)

Update the interfaces changes from kroute to rde via imsg.  This
is needed to orginate correct intra-area-prefix-lsas.
ok claudio@ stsp@

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jul 1 19:47:04 2010 UTC (13 years, 11 months ago) by bluhm
Branch: MAIN
Changes since 1.23: +4 -4 lines
Diff to previous 1.23 (colored)

Fix all white space bugs in ospf6d at once.  No binary change.
ok claudio@

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jul 1 18:57:21 2010 UTC (13 years, 11 months ago) by bluhm
Branch: MAIN
Changes since 1.22: +71 -1 lines
Diff to previous 1.22 (colored)

The prefixes of interface addresses of an ospf link have to be
advertised as link-lsa and intra-area-prefix-lsa when they change
dynamically.  Handle RTM_NEWADDR and RTM_DELADDR in kroute by sending
an imsg to ospfe.  Upon this event, originate a new link-lsa in
ospfe.  In rde a new intra-area-prefix-lsa is generated when a
link-lsa appears or goes away.
ok claudio@; ok and test stsp@

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jun 28 15:06:00 2010 UTC (13 years, 11 months ago) by bluhm
Branch: MAIN
Changes since 1.21: +22 -1 lines
Diff to previous 1.21 (colored)

If there is no next hop but an interface index, create a cloning
route.  This happens when we learn from another router that a
directly attached link has a prefix for which we have no address
configured at the interface.  In this case, we should do neighbor
discovery to directly reach the hosts with that prefix on the link.
ok claudio@

Revision 1.21 / (download) - annotate - [select for diffs], Sat Jun 12 10:03:38 2010 UTC (14 years ago) by bluhm
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

The "dispatch_rtmsg no nexthop" error was emitted in wrong cases
and prevented dynamic route redistribution.  Fix the logic bug that
was introduced during IPv4 to IPv6 conversion.
ok claudio@

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jun 9 17:46:42 2010 UTC (14 years ago) by claudio
Branch: MAIN
Changes since 1.19: +8 -4 lines
Diff to previous 1.19 (colored)

Only embed the interface scope for link local nexthops. AS-ext LSA have
an optional non link local forwarding address so we need to be a bit more
careful here. Problem found and analyzed by Martin Pelikán.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Feb 23 16:22:57 2010 UTC (14 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.18: +30 -28 lines
Diff to previous 1.18 (colored)

This is a total dejavu of bgpd/kroute.c 1.165. Because IPv6 fucked up and
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.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Dec 23 15:11:41 2009 UTC (14 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (colored)

Loopback interface don't have link local addresses so use the real IPv6
address for so that the device is no considered unnumbered.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Dec 22 19:44:52 2009 UTC (14 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.16: +10 -2 lines
Diff to previous 1.16 (colored)

Holy inconsitancy Batman! While it is impossible to use embeded scope ids
in almost all sockaddr_in6 addresses it is required for the nexthop and
sin6_scope_id is actually ignored there.
This needs to be fixed but my quota of IPv6 insanity is already used for today.
Workaround for now. My simple testsetup is now actually able to install
the first ospf6d learned routes in the kernel. Weeee!

Revision 1.16 / (download) - annotate - [select for diffs], Tue Dec 22 19:32:36 2009 UTC (14 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.15: +27 -11 lines
Diff to previous 1.15 (colored)

Add interface index aka. scope id to struct kroute so that the rde can pass
this information to kroute and kroute can use that information to fill in
the various sin6_scope_id fields.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Dec 21 18:35:43 2009 UTC (14 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Another AF_INET that should be an AF_INET6.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Dec 21 18:29:31 2009 UTC (14 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Doh! It helps to load the IPv6 routing table into kroute instead of IPv4.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Sep 20 20:27:53 2009 UTC (14 years, 8 months ago) by stsp
Branch: MAIN
Changes since 1.12: +6 -4 lines
Diff to previous 1.12 (colored)

In kif_update(), the ifname array could be used uninitialised if the
caller passed NULL for the sdl parameter.
ok claudio@

Revision 1.12 / (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.11: +3 -3 lines
Diff to previous 1.11 (colored)

rtm->rtm_hdrlen conversion

ok claudio@, henning@

Revision 1.11 / (download) - annotate - [select for diffs], Thu Apr 9 19:03:10 2009 UTC (15 years, 2 months ago) by stsp
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

Don't dereference NULL pointers. This crash wasn't found yet because
we never entered this code path before. This is just a temporary fix.
The kroute code desperately needs a sync to ospfd.

"Looks sensible to me" jsing@, "Yes and yes" claudio@

Revision 1.10 / (download) - annotate - [select for diffs], Tue Feb 3 14:06:18 2009 UTC (15 years, 4 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.9: +12 -3 lines
Diff to previous 1.9 (colored)

We don't need anything other than link-local addresses and
global-scope prefixes in iface->ifa_list.
ok claudio@

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jan 4 18:20:22 2009 UTC (15 years, 5 months ago) by stsp
Branch: MAIN
Changes since 1.8: +23 -9 lines
Diff to previous 1.8 (colored)

if_newaddr() was hard-coding all interface prefixes to /64.
Make it smarter so that ospf6d knows the actual prefix length
configured on an interface.
ok claudio@

Revision 1.8 / (download) - annotate - [select for diffs], Fri May 9 12:55:48 2008 UTC (16 years, 1 month ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

Henning forgot ospf6d. Add priority to ospf6d as well.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Feb 11 13:48:39 2008 UTC (16 years, 4 months ago) by norby
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Correct the output of several error and debug messages.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Dec 13 08:54:05 2007 UTC (16 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.5: +73 -178 lines
Diff to previous 1.5 (colored)

Monster commit of stuff I did mostly last month. What it does:
 * removes kif and uses iface for everything interface related.
   This removes unneeded data redundancy which makes the code more complex.
 * adds the link local prefix to struct iface and attaches a list with
   the other prefixes to the struct iface. This is needed to generate the
   link LSA.
 * disconnects struct iface from struct area (the backpointer is gone)
   this will make the reload code a bit easier.
norby@ agrees with the direction we're heading with this

Revision 1.5 / (download) - annotate - [select for diffs], Wed Oct 17 20:54:41 2007 UTC (16 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.4: +5 -1 lines
Diff to previous 1.4 (colored)

From ripd: Add missing RTM_VERSION checks.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Oct 16 08:41:56 2007 UTC (16 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.3: +178 -130 lines
Diff to previous 1.3 (colored)

First step at making kroute IPv6 aware. This resulted in many additional
changes -- some are so hairy that I left them out for later by commenting out
larger blocks of code (just grep for XXX if you like to help).
Get it in early so that we can work on.
OK norby@

Revision 1.3 / (download) - annotate - [select for diffs], Thu Oct 11 21:29:53 2007 UTC (16 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.2: +2 -8 lines
Diff to previous 1.2 (colored)

There is no need to support interface em0:<IP> anymore. Remove most of the
code the rest will be reused somehow.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Oct 10 14:06:03 2007 UTC (16 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.1: +9 -1 lines
Diff to previous 1.1 (colored)

Address scope was probably the most stupid idea comming out of IPv6.
Abusing the 3rd and 4th byte of a ff02::/32 address to store the scope is
wrong wrong wrong. Depending on the calls it is not possible to compare
addresses with IN6_ARE_ADDR_EQUAL(). Remove the scope hack when fetching
interface addresses so that we never rely on that inside ospf6d.
OK norby@

Revision 1.1 / (download) - annotate - [select for diffs], Mon Oct 8 10:44:50 2007 UTC (16 years, 8 months ago) by norby
Branch: MAIN

Welcome ospf6d

The new ospf6d daemon will support OSPFv3, basically OSPF for IPv6 networks.

It is heavily based on ospfd(8), it is more or less a copy and paste of it.
Currently some unneeded stuff has been removed and the trasition from
IPv4 to IPv6 has begun.

ospf6d is not very usefull at the moment, it is being imported to allow more
people to work on it concurrently.

Not yet connected to the builds.

ok claudio@ dlg@

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.