OpenBSD CVS

CVS log for src/usr.sbin/ospfd/lsreq.c


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

Request diff between arbitrary revisions


Default branch: MAIN


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

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.23 / (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.22: +5 -4 lines
Diff to previous 1.22 (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.22 / (download) - annotate - [select for diffs], Tue Jan 19 09:25:53 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.21: +2 -5 lines
Diff to previous 1.21 (colored)

Use ospfe_imsg_compose_rde() instead of calling imsg_compose_event() with
a local export of iev_rde. Remove the extern in preperation of -fno-common
cleanup.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jul 15 18:26:39 2019 UTC (4 years, 10 months ago) by remi
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.20: +5 -5 lines
Diff to previous 1.20 (colored)

Improve logging when sending a packet fails.

OK claudio@

Revision 1.20 / (download) - annotate - [select for diffs], Thu Jan 17 09:02:22 2013 UTC (11 years, 4 months ago) by markus
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, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.19: +4 -2 lines
Diff to previous 1.19 (colored)

the peer might still send more DD messages, even if the RDE has
processed all received DDs (dd_pending == 0), so we need to check
for state != NBR_STA_XCHNG; ok claudio@

Revision 1.19 / (download) - annotate - [select for diffs], Wed May 26 13:56:08 2010 UTC (14 years ago) by nicm
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, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.18: +7 -7 lines
Diff to previous 1.18 (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.18 / (download) - annotate - [select for diffs], Sat Jun 6 07:31:26 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.17: +3 -3 lines
Diff to previous 1.17 (colored)

sync ospfctl/ospfd with the common imsg code, making it lib ready as well.

"looks ok" claudio@

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jun 5 19:33:59 2009 UTC (15 years ago) by pyr
Branch: MAIN
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored)

make ospfd's imsg lib ready as well.
ok claudio@

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jan 31 11:44:49 2009 UTC (15 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

Implement buf_left() to make some some more buffer handling easier.
buf_left() returns the bytes left in a buffer. This makes the check to
keep MD5_DIGEST_LENGTH bytes unallocated in some messages easier.
From the buf cleanup diff that was OK norby@ and henning@

Revision 1.15 / (download) - annotate - [select for diffs], Sat Jan 31 08:55:00 2009 UTC (15 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Pass the buffer to send_packet() instead of spliting it up. This removes
some direct access to struct buf internals in the rest of ospfe.
Based on a larger buffer cleanup diff that was OK norby@ henning@

Revision 1.14 / (download) - annotate - [select for diffs], Mon Mar 13 09:36:06 2006 UTC (18 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.13: +11 -9 lines
Diff to previous 1.13 (colored)

The return value of the start/stop timer functions is almost never checked.
Switch them to void functions and check if evtimer_add/del fails -- in which
case we fatal() as there is no useful way to recover in such an event.
OK norby@

Revision 1.13 / (download) - annotate - [select for diffs], Thu Mar 9 13:34:19 2006 UTC (18 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (colored)

Mark event callbacks with ARGSUSED to silence lint.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Feb 10 18:30:47 2006 UTC (18 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.11: +2 -3 lines
Diff to previous 1.11 (colored)

ospfd does not need fd passing via the imsg framework so remove that code
and remove other unneeded functions that are only used in bgpd.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Dec 15 20:39:33 2005 UTC (18 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.10: +1 -2 lines
Diff to previous 1.10 (colored)

No need to call the nbr_fsm for unexpected LS requests. The RFC tells to
just ignore thos packets. OK norby@

Revision 1.10 / (download) - annotate - [select for diffs], Thu May 26 20:05:29 2005 UTC (19 years ago) by norby
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.9: +1 -10 lines
Diff to previous 1.9 (colored)

Remove unneeded debug messages from LS request.

Revision 1.9 / (download) - annotate - [select for diffs], Thu May 26 19:54:49 2005 UTC (19 years ago) by norby
Branch: MAIN
Changes since 1.8: +1 -4 lines
Diff to previous 1.8 (colored)

Simplify and cleanup passive interface handling.

ok claudio@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Apr 12 09:47:30 2005 UTC (19 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

spaces

Revision 1.7 / (download) - annotate - [select for diffs], Tue Apr 5 13:01:22 2005 UTC (19 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.6: +24 -23 lines
Diff to previous 1.6 (colored)

Use the dynamic buffer API for packet generation and sending.
OK norby@

Revision 1.6 / (download) - annotate - [select for diffs], Wed Mar 23 20:36:57 2005 UTC (19 years, 2 months ago) by claudio
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

mini KNF

Revision 1.5 / (download) - annotate - [select for diffs], Tue Mar 22 22:13:48 2005 UTC (19 years, 2 months ago) by norby
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Remove bool cruft.

ok claudio@

Revision 1.4 / (download) - annotate - [select for diffs], Thu Feb 10 14:05:48 2005 UTC (19 years, 4 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Work around a timing issue in the db exchange phase. The DB description
packets comming from the net are looped through the RDE and may get
delayed because of this. The result is that the neighbor FSM ends in
state FULL instead of LOADING and so the LSDB is not correctly
synchronized. Issue found by norby@ OK norby@

Revision 1.3 / (download) - annotate - [select for diffs], Wed Feb 2 19:15:07 2005 UTC (19 years, 4 months ago) by henning
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

KNF

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jan 28 17:53:33 2005 UTC (19 years, 4 months ago) by norby
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Change my email address to the OpenBSD one since Ericsson has nothing to
do with this software, just happend to be my only valid email address at
the time.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Jan 28 14:05:40 2005 UTC (19 years, 4 months ago) by claudio
Branch: MAIN

Welcome ospfd
started by Esben Norby some time ago by using the imsg/three process framework
of bgpd. He implemented the basic concept plus the ospf finite state machines.
Later I joined and helped him cleanup, debug and extend his work.
Right now it is not particularly useful, major parts are still missing but is
imported to allow more people to work on it.
status:
The basic protocol works for broadcast networks and the LS database is
synchronized and updated. It is not possible to be DR or BDR on a network
and other interface types like point-to-point are not yet supported.
The shortest path tree is not calculated and so no routing information is
exchanged with the kernel FIB.

Not yet connected to the builds.
OK henning@

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.