OpenBSD CVS

CVS log for src/usr.sbin/ospf6ctl/ospf6ctl.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.54 / (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.53: +7 -1 lines
Diff to previous 1.53 (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.53 / (download) - annotate - [select for diffs], Tue Dec 27 12:11:39 2022 UTC (17 months, 2 weeks ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.52: +2 -1 lines
Diff to previous 1.52 (colored)

Only print the hello_timer if it is actually running.
Problem reported by Wouter Prins. Initial diff by kn@
OK remi@

Revision 1.52 / (download) - annotate - [select for diffs], Thu Jan 20 14:12:55 2022 UTC (2 years, 4 months ago) by naddy
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.51: +1 -5 lines
Diff to previous 1.51 (colored)

ospf6ctl: fix -Wunused-but-set-variable warning

ok guenther@

Revision 1.51 / (download) - annotate - [select for diffs], Sun Apr 5 18:19:04 2020 UTC (4 years, 2 months ago) by denis
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.50: +4 -4 lines
Diff to previous 1.50 (colored)

Handle connected routes as ospfd(8) does.

OK remi@

Revision 1.50 / (download) - annotate - [select for diffs], Sun May 26 09:27:09 2019 UTC (5 years ago) by remi
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

Allow specifying area by number as well as id. No changes to outputs.

reads OK to kn@
OK denis@

Revision 1.49 / (download) - annotate - [select for diffs], Thu Jul 12 13:45:03 2018 UTC (5 years, 11 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.48: +6 -3 lines
Diff to previous 1.48 (colored)

Add support for rdomains.

small quirk from tb@
ok phessler@

Revision 1.48 / (download) - annotate - [select for diffs], Wed Jun 6 05:51:43 2018 UTC (6 years ago) by remi
Branch: MAIN
Changes since 1.47: +5 -4 lines
Diff to previous 1.47 (colored)

print metric for Intra-Area-Prefix LSAs

ok stsp@ claudio@ jca@

Revision 1.47 / (download) - annotate - [select for diffs], Sun Nov 5 16:56:02 2017 UTC (6 years, 7 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.46: +5 -1 lines
Diff to previous 1.46 (colored)

Disable config reload, ospf6d just exits on reload with simple setups.

And fixing this doesn't appear trivial.  Discussed with a bunch at
p2k17, ok phessler@ denis@ benno@

Revision 1.46 / (download) - annotate - [select for diffs], Sat Aug 12 22:09:54 2017 UTC (6 years, 9 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.45: +4 -1 lines
Diff to previous 1.45 (colored)

fix the else case (i.e. LSA_IS_SCOPE_AS) where header could remain
uninitialized. found by clang.
ok claudio@

Revision 1.45 / (download) - annotate - [select for diffs], Mon Jun 19 19:55:57 2017 UTC (6 years, 11 months ago) by friehm
Branch: MAIN
Changes since 1.44: +4 -2 lines
Diff to previous 1.44 (colored)

Import route priority support from ospfd to ospf6d.
Also remove the RTF_UP flag from hdr.rtm_flags in send_rtmsg() since
ospfd and bgpd don't set the flag.

OK bluhm@ claudio@

Revision 1.44 / (download) - annotate - [select for diffs], Thu Dec 22 23:03:55 2016 UTC (7 years, 5 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.43: +4 -3 lines
Diff to previous 1.43 (colored)

Also print the mtu in detailed interface info.

Copied on the diff from Remi Locherer for ospfctl.  ok benno@ claudio@

Revision 1.43 / (download) - annotate - [select for diffs], Sat Dec 5 13:12:40 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.42: +2 -2 lines
Diff to previous 1.42 (colored)

EAGAIN handling for imsg_read. OK henning@ benno@

Revision 1.42 / (download) - annotate - [select for diffs], Thu Dec 3 17:16:39 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

if_indextoname() was fixed a while back, do not need to pledge "route"
ok claudio

Revision 1.41 / (download) - annotate - [select for diffs], Sat Oct 10 00:19:52 2015 UTC (8 years, 8 months ago) by benno
Branch: MAIN
Changes since 1.40: +4 -1 lines
Diff to previous 1.40 (colored)

pledge("stdio route") needed here, because ipv6
ok deraadt@

Revision 1.40 / (download) - annotate - [select for diffs], Sun Sep 27 17:31:50 2015 UTC (8 years, 8 months ago) by stsp
Branch: MAIN
Changes since 1.39: +11 -11 lines
Diff to previous 1.39 (colored)

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

Revision 1.39 / (download) - annotate - [select for diffs], Sun Sep 13 11:13:12 2015 UTC (8 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.38: +5 -5 lines
Diff to previous 1.38 (colored)

match a few if_media uint64_t conversions; ok miod

Revision 1.38 / (download) - annotate - [select for diffs], Wed Nov 13 22:52:41 2013 UTC (10 years, 6 months ago) by sthen
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.37: +3 -2 lines
Diff to previous 1.37 (colored)

handle msgbuf_write() returning EAGAIN, looks right to deraadt

Revision 1.37 / (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.36: +22 -5 lines
Diff to previous 1.36 (colored)

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

Revision 1.36 / (download) - annotate - [select for diffs], Thu May 5 15:58:53 2011 UTC (13 years, 1 month ago) by claudio
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
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

order static types

Revision 1.35 / (download) - annotate - [select for diffs], Sat Jun 12 09:48:39 2010 UTC (14 years ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

Print additional new line after 'Number of Links' in show database
router.  This separates the router and link blocks like ospfctl.
ok claudio@

Revision 1.34 / (download) - annotate - [select for diffs], Thu Feb 25 16:40:23 2010 UTC (14 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.33: +62 -12 lines
Diff to previous 1.33 (colored)

Fix AS-ext LSA detailed output. While there rework the way we print
prefixes a bit. The output is now a bit more compact.

Revision 1.33 / (download) - annotate - [select for diffs], Tue Feb 23 16:32:55 2010 UTC (14 years, 3 months ago) by claudio
Branch: MAIN
Changes since 1.32: +1 -6 lines
Diff to previous 1.32 (colored)

Unbreak tree. struct lsa_asext changed so we need to adjust the output
function. Correct fix will follow but this compiles again.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Dec 23 18:01:31 2009 UTC (14 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored)

Print more addresses with scope.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Dec 22 17:55:04 2009 UTC (14 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.30: +4 -3 lines
Diff to previous 1.30 (colored)

Use log_in6addr_scope() to print the correct nexthop.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Nov 2 20:25:27 2009 UTC (14 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.29: +13 -2 lines
Diff to previous 1.29 (colored)

Implement "log verbose" and "log brief" to enable or disable verbose debug
logging. henning, sthen, michele like the idea

Revision 1.29 / (download) - annotate - [select for diffs], Mon Sep 14 11:49:25 2009 UTC (14 years, 8 months ago) by claudio
Branch: MAIN
Changes since 1.28: +14 -24 lines
Diff to previous 1.28 (colored)

Switch the various link state printing codes to use the new if_media
independent LINK_STATE_DESCRIPTIONS. Code is now more or less a one to
one copy of get_linkstate() in route/route.c.
OK henning, michele, sthen, deraadt

Revision 1.28 / (download) - annotate - [select for diffs], Tue Jul 28 19:05:22 2009 UTC (14 years, 10 months ago) by claudio
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Track renamed struct member (r1.15 of ospf6d/ospf6.h) to fix compilation.
From stsp@

Revision 1.27 / (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.26: +21 -28 lines
Diff to previous 1.26 (colored)

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

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

ok pyr@

Revision 1.26 / (download) - annotate - [select for diffs], Sun Mar 29 18:31:47 2009 UTC (15 years, 2 months ago) by stsp
Branch: MAIN
Changes since 1.25: +8 -5 lines
Diff to previous 1.25 (colored)

Stop using the att_rtr member of struct lsa_net, we're going to remove it.
Calculate offsets with a struct lsa_net_link pointer instead.

ok claudio@

Revision 1.25 / (download) - annotate - [select for diffs], Sun Mar 29 16:08:23 2009 UTC (15 years, 2 months ago) by stsp
Branch: MAIN
Changes since 1.24: +4 -3 lines
Diff to previous 1.24 (colored)

ospf6ctl had lsa_rtr_link fields mixed up.
It printed iface_id as the neighbour's interface ID, but iface_id is
in fact the ID of the advertising router's interface being described.

ok claudio@

Revision 1.24 / (download) - annotate - [select for diffs], Fri Jan 30 22:23:30 2009 UTC (15 years, 4 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

Add missing free. Found by norby@ in ospfctl, same fix.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jan 29 20:09:02 2009 UTC (15 years, 4 months ago) by stsp
Branch: MAIN
Changes since 1.22: +10 -20 lines
Diff to previous 1.22 (colored)

One more step on the long road of beautifying ospf6ctl output:
The Link State ID in OSPFv3 is just a unique identifier and has
lost its semantic meaning for a most LSA types.
Print the correct semantic meaning for those that still have one,
and don't print any additional information for those that don't.
ok claudio@

Revision 1.22 / (download) - annotate - [select for diffs], Thu Jan 29 19:39:41 2009 UTC (15 years, 4 months ago) by stsp
Branch: MAIN
Changes since 1.21: +4 -1 lines
Diff to previous 1.21 (colored)

Don't print a header line above every individual Intra-Area-Prefix LSA
in the detailed DB output. Now behaves the same as with other LSA types.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Jan 29 16:34:32 2009 UTC (15 years, 4 months ago) by stsp
Branch: MAIN
Changes since 1.20: +5 -3 lines
Diff to previous 1.20 (colored)

Fix offset calculation for lsa_prefix structs.
ok claudio@

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jan 28 22:51:26 2009 UTC (15 years, 4 months ago) by stsp
Branch: MAIN
Changes since 1.19: +35 -1 lines
Diff to previous 1.19 (colored)

Add 'show database intra' command, which displays Intra-Area-Prefix LSAs.
ok claudio@

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jan 28 17:34:15 2009 UTC (15 years, 4 months ago) by stsp
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

Print the right header for Intra-Area-Prefix LSAs when showing the database.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jan 1 23:41:42 2009 UTC (15 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.17: +13 -7 lines
Diff to previous 1.17 (colored)

I removed prefix from lsa_prefix but this code was still using it. Unbreak
it by copying LSA_PREFIXSIZE(prefixlen) bytes after the lsa_prefix into a
struct in6_addr and print that.
Found by stsp@ OK stsp@

Revision 1.17 / (download) - annotate - [select for diffs], Tue Dec 30 21:33:52 2008 UTC (15 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.16: +35 -4 lines
Diff to previous 1.16 (colored)

Add code to show Link LSA. Make the other detailed views a bit shorter by
removing an empty newline.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Dec 28 22:05:04 2008 UTC (15 years, 5 months ago) by sobrado
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

a few documentation updates for opsf6(8) and ospf6ctl(8): remove an
existing (but undocumented) flag from the usage of ospf6d;
documentation tweaks; while here, synchronize synopsis and usage.

ok claudio@

Revision 1.15 / (download) - annotate - [select for diffs], Sun Dec 28 21:32:33 2008 UTC (15 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

correct some output

Revision 1.14 / (download) - annotate - [select for diffs], Sun Dec 28 21:23:51 2008 UTC (15 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.13: +4 -4 lines
Diff to previous 1.13 (colored)

Correctly display net lsa and the LSA type is now 16bit. This removes
the duplicate database headers seen all the time.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Dec 28 18:31:52 2008 UTC (15 years, 5 months ago) by claudio
Branch: MAIN
Changes since 1.12: +7 -9 lines
Diff to previous 1.12 (colored)

Sync up with the last commit. Some flags are now gone.
From Stefan Sperling's diff collection

Revision 1.12 / (download) - annotate - [select for diffs], Thu Dec 13 08:57:32 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.11: +11 -75 lines
Diff to previous 1.11 (colored)

struct kif is gone so adapt to the situation. show interface is gone for
now. OK norby@

Revision 1.11 / (download) - annotate - [select for diffs], Tue Nov 27 12:24:55 2007 UTC (16 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.10: +50 -17 lines
Diff to previous 1.10 (colored)

update "show database" output (work in progress) but now link local LSA
are printed again.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Oct 16 21:58:58 2007 UTC (16 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.9: +10 -4 lines
Diff to previous 1.9 (colored)

Fix show database router output.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Oct 16 21:37:45 2007 UTC (16 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.8: +17 -25 lines
Diff to previous 1.8 (colored)

Make ospf6ctl compile again and especially make ospf6ctl show database work
and so stuff starts to show up in the database:
Link ID         Adv Router      Age  Seq#       Checksum
0.0.0.1         255.1.1.1       3    0x8000028e 0xc7b3
0.0.0.0         255.1.1.1       3    0x8000027f 0xade8

Revision 1.8 / (download) - annotate - [select for diffs], Tue Oct 16 12:07:58 2007 UTC (16 years, 7 months ago) by norby
Branch: MAIN
Changes since 1.7: +31 -15 lines
Diff to previous 1.7 (colored)

Change LSA type to 16 bit and use the new defines recently comitted to
ospf6d(8).

ok claudio@

Revision 1.7 / (download) - annotate - [select for diffs], Tue Oct 16 08:43:44 2007 UTC (16 years, 7 months ago) by claudio
Branch: MAIN
Changes since 1.6: +17 -24 lines
Diff to previous 1.6 (colored)

Adapt to the changes in ospf6d. Fix more IPv6 addressing and probably break
some currently not working commands but show interface and show neighbor should
work.
OK norby@

Revision 1.6 / (download) - annotate - [select for diffs], Tue Oct 16 08:07:56 2007 UTC (16 years, 7 months ago) by norby
Branch: MAIN
Changes since 1.5: +5 -5 lines
Diff to previous 1.5 (colored)

Fix the output from "show neighbor".

It is not possible to fit the address of the neighbor(s) in the
short list, so we loose it...

It is still possible to see the IP address of the neighbor in the
output of "show neighbor detail".

ok claudio@

Revision 1.5 / (download) - annotate - [select for diffs], Mon Oct 15 02:16:35 2007 UTC (16 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

specifying int instead of just unsigned is better style

Revision 1.4 / (download) - annotate - [select for diffs], Sun Oct 14 01:28:06 2007 UTC (16 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +4 -1 lines
Diff to previous 1.3 (colored)

please lint

Revision 1.3 / (download) - annotate - [select for diffs], Fri Oct 12 09:29:45 2007 UTC (16 years, 8 months ago) by norby
Branch: MAIN
Changes since 1.2: +8 -6 lines
Diff to previous 1.2 (colored)

Sanitize the output of "show interface detail".

Revision 1.2 / (download) - annotate - [select for diffs], Fri Oct 12 09:23:37 2007 UTC (16 years, 8 months ago) by norby
Branch: MAIN
Changes since 1.1: +5 -7 lines
Diff to previous 1.1 (colored)

Properly format the output of "show interface".

In order to make room for the longer IPv6 addresses in the output,
the two collumns nc and ac must go. Neighbor and Adjacent Neighbor Count
is still avalable in "show interface detail".

ok claudio@

Revision 1.1 / (download) - annotate - [select for diffs], Fri Oct 12 08:22:53 2007 UTC (16 years, 8 months ago) by norby
Branch: MAIN

Controller for the recently imported ospf6d(8) daemon.

Currently simple stuff like show interface works.
Not yet connected to the builds.

ok claudio@

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.