Commit cdd5e378 authored by Andreas Gustafsson's avatar Andreas Gustafsson
Browse files

isc_netaddr_t now has a "family" field

parent 0dc4e6a6
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment