An error occurred while loading the file. Please try again.
-
Marek Vavruša authoreddee68d21
Forked from
Knot projects / Knot Resolver
9029 commits behind the upstream repository.
defines.h 1.10 KiB
/* Copyright (C) 2014 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <libknot/errcode.h>
#include <libknot/dname.h>
#include <libknot/rrset.h>
/*
* Connection limits.
*/
#define KR_CONN_RTT_MAX 10000
/*
* Timers.
*/
#define KR_TTL_GRACE ((KR_CONN_RTT_MAX) / 1000) /* TTL expire grace period. */
/*
* Defines.
*/
#define KR_DNS_PORT 53
#define KR_DNAME_ROOT ((const knot_dname_t*)"")
#define KR_EDNS_VERSION 0
#define KR_EDNS_PAYLOAD 4096