OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.32 / (download) - annotate - [select for diffs], Wed Jun 21 09:47:03 2023 UTC (11 months, 2 weeks ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (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.31 / (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.30: +1 -3 lines
Diff to previous 1.30 (colored)

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.30 / (download) - annotate - [select for diffs], Tue Jan 19 09:42:11 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.29: +12 -2 lines
Diff to previous 1.29 (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.29 / (download) - annotate - [select for diffs], Wed Sep 16 20:50:10 2020 UTC (3 years, 8 months ago) by remi
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.28: +2 -5 lines
Diff to previous 1.28 (colored)

Stop removing the control socket on exit and tighten the unveil even
further. This is in line with what other networking daemons do.

ok mestre@

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

Cleanup control.

"Looks fine" deraadt@

Revision 1.27 / (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_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.26: +29 -4 lines
Diff to previous 1.26 (colored)

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

ok florian@

Revision 1.26 / (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.25: +2 -2 lines
Diff to previous 1.25 (colored)

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

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jan 8 23:04:42 2017 UTC (7 years, 5 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.24: +9 -7 lines
Diff to previous 1.24 (colored)

Replace hand-rolled for(;;) traversal of ctl_conns TAILQ with
TAILQ_FOREACH().

No intentional functional change.

ok reyk@

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

EAGAIN handling for imsg_read. OK henning@ benno@

Revision 1.23 / (download) - annotate - [select for diffs], Tue Feb 10 05:39:10 2015 UTC (9 years, 3 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.22: +5 -24 lines
Diff to previous 1.22 (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.22 / (download) - annotate - [select for diffs], Fri Jul 11 16:43:33 2014 UTC (9 years, 11 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Close the control fd when it has reported EOF.

ok henning@

Revision 1.21 / (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.20: +2 -2 lines
Diff to previous 1.20 (colored)

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

"do it" deraadt@

Revision 1.20 / (download) - annotate - [select for diffs], Fri Mar 22 14:25:31 2013 UTC (11 years, 2 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.19: +11 -10 lines
Diff to previous 1.19 (colored)

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

Revision 1.19 / (download) - annotate - [select for diffs], Mon Mar 11 17:40:11 2013 UTC (11 years, 3 months ago) by deraadt
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

handle ECONNABORTED errors from accept().  In many code blocks they can be
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are.
ok's from various maintainers of these directories...

Revision 1.18 / (download) - annotate - [select for diffs], Wed Apr 11 08:33:53 2012 UTC (12 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.17: +2 -3 lines
Diff to previous 1.17 (colored)

delete excessive evtimer_pending; ok claudio

Revision 1.17 / (download) - annotate - [select for diffs], Tue Apr 10 07:56:50 2012 UTC (12 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +27 -3 lines
Diff to previous 1.16 (colored)

Handle file descriptor exhaustion in the accept() case.
ok claudio

Revision 1.16 / (download) - annotate - [select for diffs], Thu Jul 1 19:47:04 2010 UTC (13 years, 11 months ago) by bluhm
Branch: MAIN
CVS Tags: 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.15: +2 -2 lines
Diff to previous 1.15 (colored)

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

Revision 1.15 / (download) - annotate - [select for diffs], Fri May 14 11:52:19 2010 UTC (14 years ago) by claudio
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

Use calloc() instead of malloc() to allocate the connection structure. This
way the memory is zeroed. This is equivalent to the relayd commit by reyk.
OK reyk, jsg

Revision 1.14 / (download) - annotate - [select for diffs], Sun Feb 21 20:53:20 2010 UTC (14 years, 3 months ago) by michele
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.13: +1 -3 lines
Diff to previous 1.13 (colored)

Kill double declaration of control_imsg_relay().

From Christiano F. Haesbaert.

ok claudio@

Revision 1.13 / (download) - annotate - [select for diffs], Tue Dec 8 15:54:50 2009 UTC (14 years, 6 months ago) by jsg
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

porcesses -> processes

Revision 1.12 / (download) - annotate - [select for diffs], Wed Dec 2 19:10:02 2009 UTC (14 years, 6 months ago) by mk
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

log_warn() consistency.

`OK' claudio

Revision 1.11 / (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.10: +18 -4 lines
Diff to previous 1.10 (colored)

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

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

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

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

ok pyr@

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

Remove redundant imsg_event_add calls; ok claudio@

Revision 1.8 / (download) - annotate - [select for diffs], Sun May 31 17:00:40 2009 UTC (15 years ago) by claudio
Branch: MAIN
Changes since 1.7: +5 -9 lines
Diff to previous 1.7 (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.7 / (download) - annotate - [select for diffs], Wed Feb 25 17:09:55 2009 UTC (15 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.6: +4 -2 lines
Diff to previous 1.6 (colored)

Fix an invalid pointer dereference in control_close(). If control_connbyfd()
fails -- which should never happen -- the function does not return and is
accession the NULL set control pointer later on.
Found by Matthew Haub. OK deraadt@

Revision 1.6 / (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.5: +2 -1 lines
Diff to previous 1.5 (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.5 / (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.4: +2 -1 lines
Diff to previous 1.4 (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.4 / (download) - annotate - [select for diffs], Thu Jan 31 12:17:35 2008 UTC (16 years, 4 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

do not leak confd on malloc failure in control_accept()
found by Igor Zinovik <zinovik@cs.karelia.ru>

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

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

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.