mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 08:20:01 -04:00
isc_netaddr_t now has a "family" field
This commit is contained in:
parent
0dc4e6a6ae
commit
cdd5e37820
2 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue