PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib/bind9/bin/named/include/named/lwaddr.h

https://bitbucket.org/freebsd/freebsd-head/
C++ Header | 36 lines | 11 code | 7 blank | 18 comment | 0 complexity | d68e5896f4feb0043dbda4ecf744a5c1 MD5 | raw file
 1/*
 2 * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
 3 * Copyright (C) 2000, 2001  Internet Software Consortium.
 4 *
 5 * Permission to use, copy, modify, and/or distribute this software for any
 6 * purpose with or without fee is hereby granted, provided that the above
 7 * copyright notice and this permission notice appear in all copies.
 8 *
 9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 * PERFORMANCE OF THIS SOFTWARE.
16 */
17
18/* $Id: lwaddr.h,v 1.8 2007/06/19 23:46:59 tbox Exp $ */
19
20/*! \file */
21
22#include <lwres/lwres.h>
23#include <lwres/net.h>
24
25isc_result_t
26lwaddr_netaddr_fromlwresaddr(isc_netaddr_t *na, lwres_addr_t *la);
27
28isc_result_t
29lwaddr_sockaddr_fromlwresaddr(isc_sockaddr_t *sa, lwres_addr_t *la,
30			      in_port_t port);
31
32isc_result_t
33lwaddr_lwresaddr_fromnetaddr(lwres_addr_t *la, isc_netaddr_t *na);
34
35isc_result_t
36lwaddr_lwresaddr_fromsockaddr(lwres_addr_t *la, isc_sockaddr_t *sa);