isc_netaddr_t now has a "family" field
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
ISC_LANG_BEGINDECLS
|
||||
|
||||
typedef struct isc_netaddr {
|
||||
unsigned int family;
|
||||
union {
|
||||
struct in_addr in;
|
||||
struct in6_addr in6;
|
||||
|
||||
@@ -51,7 +51,8 @@
|
||||
*/
|
||||
|
||||
static void
|
||||
get_addr(int family, isc_netaddr_t *dst, struct sockaddr *src) {
|
||||
get_addr(unsigned int family, isc_netaddr_t *dst, struct sockaddr *src) {
|
||||
dst->family = family;
|
||||
switch (family) {
|
||||
case AF_INET:
|
||||
memcpy(&dst->type.in,
|
||||
|
||||
Reference in New Issue
Block a user