diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-09-04 13:09:02 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-09-04 20:05:58 +0900 |
commit | 88d2cb7c0e3884e5b8e37e20cb9911e7ab210cf7 (patch) | |
tree | 4579dfdd8256a2efc08529ab080b0b130864406c /src/resolve/resolved-conf.h | |
parent | 8ae07803a03557971729a4115e3df37ea61cfc54 (diff) | |
download | systemd-88d2cb7c0e3884e5b8e37e20cb9911e7ab210cf7.tar.gz |
resolve: make DnsStubListenerMode bitfield
Diffstat (limited to 'src/resolve/resolved-conf.h')
-rw-r--r-- | src/resolve/resolved-conf.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resolve/resolved-conf.h b/src/resolve/resolved-conf.h index f8d16b5a8e..50a0caaf16 100644 --- a/src/resolve/resolved-conf.h +++ b/src/resolve/resolved-conf.h @@ -7,9 +7,9 @@ typedef enum DnsStubListenerMode DnsStubListenerMode; enum DnsStubListenerMode { DNS_STUB_LISTENER_NO, - DNS_STUB_LISTENER_UDP, - DNS_STUB_LISTENER_TCP, - DNS_STUB_LISTENER_YES, + DNS_STUB_LISTENER_UDP = 1 << 0, + DNS_STUB_LISTENER_TCP = 1 << 1, + DNS_STUB_LISTENER_YES = DNS_STUB_LISTENER_UDP | DNS_STUB_LISTENER_TCP, _DNS_STUB_LISTENER_MODE_MAX, _DNS_STUB_LISTENER_MODE_INVALID = -1 }; |