OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.29 / (download) - annotate - [select for diffs], Wed Nov 10 20:24:22 2021 UTC (2 years, 6 months ago) by bket
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, HEAD
Changes since 1.28: +3 -1 lines
Diff to previous 1.28 (colored)

Give sppp(4) its own RTP_PROPOSAL priority

OK semarie@

Revision 1.28 / (download) - annotate - [select for diffs], Wed Sep 8 11:38:39 2021 UTC (2 years, 9 months ago) by tobhe
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.27: +20 -3 lines
Diff to previous 1.27 (colored)

Print correct RTP_PROPOSAL types with 'unwindctl status autoconf'.

Feedback and ok florian@

Revision 1.27 / (download) - annotate - [select for diffs], Sat Feb 27 10:32:29 2021 UTC (3 years, 3 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

Path #defines are traditionally prefixed with _PATH.
Pointed out by deraadt

Revision 1.26 / (download) - annotate - [select for diffs], Wed Dec 18 09:18:28 2019 UTC (4 years, 5 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.25: +36 -1 lines
Diff to previous 1.25 (colored)

Implement unwindctl status memory to show chache memory usage.
testing by otto & pamela as part of a larger diff

Revision 1.25 / (download) - annotate - [select for diffs], Sun Dec 8 12:31:07 2019 UTC (4 years, 6 months ago) by otto
Branch: MAIN
Changes since 1.24: +47 -49 lines
Diff to previous 1.24 (colored)

More compact two column format for first section of status display; use
* to mark opportunistic DoT forwarders; ok florian

Revision 1.24 / (download) - annotate - [select for diffs], Sun Dec 8 09:47:51 2019 UTC (4 years, 6 months ago) by florian
Branch: MAIN
Changes since 1.23: +56 -17 lines
Diff to previous 1.23 (colored)

Turn opportunistic DoT into their own strategies.
This is beneficial since we prefer strategies according to their
performance.
Previously name servers were upgraded to opportunistic DoT if it was
available even if the round trip times went through the roof and there
was no way to got back to plain udp/53 DNS.
To make up a bit of space in the unwindctl status output, name servers
learned via DHCP or SLAAC are printed in a new subcommand.
The status output will be further improved shortly.
Input & OK otto

Revision 1.23 / (download) - annotate - [select for diffs], Fri Dec 6 12:59:48 2019 UTC (4 years, 6 months ago) by otto
Branch: MAIN
Changes since 1.22: +4 -3 lines
Diff to previous 1.22 (colored)

Histogram header formatting tweaks; ok florian@

Revision 1.22 / (download) - annotate - [select for diffs], Tue Dec 3 16:18:23 2019 UTC (4 years, 6 months ago) by florian
Branch: MAIN
Changes since 1.21: +28 -6 lines
Diff to previous 1.21 (colored)

nicer learned resolver formating
OK otto

Revision 1.21 / (download) - annotate - [select for diffs], Tue Dec 3 14:35:05 2019 UTC (4 years, 6 months ago) by otto
Branch: MAIN
Changes since 1.20: +9 -50 lines
Diff to previous 1.20 (colored)

No more status subcommands; ok florian@

Revision 1.20 / (download) - annotate - [select for diffs], Mon Dec 2 06:26:52 2019 UTC (4 years, 6 months ago) by otto
Branch: MAIN
Changes since 1.19: +43 -62 lines
Diff to previous 1.19 (colored)

Add an "all" mode for status and a much more compact and readable histogram
display; remove the why bogus status message; ok florian@

Revision 1.19 / (download) - annotate - [select for diffs], Fri Nov 29 15:22:02 2019 UTC (4 years, 6 months ago) by florian
Branch: MAIN
Changes since 1.18: +6 -3 lines
Diff to previous 1.18 (colored)

While we learn how the "decaying" histogram works it's helpful to show
it in unwindctl status output next to the all time histogram.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Nov 28 10:40:29 2019 UTC (4 years, 6 months ago) by florian
Branch: MAIN
Changes since 1.17: +6 -2 lines
Diff to previous 1.17 (colored)

show median RTT in unwindctl status

Revision 1.17 / (download) - annotate - [select for diffs], Thu Nov 28 10:02:44 2019 UTC (4 years, 6 months ago) by florian
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Track all elements of a forwarder configuration individually:
IP address, port and authentication name.
This makes print_config less awkward and fixes a bug were an
alternative port number was not printed.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Nov 27 17:12:31 2019 UTC (4 years, 6 months ago) by florian
Branch: MAIN
Changes since 1.15: +3 -4 lines
Diff to previous 1.15 (colored)

Instead of only considering if a resolving strategy is dead, works or
validates, measure how well it is doing.

We keep track of the round trip median time of past queries and sort
strategies according to this in addition to the more basic qualities
of does it resolve and does it validate. If a query is not answered
within the median time the next best strategy gets a chance.  The most
prefered strategy (either from the config file or defaults) gets an
additional head start of 200ms.

A response of SERVFAIL also advances to the next best strategy. This
is helpful when the picked strategy can only see parts of the internet
but another strategy can reach more.

This alone gets us past quite a few captive portals already.
Additionally we doubt NXDOMAIN from anything but the stub resolver for
the first 5 minutes after a network change. This is probably as good
as the http check we had previously but more tests are needed.

This was inspired by RFC 8305, "Happy Eyeballs".

OK otto

Revision 1.15 / (download) - annotate - [select for diffs], Wed Nov 27 17:09:12 2019 UTC (4 years, 6 months ago) by florian
Branch: MAIN
Changes since 1.14: +2 -26 lines
Diff to previous 1.14 (colored)

Nuke http captive portal detection; something better is coming.
OK otto

Revision 1.14 / (download) - annotate - [select for diffs], Mon Nov 25 18:10:42 2019 UTC (4 years, 6 months ago) by otto
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

simplify histogram code and cut off at < limit, as the histogram display in
unwindctl suggests; ok florian@

Revision 1.13 / (download) - annotate - [select for diffs], Thu Nov 21 05:01:22 2019 UTC (4 years, 6 months ago) by florian
Branch: MAIN
Changes since 1.12: +7 -3 lines
Diff to previous 1.12 (colored)

    Track on which interface nameservers have been learned.
    prodding deraadt@

Revision 1.12 / (download) - annotate - [select for diffs], Tue Nov 19 14:49:36 2019 UTC (4 years, 6 months ago) by florian
Branch: MAIN
Changes since 1.11: +10 -2 lines
Diff to previous 1.11 (colored)

Print learned forwarders in unwindctl.
Someone please make this pretty.
Tested by deraadt as part of a larger diff.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Nov 11 05:51:06 2019 UTC (4 years, 7 months ago) by florian
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored)

Implement DNS proposals to learn nameservers from network
autoconfiguration daemons.  Currently only slaacd is switched over so
we need to keep the lease file parsing.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Nov 6 14:19:59 2019 UTC (4 years, 7 months ago) by florian
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Rename "asr" to "stub" in user visible parts.
More people know what a "stub" resolver is then asr.

Pointed out by & discussed with deraadt
Input & OK otto

Revision 1.9 / (download) - annotate - [select for diffs], Sun Nov 3 09:49:02 2019 UTC (4 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.8: +4 -3 lines
Diff to previous 1.8 (colored)

Opportunistic DoT support and name forwarder "forwarder" instead of "static;
joint work and ok florian@

Revision 1.8 / (download) - annotate - [select for diffs], Fri Nov 1 18:15:28 2019 UTC (4 years, 7 months ago) by florian
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Correctly group initialization of AF_UNIX socket.
spotted by deraadt in new code, sweep by me.
OK deraadt

Revision 1.7 / (download) - annotate - [select for diffs], Thu Oct 31 12:51:43 2019 UTC (4 years, 7 months ago) by florian
Branch: MAIN
Changes since 1.6: +7 -1 lines
Diff to previous 1.6 (colored)

Add asr resolver type which completely bypasses libunbound and uses the
libc asynchronous resolver directly with DHCP provided nameservers.
This is a last-ditch effort when we find ourself behind a completely
broken middle-box.
Input & OK otto
OK benno

Revision 1.6 / (download) - annotate - [select for diffs], Tue Apr 2 07:47:23 2019 UTC (5 years, 2 months ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.5: +6 -6 lines
Diff to previous 1.5 (colored)

Add a config option to specify the preference of name servers.
Unfortunately the nameserver types enums needed to be renamed
to not collide with yacc tokens.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Feb 17 14:49:52 2019 UTC (5 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

s/unwind_/uw_/ to save screen real estate

Revision 1.4 / (download) - annotate - [select for diffs], Sun Feb 3 12:02:30 2019 UTC (5 years, 4 months ago) by florian
Branch: MAIN
Changes since 1.3: +26 -2 lines
Diff to previous 1.3 (colored)

Captive portal detection for unwind(8).

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jan 31 13:36:42 2019 UTC (5 years, 4 months ago) by solene
Branch: MAIN
Changes since 1.2: +14 -1 lines
Diff to previous 1.2 (colored)

restrict commands reload and log to root only

tweaks and ok florian@

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jan 27 12:41:39 2019 UTC (5 years, 4 months ago) by florian
Branch: MAIN
Changes since 1.1: +7 -1 lines
Diff to previous 1.1 (colored)

DoT bits.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jan 23 13:12:19 2019 UTC (5 years, 4 months ago) by florian
Branch: MAIN

import unwindctl
"toss it in man" deraadt@

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.