Home | History | Annotate | Line # | Download | only in dns
clientinfo.c revision 1.3
      1 /*	$NetBSD: clientinfo.c,v 1.3 2019/01/09 16:55:11 christos Exp $	*/
      2 
      3 /*
      4  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
      5  *
      6  * This Source Code Form is subject to the terms of the Mozilla Public
      7  * License, v. 2.0. If a copy of the MPL was not distributed with this
      8  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
      9  *
     10  * See the COPYRIGHT file distributed with this work for additional
     11  * information regarding copyright ownership.
     12  */
     13 
     14 /*! \file */
     15 
     16 #include <config.h>
     17 
     18 #include <dns/clientinfo.h>
     19 
     20 void
     21 dns_clientinfomethods_init(dns_clientinfomethods_t *methods,
     22 			   dns_clientinfo_sourceip_t sourceip)
     23 {
     24 	methods->version = DNS_CLIENTINFOMETHODS_VERSION;
     25 	methods->age = DNS_CLIENTINFOMETHODS_AGE;
     26 	methods->sourceip = sourceip;
     27 }
     28 
     29 void
     30 dns_clientinfo_init(dns_clientinfo_t *ci, void *data, void *versionp) {
     31 	ci->version = DNS_CLIENTINFO_VERSION;
     32 	ci->data = data;
     33 	ci->dbversion = versionp;
     34 }
     35