History log of /openbsd-src/usr.sbin/ospf6d/interface.c (Results 1 – 25 of 30)
Revision Date Author Comments
# 5b133f3f 08-Mar-2023 guenther <guenther@openbsd.org>

Delete obsolete /* ARGSUSED */ lint comments.

ok miod@ millert@


# 725b3260 27-May-2020 denis <denis@openbsd.org>

Remove unneeded <stddef.h>


# d18517d2 02-Jan-2020 denis <denis@openbsd.org>

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

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@

show more ...


# 77fbfa19 23-Dec-2019 denis <denis@openbsd.org>

Area is now part of struct iface

OK remi@


# 678bb30a 22-Dec-2019 denis <denis@openbsd.org>

Scale send buffer on socket.

OK remi@


# df69c215 28-Jun-2019 deraadt <deraadt@openbsd.org>

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

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.

show more ...


# 5d393f89 12-Jul-2018 remi <remi@openbsd.org>

Add support for rdomains.

small quirk from tb@
ok phessler@


# 9aaef93c 11-Mar-2018 claudio <claudio@openbsd.org>

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@


# 18ffdd94 27-Sep-2015 stsp <stsp@openbsd.org>

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


# ab4d8988 01-Nov-2013 deraadt <deraadt@openbsd.org>

another annoying %i


# 63f9ed24 17-Sep-2012 bluhm <bluhm@openbsd.org>

Fix trailing whitespaces.


# 42176c47 07-Jul-2011 claudio <claudio@openbsd.org>

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.


# 9a2e0324 04-Jul-2011 claudio <claudio@openbsd.org>

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

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.

show more ...


# 4b3b5807 04-Jul-2011 claudio <claudio@openbsd.org>

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@


# 0dc8d668 06-May-2011 claudio <claudio@openbsd.org>

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 dif

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@

show more ...


# 90a39e67 20-Sep-2009 stsp <stsp@openbsd.org>

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 arra

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.

show more ...


# d2afa435 29-Mar-2009 stsp <stsp@openbsd.org>

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@


# cada50a5 19-Feb-2009 stsp <stsp@openbsd.org>

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@


# 2bc51794 19-Feb-2009 stsp <stsp@openbsd.org>

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 b

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@

show more ...


# f3f203f1 29-Jan-2009 stsp <stsp@openbsd.org>

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 r

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@

show more ...


# f0f73935 27-Jan-2009 stsp <stsp@openbsd.org>

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


# d913b22e 30-Dec-2008 claudio <claudio@openbsd.org>

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 fr

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

show more ...


# 6c9e7a5b 13-Dec-2007 claudio <claudio@openbsd.org>

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 compl

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

show more ...


# 4139c605 27-Nov-2007 claudio <claudio@openbsd.org>

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.

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@

show more ...


# 3897a748 24-Nov-2007 claudio <claudio@openbsd.org>

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.


12