Man page - dnsjit.lib.parseconf(3)
Packages contains this manual
- dnsjit.core.object.pcap(3)
- dnsjit.output.null(3)
- dnsjit.core.object.icmp(3)
- dnsjit.core.thread(3)
- dnsjit.lib.trie.node(3)
- dnsjit.lib(3)
- dnsjit.input.mmpcap(3)
- dnsjit.core.object.dns.rr(3)
- dnsjit.output.tlscli(3)
- dnsjit.filter.split(3)
- dnsjit.core.object.udp(3)
- dnsjit.core.channel(3)
- dnsjit.core.object.ip6(3)
- dnsjit.filter.copy(3)
- dnsjit.core.objects(3)
- dnsjit.input(3)
- dnsjit.lib.clock(3)
- dnsjit.core.object.linuxsll2(3)
- dnsjit.input.zmmpcap(3)
- dnsjit.filter.layer(3)
- dnsjit.core.object.gre(3)
- dnsjit.core.object.ether(3)
- dnsjit.core(3)
- dnsjit.core.timespec(3)
- dnsjit.input.zero(3)
- dnsjit.core.file(3)
- dnsjit.core.object.ip(3)
- dnsjit.lib.trie.iter(3)
- dnsjit.core.log(3)
- dnsjit.output(3)
- dnsjit.core.object.linuxsll(3)
- dnsjit.output.pcap(3)
- dnsjit.core.object.payload(3)
- dnsjit.core.object.dns.label(3)
- dnsjit.core.object.dns(3)
- dnsjit.input.pcap(3)
- dnsjit.filter.ipsplit(3)
- dnsjit.lib.parseconf(3)
- dnsjit.core.object(3)
- dnsjit.output.respdiff(3)
- dnsjit.input.fpcap(3)
- dnsjit.lib.getopt(3)
- dnsjit.core.compat(3)
- dnsjit.output.udpcli(3)
- dnsjit.core.object.ieee802(3)
- dnsjit.core.object.icmp6(3)
- dnsjit.output.dnscli(3)
- dnsjit.core.object.loop(3)
- dnsjit.filter(3)
- dnsjit.filter.timing(3)
- dnsjit(1)
- dnsjit.core.receiver(3)
- dnsjit.core.object.dns.q(3)
- dnsjit.core.producer(3)
- dnsjit.lib.base64url(3)
- dnsjit.core.object.tcp(3)
- dnsjit.lib.trie(3)
- dnsjit.output.tcpcli(3)
- dnsjit.core.loader(3)
- dnsjit.lib.ip(3)
- dnsjit.input.zpcap(3)
- dnsjit.core.object.null(3)
apt-get install dnsjit
Manual
dnsjit.lib.parseconf
NAMESYNOPSIS
DESCRIPTION
Example
Functions
AUTHORS and CONTRIBUTORS
BUGS
NAME
dnsjit.lib.parseconf - Parse simple config files
SYNOPSIS
local conf = require("dnsjit.lib.parseconf").new()
conf:func("config_name",
function(k,...)
print(k,...)
end)
conf:file(file)
print(conf:val("another_config_name"))
DESCRIPTION
This module parses simple config files that are based on the config syntax of DSC, drool and parseconf helper library. Each config begins with a name followed by options and ends with a ; . Multiple configs can be given on the same line. Valid option types are number , float , string , quoted string . Comments can be added by prefixing the comment with # .
Example
# Comment
number 12345;
float 123.456;
string string string;
quoted_string "string string string";
multi config; on one line;
Functions
Parseconf.new ()
Create a new Parseconf object.
Parseconf:log ()
Return the Log object to control logging of this instance or module.
Parseconf:func (name, func)
Set a function to call when config name is found.
Parseconf:file (fn)
Parse the given file.
Parseconf:line (l)
Parse the given line.
Parseconf:val (name)
Get the value of a config name .
AUTHORS and CONTRIBUTORS
Jerry Lundström (DNS-OARC), Tomáš Křížek (CZ.NIC), Petr Špaček (ISC)
Maintained by DNS-OARC
https://www.dns-oarc.net/
BUGS
For issues and feature requests please use:
https://codeberg.org/DNS-OARC/dnsjit/issues
For question and help please use:
admin@dns-oarc.net