OpenBSD CVS

CVS log for src/usr.sbin/ospf6d/ospfe.h


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.26 / (download) - annotate - [select for diffs], Sat May 18 11:17:30 2024 UTC (3 weeks ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.25: +1 -4 lines
Diff to previous 1.25 (colored)

remove prototypes with no matching function; ok claudio@

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jan 19 09:43:40 2021 UTC (3 years, 4 months ago) by claudio
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, 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.24: +1 -3 lines
Diff to previous 1.24 (colored)

Like in ospfd use a static pkt_ptr buffer.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jan 19 09:42:11 2021 UTC (3 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (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.23 / (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_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (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.22 / (download) - annotate - [select for diffs], Sat Dec 28 09:25:24 2019 UTC (4 years, 5 months ago) by denis
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Refactor link state ack/req.

OK remi@

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

Scale send buffer on socket.

OK remi@

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

Convert sendto() to sendmsg().

This makes code similar to ospfd(8).

OK claudio@ deraadt@

Revision 1.19 / (download) - annotate - [select for diffs], Sat Oct 25 03:23:49 2014 UTC (9 years, 7 months ago) by lteo
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, 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.18: +1 -2 lines
Diff to previous 1.18 (colored)

Remove unnecessary netinet/in_systm.h include.

ok millert@

Revision 1.18 / (download) - annotate - [select for diffs], Mon Mar 25 14:29:35 2013 UTC (11 years, 2 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.17: +2 -1 lines
Diff to previous 1.17 (colored)

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

Revision 1.17 / (download) - annotate - [select for diffs], Sun Aug 22 20:27:52 2010 UTC (13 years, 9 months ago) by bluhm
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, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)

Origin network-LSA with options based on the options of the link-LSAs.
Without this fix Cisco's OSPF 6 ignores our network-LSAs.
ok claudio@

Revision 1.16 / (download) - annotate - [select for diffs], Wed May 26 13:56:08 2010 UTC (14 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (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.15 / (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_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.14: +3 -2 lines
Diff to previous 1.14 (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.14 / (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.13: +1 -2 lines
Diff to previous 1.13 (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.13 / (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.12: +2 -1 lines
Diff to previous 1.12 (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.12 / (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.11: +2 -2 lines
Diff to previous 1.11 (colored)

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

Revision 1.11 / (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.10: +2 -1 lines
Diff to previous 1.10 (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.10 / (download) - annotate - [select for diffs], Sun Dec 28 17:56:16 2008 UTC (15 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

Send the interface index in the correct byte order and add iface_id to
struct nbr to identify the neighbors correclty.
From Stefan Sperling stsp (at) stsp.name

Revision 1.9 / (download) - annotate - [select for diffs], Thu Dec 13 08:54:05 2007 UTC (16 years, 5 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.8: +3 -4 lines
Diff to previous 1.8 (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.8 / (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.7: +2 -2 lines
Diff to previous 1.7 (colored)

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

Revision 1.7 / (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.6: +1 -2 lines
Diff to previous 1.6 (colored)

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

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

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

Revision 1.5 / (download) - annotate - [select for diffs], Thu Oct 11 18:43:42 2007 UTC (16 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.4: +3 -2 lines
Diff to previous 1.4 (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.4 / (download) - annotate - [select for diffs], Wed Oct 10 14:09:25 2007 UTC (16 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (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.3 / (download) - annotate - [select for diffs], Tue Oct 9 06:26:47 2007 UTC (16 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Remaining bit of last night work. Make packet reception use all the goodies
introduced (checksumming is no longer needed, no IP header checking is needed,
get a in6_pktinfo with the ifindex and dest addr, cleanup and remove a lot
of other code). With this ospf6d is able to send and receive first hello
packets.  OK norby@

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: +3 -3 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.