OpenBSD CVS

CVS log for src/sbin/unwind/control.c


[BACK] Up to [local] / src / sbin / unwind

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.17 / (download) - annotate - [select for diffs], Wed Feb 24 18:34:14 2021 UTC (3 years, 3 months ago) by florian
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, HEAD
Changes since 1.16: +6 -4 lines
Diff to previous 1.16 (colored)

We need to track the pid of the connecting control connection to be
able to send answers back to the correct client in case two are
connecting at the same time. We also need to pass the pid around to
the resolver process so that it can hand it back to us.
Debugged by deraadt and dlg who noticed that answers would always
arrive on the first control connection.

deraadt@ points out that tracking the pid is not the best choice in
case one process wants to hold open two connections but at least this
brings us in line with all the other privsep daemons with control
tools. If we change this we should change it in all daemons.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jan 19 16:52:12 2021 UTC (3 years, 4 months ago) by florian
Branch: MAIN
Changes since 1.15: +19 -2 lines
Diff to previous 1.15 (colored)

Move control_state and ctl_conns to control.c, it's not needed
elsewhere and unbreaks -fno-common.
Inspired by claudio
Problem reported by mortimer

Revision 1.15 / (download) - annotate - [select for diffs], Wed Dec 18 09:18:27 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.14: +2 -1 lines
Diff to previous 1.14 (colored)

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

Revision 1.14 / (download) - annotate - [select for diffs], Sun Dec 8 09:47:50 2019 UTC (4 years, 5 months ago) by florian
Branch: MAIN
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (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.13 / (download) - annotate - [select for diffs], Tue Dec 3 14:35:04 2019 UTC (4 years, 5 months ago) by otto
Branch: MAIN
Changes since 1.12: +4 -5 lines
Diff to previous 1.12 (colored)

No more status subcommands; ok florian@

Revision 1.12 / (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.11: +1 -7 lines
Diff to previous 1.11 (colored)

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

Revision 1.11 / (download) - annotate - [select for diffs], Mon Nov 11 05:51:05 2019 UTC (4 years, 6 months ago) by florian
Branch: MAIN
Changes since 1.10: +3 -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], Fri Mar 1 08:02:25 2019 UTC (5 years, 3 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.9: +2 -2 lines
Diff to previous 1.9 (colored)

Due to the way we build libunbound inside of unwind .o files collide in
the obj directory. Previously this was solved by keeping the libunbound
file name (to be able to keep in sync with upstream) and prefixing
the source filename of colliding .o files in unwind with uw_.

However, these files are shared through out our tree (namely parse.y,
log.c and log.h) and we try to keep them in sync.

Move files back to their original name and instead symlink colliding source
files in libunbound to unique filenames by prefixing them with the directory
they live in:
obj/sldns_parse.c -> /usr/src/sbin/unwind/libunbound/sldns/parse.c
obj/util_log.c -> /usr/src/sbin/unwind/libunbound/util/log.c

Idea to use symlinks deraadt@ via jsg@
OK benno

Revision 1.9 / (download) - annotate - [select for diffs], Mon Feb 18 07:50:14 2019 UTC (5 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.8: +9 -12 lines
Diff to previous 1.8 (colored)

Introduce IMSG_DATA_SIZE() macro to to replace reoccuring math on
imsg.hdr.len and shorten code.
Input & OK pamela

Revision 1.8 / (download) - annotate - [select for diffs], Sun Feb 17 14:51:03 2019 UTC (5 years, 3 months ago) by florian
Branch: MAIN
Changes since 1.7: +4 -1 lines
Diff to previous 1.7 (colored)

Pass verbosity changes to captive portal process.

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

 s/unwind_/uw_/ to save screen real estate; fix style(9) issues while here

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

Captive portal detection for unwind(8).

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jan 31 18:06:14 2019 UTC (5 years, 4 months ago) by solene
Branch: MAIN
Changes since 1.4: +1 -2 lines
Diff to previous 1.4 (colored)

Remove a log statement used for debug

ok florian@

Revision 1.4 / (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.3: +23 -2 lines
Diff to previous 1.3 (colored)

restrict commands reload and log to root only

tweaks and ok florian@

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jan 29 19:13:01 2019 UTC (5 years, 4 months ago) by florian
Branch: MAIN
Changes since 1.2: +5 -1 lines
Diff to previous 1.2 (colored)

Make imsg processing much more paranoid.

If it comes from one of our processes and the size does not match what
we expect call fatalx to crash and burn. We either hit a logic bug or
something is fishy on the other end and we can't trust that process
any longer. Not that we trust those processes to begin with.

This also applies to receiving resources that we don't expect. For
example if we have an open UDP listen socket and get a new one passed
from the main process something is wrong and we should crash and burn.

The only place where we are more lenient is on the control socket.  We
just ignore wrong sized messages so that users can't bring down
unwind.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jan 27 07:46:49 2019 UTC (5 years, 4 months ago) by florian
Branch: MAIN
Changes since 1.1: +2 -6 lines
Diff to previous 1.1 (colored)

unwind(8) traces its ancestry to rad(8) and inherited all of its include
directives, some of them no longer necessary.
Cleanup by Caspar Schutijser, thank you very much!

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

Import unwind(8).

unwind(8) is a hybrid validating stub & recursive resolver.

It actively observes the local net to decide how to best resolve
names. It can chose to recurse on it's own or talk to dhcp
provided forwardes or statically defined forwarders in the
config file.

The intention is to be able to run it on localhost on every machine.

"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.