OpenBSD CVS

CVS log for src/usr.sbin/ospf6d/ospf6d.h


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

Request diff between arbitrary revisions


Default branch: MAIN


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

remove prototypes with no matching function; ok claudio@

Revision 1.51 / (download) - annotate - [select for diffs], Wed Jun 21 09:47:03 2023 UTC (11 months, 1 week ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.50: +3 -1 lines
Diff to previous 1.50 (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.50 / (download) - annotate - [select for diffs], Tue Jan 19 09:46:51 2021 UTC (3 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.49: +4 -3 lines
Diff to previous 1.49 (colored)

Properly define ospfd_process as an extern in the header file.

Revision 1.49 / (download) - annotate - [select for diffs], Sun May 17 18:29:25 2020 UTC (4 years ago) by denis
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.48: +1 -2 lines
Diff to previous 1.48 (colored)

IF_IFACE_AVAIL is never used/checked, wipe it.

OK remi@

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

When IMSG_IFADD is removed, IMSG_IFDELETE becomes useless

OK remi@

Revision 1.47 / (download) - annotate - [select for diffs], Sat May 16 15:53:03 2020 UTC (4 years ago) by denis
Branch: MAIN
Changes since 1.46: +1 -2 lines
Diff to previous 1.46 (colored)

IMSG_IFADD is never used, wipe it

OK remi@

Revision 1.46 / (download) - annotate - [select for diffs], Sun Apr 5 18:19:04 2020 UTC (4 years, 1 month ago) by denis
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.45: +2 -1 lines
Diff to previous 1.45 (colored)

Handle connected routes as ospfd(8) does.

OK remi@

Revision 1.45 / (download) - annotate - [select for diffs], Tue Jan 21 20:38:52 2020 UTC (4 years, 4 months ago) by remi
Branch: MAIN
Changes since 1.44: +1 -2 lines
Diff to previous 1.44 (colored)

Allow the interface setting "type p2p" to be configured globallz or per
area. Most of the other interface settings allow this.

ok denis@

Revision 1.44 / (download) - annotate - [select for diffs], Fri Jan 3 17:45:02 2020 UTC (4 years, 4 months ago) by denis
Branch: MAIN
Changes since 1.43: +1 -2 lines
Diff to previous 1.43 (colored)

Remove unused variable

Revision 1.43 / (download) - annotate - [select for diffs], Thu Dec 26 10:24:18 2019 UTC (4 years, 5 months ago) by remi
Branch: MAIN
Changes since 1.42: +2 -1 lines
Diff to previous 1.42 (colored)

Add point-to-point support for broadcast interfaces.

tested by Kapetanakis Giannis
ok denis@

Revision 1.42 / (download) - annotate - [select for diffs], Mon Dec 23 07:33:49 2019 UTC (4 years, 5 months ago) by denis
Branch: MAIN
Changes since 1.41: +4 -3 lines
Diff to previous 1.41 (colored)

Area is now part of struct iface

OK remi@

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

Rework route priority filter.

reads OK benno@ remi@

Revision 1.40 / (download) - annotate - [select for diffs], Tue Jun 11 05:00:09 2019 UTC (4 years, 11 months ago) by remi
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.39: +4 -2 lines
Diff to previous 1.39 (colored)

Introduce conf_clear_redist_list() (from ospfd) and use it in all 3 procs.

ok benno@

Revision 1.39 / (download) - annotate - [select for diffs], Sat Dec 29 16:04:31 2018 UTC (5 years, 5 months ago) by remi
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.38: +3 -2 lines
Diff to previous 1.38 (colored)

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

OK denis@

Revision 1.38 / (download) - annotate - [select for diffs], Sat Sep 1 19:21:10 2018 UTC (5 years, 9 months ago) by remi
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.37: +3 -1 lines
Diff to previous 1.37 (colored)

Prevent ospf6d from starting when another process is listening on the
control socket.

ok florian@

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jul 12 13:45:03 2018 UTC (5 years, 10 months ago) by remi
Branch: MAIN
Changes since 1.36: +5 -3 lines
Diff to previous 1.36 (colored)

Add support for rdomains.

small quirk from tb@
ok phessler@

Revision 1.36 / (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.35: +5 -1 lines
Diff to previous 1.35 (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.35 / (download) - annotate - [select for diffs], Thu Feb 8 00:18:20 2018 UTC (6 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

Bump the read sockbuf of the routing socket to 2MB, may help reduce some of
the desync cases. OK benno@

Revision 1.34 / (download) - annotate - [select for diffs], Sat Aug 12 16:27:50 2017 UTC (6 years, 9 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored)

bring ospf6d's log.c in sync with ospfd and bgpd
ok florian@ claudio@

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jun 19 19:55:57 2017 UTC (6 years, 11 months ago) by friehm
Branch: MAIN
Changes since 1.32: +2 -3 lines
Diff to previous 1.32 (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.32 / (download) - annotate - [select for diffs], Tue May 30 12:42:31 2017 UTC (7 years ago) by friehm
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

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

OK bluhm@

Revision 1.31 / (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.30: +2 -6 lines
Diff to previous 1.30 (colored)

Replace struct rroute with struct kroute, as done in ospfd

ok claudio@

Revision 1.30 / (download) - annotate - [select for diffs], Fri Sep 2 14:06:35 2016 UTC (7 years, 9 months ago) by benno
Branch: MAIN
Changes since 1.29: +12 -2 lines
Diff to previous 1.29 (colored)

work on making log.c similar in all daemons:

move daemon-local functions into new logmsg.c, and reduce
the (mostly whitespace) differences so that log.c's can be diffed easily.

ok claudio@, feedback from henning@, deraadt@, reyk@

Revision 1.29 / (download) - annotate - [select for diffs], Sun Sep 27 17:31:50 2015 UTC (8 years, 8 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

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

Revision 1.28 / (download) - annotate - [select for diffs], Mon Mar 25 14:29:35 2013 UTC (11 years, 2 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored)

sync w/ospfd: improve snapshot handling; ok claudio, sthen

Revision 1.27 / (download) - annotate - [select for diffs], Fri Mar 22 14:25:31 2013 UTC (11 years, 2 months ago) by sthen
Branch: MAIN
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

Allow use of an alternative control socket, ported from ospfd. ok claudio@

Revision 1.26 / (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.25: +4 -2 lines
Diff to previous 1.25 (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.25 / (download) - annotate - [select for diffs], Mon Oct 22 07:28:49 2012 UTC (11 years, 7 months ago) by bluhm
Branch: MAIN
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

Unfortunately "ospf6ctl show fib" printed embedded scopes as the
destination addresses still contain them.  To fix that, call
recoverscope() in log_in6addr().  Also log_in6addr_scope() should
not fiddle with the scope itself, put that into a generic function
addscope().
OK claudio@

Revision 1.24 / (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.23: +4 -1 lines
Diff to previous 1.23 (colored)

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

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jul 7 00:36:13 2011 UTC (12 years, 10 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.22: +1 -2 lines
Diff to previous 1.22 (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.22 / (download) - annotate - [select for diffs], Sun Aug 22 21:15:25 2010 UTC (13 years, 9 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.21: +2 -5 lines
Diff to previous 1.21 (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.21 / (download) - annotate - [select for diffs], Thu Jul 1 18:57:21 2010 UTC (13 years, 11 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.20: +10 -1 lines
Diff to previous 1.20 (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.20 / (download) - annotate - [select for diffs], Thu Jun 3 10:00:34 2010 UTC (14 years ago) by bluhm
Branch: MAIN
Changes since 1.19: +1 -2 lines
Diff to previous 1.19 (colored)

The is no md5 authentication in OSPFv3.  Remove some leftovers from
the ospf6d packet lenght calculation.
ok claudio@ stsp@

Revision 1.19 / (download) - annotate - [select for diffs], Tue Dec 22 19:32:36 2009 UTC (14 years, 5 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (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.18 / (download) - annotate - [select for diffs], Tue Dec 22 17:54:04 2009 UTC (14 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (colored)

Link local addressing strikes again. Include ifindex in all nexthop
definitions so that we have a chance to build a correct nexthop.
Insane that a struct in6_addr is unable to fully specify an IPv6 address.
kroute.c still needs fixing but now the rib is starting to make sense.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Nov 2 20:24:58 2009 UTC (14 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)

Add IMSG_CTL_LOG_VERBOSE similar to ospfd it allows to toggle debug logging.
henning, sthen, michele like the idea

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jun 6 18:31:42 2009 UTC (14 years, 11 months ago) by pyr
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Get ready for including imsg.h from a lib, when it comes along.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Jun 6 09:02:46 2009 UTC (14 years, 11 months ago) by eric
Branch: MAIN
Changes since 1.14: +11 -72 lines
Diff to previous 1.14 (colored)

make ospf6ctl/ospf6d imsg-in-a-lib ready too.

ospf6ctl is already broken in tree (not connected to build).

ok pyr@

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jan 28 22:47:36 2009 UTC (15 years, 4 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

Teach ospf6d to originate Intra-Area-Prefix LSAs, which associate a list
of IPv6 prefixes with a Network LSA (there's another type of this LSA which
associates prefixes with a Router LSA -- this remains to be done).
Add what is necessary to allow ospf6ctl to read the new LSA type via IMSG.
ok claudio@

Revision 1.13 / (download) - annotate - [select for diffs], Tue Dec 30 21:31:54 2008 UTC (15 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

First try at originating Link (type-8) LSA. Code is wrong and the initial
LSA is lost in lsa_flood. Put this in because it goes in the right direction
and ospf6d is work in progress. Add necessary framework so that we can print
Link LSA in ospf6ctl.
Diff mostly from stsp@ ospf6ctl part by myself

Revision 1.12 / (download) - annotate - [select for diffs], Thu Dec 13 08:54:05 2007 UTC (16 years, 5 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.11: +30 -27 lines
Diff to previous 1.11 (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.11 / (download) - annotate - [select for diffs], Tue Nov 27 12:23:06 2007 UTC (16 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)

Make lsa_find() find link local LSA by passing the interface instead of the
area as lookup point. Additionally make lsa_dump or actually the code around
it pass all LSA to ospf6ctl. The rde_spf.c are not final.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Nov 27 11:29:34 2007 UTC (16 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (colored)

Monster diff to bring us a bit on track again.
a) implement all (or at least most) lsa_check() cases.
b) classify the LSA scope correctly and add a per interface lsa_tree for
   the link local stuff.
c) implement a function to parse a prefix.

There is still a lot missing currently link local LSA are added to the
interface tree but nothing can access them (lsa_find() and a few friends
need some changes).
OK norby@

Revision 1.9 / (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.8: +10 -9 lines
Diff to previous 1.8 (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.8 / (download) - annotate - [select for diffs], Thu Oct 11 21:29:53 2007 UTC (16 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

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

Revision 1.7 / (download) - annotate - [select for diffs], Thu Oct 11 21:25:37 2007 UTC (16 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored)

No need to store the interface mask. An interface represents a link and is
only addressed via its link local address. All networks on top of it are
handled separately via type 8 Link-LSA.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Oct 11 20:20:44 2007 UTC (16 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.5: +1 -2 lines
Diff to previous 1.5 (colored)

In OSPFv3 auth crypt is no longer (actually all the auth code is gone) so
kill crypt_seq_num as well.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Oct 11 19:10:55 2007 UTC (16 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.4: +1 -2 lines
Diff to previous 1.4 (colored)

Last commit added way to much stuff. Revert the readd of global options.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Oct 11 19:06:41 2007 UTC (16 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

area_ospf_options() should return the options in network byte order.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Oct 11 19:02:47 2007 UTC (16 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

From ospfd:
Bye bye global ospf options. OSPF options are per area (at least the one
flag that we set). So introduce a area_ospf_options() function that will
return the correct flags for each area. This makes stub area support a lot
easier.
Don't check for OSPF_OPTION_E in the parent. OSPF_OPTION_E is per area and
so the parent process has no way to know if it should redistribute or not.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Oct 9 06:12:04 2007 UTC (16 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

The router dead_interval switched from 32bit to a 16bit value in OSPFv3.
OK norby@

Revision 1.1 / (download) - annotate - [select for diffs], Mon Oct 8 10:44:50 2007 UTC (16 years, 7 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.