mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 00:06:59 +00:00
various: split functions to IPv4 and IPv6 versions
The code selection will be set with function pointer, which avoids numerous IP version checks. As a result with some inputs the analysis runs quicker. Most users will not notice much of difference. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
97c6f0292f
commit
8da98bbc89
5 changed files with 215 additions and 89 deletions
|
|
@ -248,7 +248,7 @@ int main(int argc, char **argv)
|
|||
|
||||
/* Do the job */
|
||||
prepare_memory();
|
||||
xstrstr = xstrstr_init;
|
||||
set_ipv_functions(VERSION_UNKNOWN);
|
||||
parse_config(true, config.dhcpdconf_file, shared_networks);
|
||||
|
||||
parse_leases();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue