Thanks to visit codestin.com
Credit goes to cvsweb.openbsd.org

OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.23 / (download) - annotate - [select for diffs], Wed Jun 21 07:45:47 2023 UTC (2 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_7_BASE, OPENBSD_7_7, OPENBSD_7_6_BASE, OPENBSD_7_6, OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.22: +5 -4 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 (2 years, 6 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 (3 years, 10 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: +36 -31 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], Wed Jul 15 14:47:41 2020 UTC (5 years, 2 months ago) by denis
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.19: +1 -3 lines
Diff to previous 1.19 (colored)

Remove unused variables

Revision 1.19 / (download) - annotate - [select for diffs], Fri Jan 3 17:26:16 2020 UTC (5 years, 8 months ago) by denis
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.18: +48 -41 lines
Diff to previous 1.18 (colored)

Sync with ospfd's database.c

OK remi@

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

Area is now part of struct iface

OK remi@

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

Convert sendto() to sendmsg().

This makes code similar to ospfd(8).

OK claudio@ deraadt@

Revision 1.16 / (download) - annotate - [select for diffs], Fri May 10 13:50:34 2019 UTC (6 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

When calculating how much payload ospf6d can put into DD and LSREQ packets
substract the size of the IPv6 header and not the IPv4 header from the MTU.
This stops ospf6d to send out fragmented packets.
Found with and OK benno@

Revision 1.15 / (download) - annotate - [select for diffs], Sat Oct 25 03:23:49 2014 UTC (10 years, 11 months ago) by lteo
Branch: MAIN
CVS Tags: 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.14: +1 -2 lines
Diff to previous 1.14 (colored)

Remove unnecessary netinet/in_systm.h include.

ok millert@

Revision 1.14 / (download) - annotate - [select for diffs], Mon Mar 25 14:29:34 2013 UTC (12 years, 6 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.13: +0 -0 lines
Diff to previous 1.13 (colored)

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

Revision 1.13 / (download) - annotate - [select for diffs], Mon Mar 25 14:26:16 2013 UTC (12 years, 6 months ago) by markus
Branch: MAIN
Changes since 1.12: +1 -2 lines
Diff to previous 1.12 (colored)

sync w/ospfd: the event NBR_EVT_SEQ_NUM_MIS is not defined in state
NBR_STA_XSTRT; ok claudio@ sthen@

Revision 1.12 / (download) - annotate - [select for diffs], Mon May 2 08:59:58 2011 UTC (14 years, 4 months ago) by claudio
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
Changes since 1.11: +4 -3 lines
Diff to previous 1.11 (colored)

Sync with ospfd/database.c

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jun 3 10:00:34 2010 UTC (15 years, 3 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.10: +3 -4 lines
Diff to previous 1.10 (colored)

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

Revision 1.10 / (download) - annotate - [select for diffs], Wed May 26 13:56:08 2010 UTC (15 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.9: +8 -8 lines
Diff to previous 1.9 (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.9 / (download) - annotate - [select for diffs], Sun Dec 28 20:08:31 2008 UTC (16 years, 8 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (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.8 / (download) - annotate - [select for diffs], Sun Dec 28 17:44:45 2008 UTC (16 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.7: +4 -5 lines
Diff to previous 1.7 (colored)

Correctly sync the FSM by issuing the NBR_EVT_NEG_DONE event before sending
possible database desciption files to the RDE. NBR_EVT_NEG_DONE sends an
imsg to the RDE to bring the RDE in the correct state for the database
exchange when doing this the wrong way the RDE will issue errors.
From ospfd (rev. 1.23 of database.c) via Stefan Sperling

Revision 1.7 / (download) - annotate - [select for diffs], Mon Feb 11 13:48:39 2008 UTC (17 years, 7 months ago) by norby
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, 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 (17 years, 9 months ago) by claudio
Branch: MAIN
Changes since 1.5: +2 -2 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], Thu Oct 11 19:06:41 2007 UTC (17 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.4: +3 -1 lines
Diff to previous 1.4 (colored)

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

Revision 1.4 / (download) - annotate - [select for diffs], Thu Oct 11 19:02:47 2007 UTC (17 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (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.3 / (download) - annotate - [select for diffs], Thu Oct 11 18:43:42 2007 UTC (17 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.2: +31 -30 lines
Diff to previous 1.2 (colored)

From ospfd:
Do not overload nbr->options with the dd exchange bits. nbr->options is used
by the hello protocol. Instead add a dd_more flag that is used together with
(the renamed) dd_master flag.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Oct 10 14:09:25 2007 UTC (17 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.1: +5 -9 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 (17 years, 11 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.