OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.72 / (download) - annotate - [select for diffs], Wed May 15 08:45:03 2024 UTC (3 weeks, 3 days ago) by job
Branch: MAIN
CVS Tags: HEAD
Changes since 1.71: +6 -1 lines
Diff to previous 1.71 (colored)

Mark network control packets with DSCP CS6 (parity with ospfd)

OK claudio@

Revision 1.71 / (download) - annotate - [select for diffs], Wed Dec 13 15:34:43 2023 UTC (5 months, 3 weeks ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored)

Use imsg_get_fd() to access the control fd.
OK tb@

Revision 1.70 / (download) - annotate - [select for diffs], Mon Jul 3 09:51:38 2023 UTC (11 months, 1 week ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE, OPENBSD_7_4
Changes since 1.69: +10 -10 lines
Diff to previous 1.69 (colored)

Use ibuf_data() instead of direct access to ibuf->buf,
use ibuf_size() instead of direct access to ibuf->wpos,
use ibuf_left() in places where the code checks if there is enough
space left in the ibuf.
OK tb@

Revision 1.69 / (download) - annotate - [select for diffs], Wed Jun 21 07:45:47 2023 UTC (11 months, 2 weeks ago) by claudio
Branch: MAIN
Changes since 1.68: +30 -27 lines
Diff to previous 1.68 (colored)

Update ospf6d to use new ibuf api.

This mostly moves away from memcpy(ibuf_seek(buf, off, size), data, size) to
ibuf_set(buf, off, data, size). Also ibuf_reserve() is replaced with
ibuf_add_zero().

OK tb@

Revision 1.68 / (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.67: +1 -4 lines
Diff to previous 1.67 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.67 / (download) - annotate - [select for diffs], Tue Jan 19 09:54:08 2021 UTC (3 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: 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.66: +3 -3 lines
Diff to previous 1.66 (colored)

Make the struct imsgev static. With this ospf6d compiles with -fno-common

Revision 1.66 / (download) - annotate - [select for diffs], Tue Jan 19 09:48:34 2021 UTC (3 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.65: +10 -10 lines
Diff to previous 1.65 (colored)

Like in ospfd rename nconf to noeconf in the ospf engine to remove
a common symbol.

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jan 19 09:43:40 2021 UTC (3 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.64: +1 -5 lines
Diff to previous 1.64 (colored)

Like in ospfd use a static pkt_ptr buffer.

Revision 1.64 / (download) - annotate - [select for diffs], Tue Jan 19 09:42:11 2021 UTC (3 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.63: +2 -4 lines
Diff to previous 1.63 (colored)

Do the same control cleanup as in ospfd. Move control_state and ctl_conns
into control.c nothing outside needs access to this.

Revision 1.63 / (download) - annotate - [select for diffs], Sat May 16 15:54:12 2020 UTC (4 years ago) by denis
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.62: +1 -15 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], Sat May 16 15:53:03 2020 UTC (4 years ago) by denis
Branch: MAIN
Changes since 1.61: +1 -13 lines
Diff to previous 1.61 (colored)

IMSG_IFADD is never used, wipe it

OK remi@

Revision 1.61 / (download) - annotate - [select for diffs], Thu Jan 2 10:16:46 2020 UTC (4 years, 5 months ago) by denis
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.60: +4 -15 lines
Diff to previous 1.60 (colored)

Rename orig_rtr_lsa_area() to orig_rtr_lsa()

Now that area is part of iface, original orig_rtr_lsa() is useless. Also
verifying that area != NULL is not needed in some cases (these are
leftovers of the previous diff).

OK remi@

Revision 1.60 / (download) - annotate - [select for diffs], Wed Jan 1 10:09:34 2020 UTC (4 years, 5 months ago) by denis
Branch: MAIN
Changes since 1.59: +1 -5 lines
Diff to previous 1.59 (colored)

Cleanup control.

"Looks fine" deraadt@

Revision 1.59 / (download) - annotate - [select for diffs], Sat Dec 28 09:25:24 2019 UTC (4 years, 5 months ago) by denis
Branch: MAIN
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

Refactor link state ack/req.

OK remi@

Revision 1.58 / (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.57: +10 -15 lines
Diff to previous 1.57 (colored)

Area is now part of struct iface

OK remi@

Revision 1.57 / (download) - annotate - [select for diffs], Sun Dec 22 15:34:52 2019 UTC (4 years, 5 months ago) by denis
Branch: MAIN
Changes since 1.56: +2 -2 lines
Diff to previous 1.56 (colored)

Scale send buffer on socket.

OK remi@

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

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

ok benno@

Revision 1.55 / (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_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.54: +13 -6 lines
Diff to previous 1.54 (colored)

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

ok florian@

Revision 1.54 / (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.53: +2 -2 lines
Diff to previous 1.53 (colored)

Add support for rdomains.

small quirk from tb@
ok phessler@

Revision 1.53 / (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.52: +35 -5 lines
Diff to previous 1.52 (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.52 / (download) - annotate - [select for diffs], Tue Jul 10 21:21:56 2018 UTC (5 years, 11 months ago) by friehm
Branch: MAIN
Changes since 1.51: +4 -1 lines
Diff to previous 1.51 (colored)

pledge(2)

Looks great! deraadt@
OK florian
OK remi@

Revision 1.51 / (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_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.50: +8 -2 lines
Diff to previous 1.50 (colored)

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

Revision 1.50 / (download) - annotate - [select for diffs], Thu Dec 22 22:56:52 2016 UTC (7 years, 5 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.49: +12 -4 lines
Diff to previous 1.49 (colored)

Don't run the FSM if the interface state hasn't changed.

ok benno@ claudio@

Revision 1.49 / (download) - annotate - [select for diffs], Sat Sep 3 10:25:36 2016 UTC (7 years, 9 months ago) by renato
Branch: MAIN
Changes since 1.48: +11 -7 lines
Diff to previous 1.48 (colored)

Simplify shutdown process.

On shutdown, there's no need to use kill(2) to kill the child
processes. Just closing the IPC sockets will make the children receive
an EOF, break out from the event loop and then exit.

Tha advantages of this "pipe teardown" are:
* simpler code;
* no need to pledge "proc" in the parent process;
* removal of a (hard to trigger) PID reuse race condition.

ok benno@ claudio@

Revision 1.48 / (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.47: +2 -1 lines
Diff to previous 1.47 (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.47 / (download) - annotate - [select for diffs], Sat Dec 5 13:12:41 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.46: +5 -5 lines
Diff to previous 1.46 (colored)

EAGAIN handling for imsg_read. OK henning@ benno@

Revision 1.46 / (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.45: +2 -2 lines
Diff to previous 1.45 (colored)

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

Revision 1.45 / (download) - annotate - [select for diffs], Tue Feb 10 05:39:10 2015 UTC (9 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (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.44 / (download) - annotate - [select for diffs], Tue Nov 18 20:54:28 2014 UTC (9 years, 6 months ago) by krw
Branch: MAIN
Changes since 1.43: +1 -2 lines
Diff to previous 1.43 (colored)

Nuke more obvious #include duplications.

ok deraadt@ millert@ tedu@

Revision 1.43 / (download) - annotate - [select for diffs], Sat Jul 12 20:16:38 2014 UTC (9 years, 10 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.42: +7 -3 lines
Diff to previous 1.42 (colored)

Close connections when msgbuf_write() returns 0.

ok claudio@

Revision 1.42 / (download) - annotate - [select for diffs], Wed Nov 13 20:49:49 2013 UTC (10 years, 6 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

handle msgbuf_write() returning EAGAIN,
taken from claudios previous fix to ospfd.

"do it" deraadt@

Revision 1.41 / (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_4_BASE, OPENBSD_5_4
Changes since 1.40: +15 -3 lines
Diff to previous 1.40 (colored)

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

Revision 1.40 / (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.39: +2 -2 lines
Diff to previous 1.39 (colored)

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

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

typo in comment

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

Fix trailing whitespaces.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jul 7 17:10:48 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.36: +4 -3 lines
Diff to previous 1.36 (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.36 / (download) - annotate - [select for diffs], Thu Jul 7 04:13:23 2011 UTC (12 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.35: +8 -8 lines
Diff to previous 1.35 (colored)

KNF

Revision 1.35 / (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.34: +3 -3 lines
Diff to previous 1.34 (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.34 / (download) - annotate - [select for diffs], Mon May 2 09:24:00 2011 UTC (13 years, 1 month ago) by claudio
Branch: MAIN
Changes since 1.33: +14 -11 lines
Diff to previous 1.33 (colored)

Some cleanup, some KNF and sync non functional differences with
ospfd's version.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Aug 22 20:27:52 2010 UTC (13 years, 9 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.32: +15 -2 lines
Diff to previous 1.32 (colored)

Origin network-LSA with options based on the options of the link-LSAs.
Without this fix Cisco's OSPF 6 ignores our network-LSAs.
ok claudio@

Revision 1.32 / (download) - annotate - [select for diffs], Tue Jul 6 13:15:32 2010 UTC (13 years, 11 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.31: +15 -15 lines
Diff to previous 1.31 (colored)

Use the static variable narea only where needed for config reload.
The other imessages use the stack variables area and iface.
ok claudio@

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

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

Revision 1.30 / (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.29: +47 -1 lines
Diff to previous 1.29 (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.29 / (download) - annotate - [select for diffs], Wed May 26 13:56:08 2010 UTC (14 years ago) by nicm
Branch: MAIN
Changes since 1.28: +44 -44 lines
Diff to previous 1.28 (colored)

Rename some imsg bits to make namespace collisions less likely buf to
ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE.

ok henning gilles claudio jacekm deraadt

Revision 1.28 / (download) - annotate - [select for diffs], Sat Jun 6 09:02:46 2009 UTC (15 years ago) by eric
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.27: +47 -41 lines
Diff to previous 1.27 (colored)

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

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

ok pyr@

Revision 1.27 / (download) - annotate - [select for diffs], Sun May 31 20:29:56 2009 UTC (15 years ago) by jacekm
Branch: MAIN
Changes since 1.26: +1 -3 lines
Diff to previous 1.26 (colored)

Remove redundant imsg_event_add calls; ok claudio@

Revision 1.26 / (download) - annotate - [select for diffs], Sun May 31 17:00:40 2009 UTC (15 years ago) by claudio
Branch: MAIN
Changes since 1.25: +7 -15 lines
Diff to previous 1.25 (colored)

libevent handler fix to allow EV_READ and EV_WRITE to be set at the same
time in the callback. Same diff that went into ospfd applied with some
fuzz.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Mar 29 19:02:58 2009 UTC (15 years, 2 months ago) by stsp
Branch: MAIN
Changes since 1.24: +8 -8 lines
Diff to previous 1.24 (colored)

Now that struct lsa_net represents just the options, orig_net_lsa()
can make use of it much better. No functional change.

ok claudio@

Revision 1.24 / (download) - annotate - [select for diffs], Thu Feb 19 22:08:14 2009 UTC (15 years, 3 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.23: +1 -104 lines
Diff to previous 1.23 (colored)

Remove origination of Intra-Area-Prefix LSAs from ospfe.
Will soon be done in rde instead.

"Sure but don't wait too long before readding the code in rde" claudio@

Revision 1.23 / (download) - annotate - [select for diffs], Tue Feb 10 17:32:58 2009 UTC (15 years, 4 months ago) by stsp
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

Fix two obvious copy-paste errors in fatal error messages. We were
printing IFINFO while we are actually handling an IFDELETE imsg.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Feb 3 14:12:22 2009 UTC (15 years, 4 months ago) by stsp
Branch: MAIN
Changes since 1.21: +4 -2 lines
Diff to previous 1.21 (colored)

In Intra-Area-Prefix LSAs, set the LA-bit for all prefixes of 128-bit
length, regardless of interface type.
Allowed by RFC5340 and ok claudio@

Revision 1.21 / (download) - annotate - [select for diffs], Tue Feb 3 14:02:01 2009 UTC (15 years, 4 months ago) by stsp
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Formatting fixes.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Jan 29 20:15:50 2009 UTC (15 years, 4 months ago) by stsp
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Correctly byte-swap the link state ID when building Intra-Area-Prefix
LSAs which refer to Router LSAs.
ok claudio@

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jan 29 19:07:53 2009 UTC (15 years, 4 months ago) by stsp
Branch: MAIN
Changes since 1.18: +104 -2 lines
Diff to previous 1.18 (colored)

Originate Intra-Area-Prefix LSAs which reference a router LSA.
Routers can now advertise prefixes with global scope throughout
an area. This paves the way towards doing SPF calculations to
generate routing tables for a single area.
ok claudio@

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jan 28 22:47:36 2009 UTC (15 years, 4 months ago) by stsp
Branch: MAIN
Changes since 1.17: +2 -1 lines
Diff to previous 1.17 (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.17 / (download) - annotate - [select for diffs], Sat Jan 3 00:18:51 2009 UTC (15 years, 5 months ago) by stsp
Branch: MAIN
Changes since 1.16: +16 -5 lines
Diff to previous 1.16 (colored)

orig_link_lsa() was assuming either virtual or broadcast link.
Make it handle other types of links, too.
ok claudio@

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jan 2 21:05:26 2009 UTC (15 years, 5 months ago) by stsp
Branch: MAIN
Changes since 1.15: +5 -27 lines
Diff to previous 1.15 (colored)

Add support for originating router LSAs over point-to-point links.
OK claudio@

Revision 1.15 / (download) - annotate - [select for diffs], Tue Dec 30 22:51:52 2008 UTC (15 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.14: +1 -2 lines
Diff to previous 1.14 (colored)

Remove debug message that does not help. The problem with the initial flood
of the Link LSA is still not solved though.

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

Correctly encode the IPv6 prefix. Only (prefixlen + 31)/32 * 4 bytes are
attached to the LSA (saves 8 to 12 bytes per prefix and makes our life
more interesting or complex).

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

Correctly compute the options for the net LSA as pre RFC options is set to
the or-ed result of all active neighbors. freaky...
Discussed with stsp@

Revision 1.12 / (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.11: +90 -2 lines
Diff to previous 1.11 (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.11 / (download) - annotate - [select for diffs], Sun Dec 28 21:22:14 2008 UTC (15 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.10: +13 -7 lines
Diff to previous 1.10 (colored)

Initial bits for originating net lsa again from Stefan Sperling with some
changes by myself.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Dec 28 20:08:31 2008 UTC (15 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

area_ospf_options() should not return network byte order options. Instead
the callers should take care of getting the byte order right. While there
remove the opts[123] from the hello_hdr and use LSA_24_* to handle this
nasty fields instead. Now router LSA have the correct flags set.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Dec 28 19:36:44 2008 UTC (15 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.8: +25 -56 lines
Diff to previous 1.8 (colored)

First shot at originating router LSA, still a lot of XXX but seems to
work for IF_TYPE_BROADCAST networks.
Initial diff by Stefan Sperling, some additional work by myself

Revision 1.8 / (download) - annotate - [select for diffs], Thu Dec 13 08:54:05 2007 UTC (16 years, 6 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.7: +63 -58 lines
Diff to previous 1.7 (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.7 / (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.6: +2 -1 lines
Diff to previous 1.6 (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.6 / (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.5: +2 -1 lines
Diff to previous 1.5 (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.5 / (download) - annotate - [select for diffs], Sat Oct 13 13:21:56 2007 UTC (16 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

From ospfd: Funny typo, it is fib not fip so adjust function name.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Oct 11 20:01:38 2007 UTC (16 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.3: +5 -1 lines
Diff to previous 1.3 (colored)

Disable some code that is currently far from working and results in frequent
session resets because of bad packets. With this it seems we survive the
hello and database exchange phases. A closer look at the DR and BDR calculation
is still needed.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Oct 11 19:02:47 2007 UTC (16 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.2: +2 -2 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:17:40 2007 UTC (16 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.1: +5 -6 lines
Diff to previous 1.1 (colored)

Instead of IP_RECVIF we use IPV6_RECVPKTINFO to get the ifindex and the
destination address of incomming packets. This also removes the need for
IP_HDRINCL. Additionally use IPV6_CHECKSUM to let the kernel do the
necessary packet checksumming, way easier than doing it in userland.
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.