From 1d29f10aefdd7fd6fe9a243098e65cc4c91aa254 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Thu, 15 Jul 1999 20:10:57 +0000 Subject: [PATCH] add isc_sockaddr_v6fromin() and isc_sockaddr_pf() --- lib/isc/include/isc/sockaddr.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/isc/include/isc/sockaddr.h b/lib/isc/include/isc/sockaddr.h index 1242f91bad..7764ae41e4 100644 --- a/lib/isc/include/isc/sockaddr.h +++ b/lib/isc/include/isc/sockaddr.h @@ -48,6 +48,25 @@ void isc_sockaddr_fromin6(isc_sockaddr_t *sockaddr, struct in6_addr *ina6, unsigned int port); +void +isc_sockaddr_v6fromin(isc_sockaddr_t *sockaddr, struct in_addr *ina, + unsigned int port); + +int +isc_sockaddr_pf(isc_sockaddr_t *sockaddr); +/* + * Get the protocol family of 'sockaddr'. + * + * Requires: + * + * 'sockaddr' is a valid sockaddr with an address family of AF_INET + * or AF_INET6. + * + * Returns: + * + * The protocol family of 'sockaddr', e.g. PF_INET or PF_INET6. + */ + ISC_LANG_ENDDECLS #endif /* ISC_SOCKADDR_H */