OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


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

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@

Revision 1.29 / (download) - annotate - [select for diffs], Wed May 27 09:03:56 2020 UTC (4 years ago) by denis
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, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.28: +1 -2 lines
Diff to previous 1.28 (colored)

Remove unneeded <stddef.h>

Revision 1.28 / (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.27: +5 -5 lines
Diff to previous 1.27 (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.27 / (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.26: +3 -2 lines
Diff to previous 1.26 (colored)

Area is now part of struct iface

OK remi@

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

Scale send buffer on socket.

OK remi@

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:49 2019 UTC (4 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.24: +7 -7 lines
Diff to previous 1.24 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jul 12 13:45:03 2018 UTC (5 years, 10 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.23: +3 -2 lines
Diff to previous 1.23 (colored)

Add support for rdomains.

small quirk from tb@
ok phessler@

Revision 1.23 / (download) - annotate - [select for diffs], Sun Mar 11 13:17:35 2018 UTC (6 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.22: +5 -2 lines
Diff to previous 1.22 (colored)

Increase SO_RCVBUF of the ospf socket to 256k having this buffer can result
in packet loss on busy and big networks and therefor to instability.
From camield@

Revision 1.22 / (download) - annotate - [select for diffs], Sun Sep 27 17:31:50 2015 UTC (8 years, 8 months ago) by stsp
Branch: MAIN
CVS Tags: 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
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

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

Revision 1.21 / (download) - annotate - [select for diffs], Fri Nov 1 17:18:29 2013 UTC (10 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: 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
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

another annoying %i

Revision 1.20 / (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_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Fix trailing whitespaces.

Revision 1.19 / (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.18: +5 -5 lines
Diff to previous 1.18 (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.18 / (download) - annotate - [select for diffs], Mon Jul 4 04:34:14 2011 UTC (12 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.17: +2 -4 lines
Diff to previous 1.17 (colored)

LINK_STATE_IS_UP() cleanup userland part. There is no need to special
case carp(4) interfaces anymore. LINK_STATE_IS_UP() almost always does
the right job.
OK deraadt@ henning@

This needs a -current kernel or link state may be not reported correctly.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jul 4 04:08:34 2011 UTC (12 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.16: +5 -5 lines
Diff to previous 1.16 (colored)

Make sure that passive interfaces (like carp) are added to the
intra-area rtr LSA. Diff initialy made by Patrick Coleman but
simplified by myself. Tested and OK dlg@

Revision 1.16 / (download) - annotate - [select for diffs], Fri May 6 13:48:46 2011 UTC (13 years, 1 month ago) by claudio
Branch: MAIN
Changes since 1.15: +9 -5 lines
Diff to previous 1.15 (colored)

Do not special case loopback interfaces on init. Instead force them
to IF_STA_LOOPBACK in if_act_start() this way they will repsect
IFF_UP on startup. Also mark the interfaces as passive.
Initial diff provided by Patrick Coleman. OK dlg@

Revision 1.15 / (download) - annotate - [select for diffs], Sun Sep 20 20:45:06 2009 UTC (14 years, 8 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.14: +8 -3 lines
Diff to previous 1.14 (colored)

if_new() would treat the new interface as a virtual link if the ifname
parameter was NULL. But it's easy enough to make ifname != NULL by accident,
e.g. by passing a zeroed or even uninitialised array. This function should
accept a 'virtual' flag of some kind instead.
Since we don't even support virtual links yet, change the check to
"if (virtual)", #if 0 the check, and code that depends on it (including
a file-scope variable), and add comments marking this as TODO.

ok claudio, who requested #if 0 instead of deletion.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Mar 29 16:24:38 2009 UTC (15 years, 2 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored)

For SPF calculation, we will need the source address specified
in hello packets by next-hop neighbours. So when notifying the
RDE of a new neighbour, send the source address, too.

ok claudio@

Revision 1.13 / (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.12: +1 -2 lines
Diff to previous 1.12 (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.12 / (download) - annotate - [select for diffs], Thu Feb 19 22:05:32 2009 UTC (15 years, 3 months ago) by stsp
Branch: MAIN
Changes since 1.11: +5 -1 lines
Diff to previous 1.11 (colored)

Sync iface fsm state from ospfe to rde.

Also syncs other fields the ospfe is syncing to when getting
iface updates from parent process.
None of these fields are used by the rde yet, but state will be
important soon, for proper origination of Intra-Area-Prefix LSAs.

ok claudio@

Revision 1.11 / (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.10: +2 -1 lines
Diff to previous 1.10 (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.10 / (download) - annotate - [select for diffs], Tue Jan 27 21:58:28 2009 UTC (15 years, 4 months ago) by stsp
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Propagate the neighbour's interface ID, as received in hello packets,
to the RDE.
ok claudio@

Revision 1.9 / (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.8: +4 -2 lines
Diff to previous 1.8 (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.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: +76 -36 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 11:29:34 2007 UTC (16 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (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.6 / (download) - annotate - [select for diffs], Sat Nov 24 16:35:16 2007 UTC (16 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.5: +5 -5 lines
Diff to previous 1.5 (colored)

Print the neighbor ID instead of the neighbor address in if_act_elect().
Neighbors are identified by ID in OSPF v3 and trying to print a IPv6 addr
as AF_INET was wrong anyway.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Oct 11 21:25:37 2007 UTC (16 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.4: +1 -3 lines
Diff to previous 1.4 (colored)

No need to store the interface mask. An interface represents a link and is
only addressed via its link local address. All networks on top of it are
handled separately via type 8 Link-LSA.

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

In OSPFv3 auth crypt is no longer (actually all the auth code is gone) so
kill crypt_seq_num as well.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Oct 9 06:33:17 2007 UTC (16 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (colored)

Unneeded and to noisy debug output

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: +20 -21 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.