diff options
| author | sumuel <samuel@yakubos.org> | 2026-08-17 20:44:55 +0000 |
|---|---|---|
| committer | sumuel <samuel@yakubos.org> | 2026-08-17 20:44:55 +0000 |
| commit | 76424950e373d3b04ac3dd13019151bfba3e8423 (patch) | |
| tree | 4c3cfdbda039e592b9186be3e28f8d7cfd439e8a /src/modules/dns/option.h | |
Add the files
Diffstat (limited to 'src/modules/dns/option.h')
| -rw-r--r-- | src/modules/dns/option.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/modules/dns/option.h b/src/modules/dns/option.h new file mode 100644 index 0000000..e20bbec --- /dev/null +++ b/src/modules/dns/option.h @@ -0,0 +1,18 @@ +#pragma once + +#include "common/option.h" + +typedef enum FF_A_PACKED FFDNSShowType { + FF_DNS_TYPE_IPV4_BIT = 1, + FF_DNS_TYPE_IPV6_BIT = 2, + FF_DNS_TYPE_BOTH = FF_DNS_TYPE_IPV4_BIT | FF_DNS_TYPE_IPV6_BIT, + FF_DNS_TYPE_FORCE_UNSIGNED = UINT8_MAX, +} FFDNSShowType; + +typedef struct FFDNSOptions { + FFModuleArgs moduleArgs; + + FFDNSShowType showType; +} FFDNSOptions; + +static_assert(sizeof(FFDNSOptions) <= FF_OPTION_MAX_SIZE, "FFDNSOptions size exceeds maximum allowed size"); |