OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.24 / (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_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (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.23 / (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.22: +8 -7 lines
Diff to previous 1.22 (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.22 / (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.21: +1 -2 lines
Diff to previous 1.21 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.21 / (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.20: +14 -10 lines
Diff to previous 1.20 (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.20 / (download) - annotate - [select for diffs], Tue Jan 19 09:53:11 2021 UTC (3 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.19: +3 -5 lines
Diff to previous 1.19 (colored)

Use ospfe_imsg_compose_rde() instead of exporting iev_rde and using
imsg_compose_event() directly. This is needed to make the imsg event
structures static in ospfe.c, rde.c and ospf6d.c.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jan 12 09:51:10 2021 UTC (3 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Send lsupdate messages to the correct neighbor address on P2P interfaces.
iface->dst is not initalized so instead use nbr->addr (like it is done in
ospfd).
OK benno@

Revision 1.18 / (download) - annotate - [select for diffs], Wed Jul 15 14:47:41 2020 UTC (3 years, 10 months ago) by denis
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (colored)

Remove unused variables

Revision 1.17 / (download) - annotate - [select for diffs], Wed May 6 15:15:31 2020 UTC (4 years, 1 month ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored)

Same fix for ospfd lsupdate.c applies in ospf6d as well.
Do not use the pointer returned by ibuf_reserve() after calling another
ibuf function. After the call the internal buffer may have moved by realloc()
and so the pointer is invalid. Instead use ibuf_size() to get the current
offset in the buffer and use ibuf_seek() later on to write back the updated
lsa age into the buffer at the right spot.
This fixes an issue seen by Richard Chivers on routers with many passive
interfaces.
OK stsp@ denis@ deraadt@ also tested by sthen@

Revision 1.16 / (download) - annotate - [select for diffs], Mon May 4 14:36:51 2020 UTC (4 years, 1 month ago) by denis
Branch: MAIN
Changes since 1.15: +14 -9 lines
Diff to previous 1.15 (colored)

Partially reverse a commit from 2019/12/28

A large number of redistributed routes make ospf6d crash.

OK remi@, sthen@

Revision 1.15 / (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.14: +41 -51 lines
Diff to previous 1.14 (colored)

Refactor link state ack/req.

OK remi@

Revision 1.14 / (download) - annotate - [select for diffs], Wed Dec 11 21:33:56 2019 UTC (4 years, 5 months ago) by denis
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Convert sendto() to sendmsg().

This makes code similar to ospfd(8).

OK claudio@ deraadt@

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jan 28 22:03:17 2015 UTC (9 years, 4 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.12: +9 -2 lines
Diff to previous 1.12 (colored)

When comparing the LSA with the Ack, also check the age field.  This
ensures that a LSA withdrawal is not acked by a previous update.
From Florian Riehm;  OK claudio@

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jan 22 22:09:39 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

remove a stupid -Wstrict-prototype warning by making the hash function
static. noticed by florian riehm

Revision 1.11 / (download) - annotate - [select for diffs], Thu Dec 18 19:27:04 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.10: +13 -6 lines
Diff to previous 1.10 (colored)

simple to use siphash here. ok deraadt

Revision 1.10 / (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_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.9: +0 -0 lines
Diff to previous 1.9 (colored)

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

Revision 1.9 / (download) - annotate - [select for diffs], Mon Mar 25 14:23:47 2013 UTC (11 years, 2 months ago) by markus
Branch: MAIN
Changes since 1.8: +4 -2 lines
Diff to previous 1.8 (colored)

sync w/ ospfd:
for point-to-point interfaces we need to send lsupdates to the
interface address, since there is no DR and multicast messages to
the DR will be ignored.  ok claudio@, then@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jun 8 16:04:25 2010 UTC (14 years ago) by bluhm
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, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.7: +37 -6 lines
Diff to previous 1.7 (colored)

Calculate size of update packet with IPv6 header and reserve space
for IPsec.  Avoid IPv6 fragments where possible.  If a single LSA
is too big, put it into a separate packet with up to IPV6_MAXPACKET
bytes.  This packet may get fragmented by the kernel.
ok stsp@

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jun 3 10:00:34 2010 UTC (14 years ago) by bluhm
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

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

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jun 1 14:39:52 2010 UTC (14 years ago) by bluhm
Branch: MAIN
Changes since 1.5: +15 -3 lines
Diff to previous 1.5 (colored)

With IPv6 OSPF a single LSA can get larger than the MTU.  As a
workaround it is better to drop this LSA with a log entry instead
of sending emtpy update packets in a burst.  As link LSAs cannot
be split, the propper solution might be IPv6 fragments.  See also
RFC5340 Section 4.4.3.8 and Appendix A.1.
ok stsp@

Revision 1.5 / (download) - annotate - [select for diffs], Wed May 26 13:56:08 2010 UTC (14 years ago) by nicm
Branch: MAIN
Changes since 1.4: +17 -17 lines
Diff to previous 1.4 (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.4 / (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.3: +4 -4 lines
Diff to previous 1.3 (colored)

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

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

ok pyr@

Revision 1.3 / (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_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Correct the output of several error and debug messages.

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

send_packet() now takes a struct in6_addr as destination instead of a
struct sockaddr_in6 and builds the struct sockaddr_in6 internaly adding scope
if necessary. While there switch to sendto() we don't need any of the sendmsg()
features here.
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.