lwaddr.c File Reference

#include <config.h>
#include <string.h>
#include <isc/result.h>
#include <isc/netaddr.h>
#include <isc/sockaddr.h>
#include <lwres/lwres.h>
#include <named/lwaddr.h>

Go to the source code of this file.

Functions

isc_result_t lwaddr_netaddr_fromlwresaddr (isc_netaddr_t *na, lwres_addr_t *la)
 Convert addresses from lwres to isc format.
isc_result_t lwaddr_sockaddr_fromlwresaddr (isc_sockaddr_t *sa, lwres_addr_t *la, in_port_t port)
isc_result_t lwaddr_lwresaddr_fromnetaddr (lwres_addr_t *la, isc_netaddr_t *na)
 Convert addresses from isc to lwres format.
isc_result_t lwaddr_lwresaddr_fromsockaddr (lwres_addr_t *la, isc_sockaddr_t *sa)


Detailed Description

Definition in file lwaddr.c.


Function Documentation

isc_result_t lwaddr_netaddr_fromlwresaddr ( isc_netaddr_t na,
lwres_addr_t *  la 
)

Convert addresses from lwres to isc format.

Definition at line 38 of file lwaddr.c.

References isc_netaddr_fromin(), isc_netaddr_fromin6(), ISC_R_FAMILYNOSUPPORT, and ISC_R_SUCCESS.

Referenced by lwaddr_sockaddr_fromlwresaddr(), and sort_addresses().

isc_result_t lwaddr_sockaddr_fromlwresaddr ( isc_sockaddr_t sa,
lwres_addr_t *  la,
in_port_t  port 
)

Definition at line 55 of file lwaddr.c.

References ISC_R_SUCCESS, isc_sockaddr_fromnetaddr(), and lwaddr_netaddr_fromlwresaddr().

Referenced by ns_lwresd_parseeresolvconf().

isc_result_t lwaddr_lwresaddr_fromnetaddr ( lwres_addr_t *  la,
isc_netaddr_t na 
)

Convert addresses from isc to lwres format.

Definition at line 73 of file lwaddr.c.

References AF_INET6, isc_netaddr::family, isc_netaddr::in, isc_netaddr::in6, ISC_R_FAMILYNOSUPPORT, ISC_R_SUCCESS, and isc_netaddr::type.

Referenced by lwaddr_lwresaddr_fromsockaddr(), and sort_addresses().

isc_result_t lwaddr_lwresaddr_fromsockaddr ( lwres_addr_t *  la,
isc_sockaddr_t sa 
)

Definition at line 90 of file lwaddr.c.

References isc_netaddr_fromsockaddr(), and lwaddr_lwresaddr_fromnetaddr().

Referenced by setup_addresses().


Generated on Tue Apr 28 17:41:07 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha