1 /* $NetBSD: clientinfo.c,v 1.1.1.3 2014/12/10 03:34:39 christos Exp $ */
2
3 /*
4 * Copyright (C) 2011 Internet Systems Consortium, Inc. ("ISC")
5 *
6 * Permission to use, copy, modify, and/or distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
11 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
13 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
15 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16 * PERFORMANCE OF THIS SOFTWARE.
17 */
18
19 /* Id: clientinfo.c,v 1.3 2011/10/11 00:25:12 marka Exp */
20
21 /*! \file */
22
23 #include "config.h"
24
25 #include <dns/clientinfo.h>
26
27 void
dns_clientinfomethods_init(dns_clientinfomethods_t * methods,dns_clientinfo_sourceip_t sourceip)28 dns_clientinfomethods_init(dns_clientinfomethods_t *methods,
29 dns_clientinfo_sourceip_t sourceip)
30 {
31 methods->version = DNS_CLIENTINFOMETHODS_VERSION;
32 methods->age = DNS_CLIENTINFOMETHODS_AGE;
33 methods->sourceip = sourceip;
34 }
35
36 void
dns_clientinfo_init(dns_clientinfo_t * ci,void * data)37 dns_clientinfo_init(dns_clientinfo_t *ci, void *data) {
38 ci->version = DNS_CLIENTINFO_VERSION;
39 ci->data = data;
40 }
41