2011-10-11 00:09:03 +00:00
|
|
|
/*
|
2018-02-23 09:53:12 +01:00
|
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2011-10-11 00:09:03 +00:00
|
|
|
*
|
2016-06-27 14:56:38 +10:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2018-02-23 09:53:12 +01:00
|
|
|
*
|
|
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
|
|
* information regarding copyright ownership.
|
2011-10-11 00:09:03 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*! \file */
|
|
|
|
|
|
|
|
#include <dns/clientinfo.h>
|
|
|
|
|
|
|
|
void
|
2020-02-13 14:44:37 -08:00
|
|
|
dns_clientinfomethods_init(dns_clientinfomethods_t *methods,
|
|
|
|
dns_clientinfo_sourceip_t sourceip) {
|
2011-10-11 00:09:03 +00:00
|
|
|
methods->version = DNS_CLIENTINFOMETHODS_VERSION;
|
|
|
|
methods->age = DNS_CLIENTINFOMETHODS_AGE;
|
|
|
|
methods->sourceip = sourceip;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
2020-02-13 14:44:37 -08:00
|
|
|
dns_clientinfo_init(dns_clientinfo_t *ci, void *data, void *versionp) {
|
2011-10-11 00:09:03 +00:00
|
|
|
ci->version = DNS_CLIENTINFO_VERSION;
|
|
|
|
ci->data = data;
|
2014-04-25 13:06:30 -07:00
|
|
|
ci->dbversion = versionp;
|
2011-10-11 00:09:03 +00:00
|
|
|
}
|