diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2019-11-27 17:11:01 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2019-11-27 17:11:01 +0000 |
commit | 751257b52d5515acc1276a37411dcba3b5fbe24d (patch) | |
tree | 87dced5e7e4fd210f38ca4b5fa198d58b3e9284c /sbin/unwind/unwind.h | |
parent | ef8ac29ba3d237a19175ad7252d709c9a74bc051 (diff) |
Move resolver preference storage to a struct which makes it easier to
reuse in the future.
OK otto
Diffstat (limited to 'sbin/unwind/unwind.h')
-rw-r--r-- | sbin/unwind/unwind.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sbin/unwind/unwind.h b/sbin/unwind/unwind.h index f4f6316a4e3..38114bfa92a 100644 --- a/sbin/unwind/unwind.h +++ b/sbin/unwind/unwind.h @@ -1,4 +1,4 @@ -/* $OpenBSD: unwind.h,v 1.37 2019/11/27 17:09:12 florian Exp $ */ +/* $OpenBSD: unwind.h,v 1.38 2019/11/27 17:11:00 florian Exp $ */ /* * Copyright (c) 2018 Florian Obser <florian@openbsd.org> @@ -120,12 +120,16 @@ struct uw_forwarder { uint16_t port; }; +struct resolver_preference { + enum uw_resolver_type types[UW_RES_NONE]; + int len; +}; + TAILQ_HEAD(uw_forwarder_head, uw_forwarder); struct uw_conf { struct uw_forwarder_head uw_forwarder_list; struct uw_forwarder_head uw_dot_forwarder_list; - enum uw_resolver_type res_pref[UW_RES_NONE]; - int res_pref_len; + struct resolver_preference res_pref; char *blocklist_file; int blocklist_log; }; |