diff options
author | Darren Reed <Darren.Reed@Oracle.COM> | 2010-07-09 21:00:59 -0700 |
---|---|---|
committer | Darren Reed <Darren.Reed@Oracle.COM> | 2010-07-09 21:00:59 -0700 |
commit | 64639aaf7beb84086b88f186ea1fa9ccf0be8c57 (patch) | |
tree | 1c189cfff212c6e13f229c55a5b6c1842bb7a168 /usr/src/cmd/rcm_daemon | |
parent | f9e0b1dc6f25356fd35837dc9e1124b2d91ed6f3 (diff) | |
download | illumos-gate-64639aaf7beb84086b88f186ea1fa9ccf0be8c57.tar.gz |
6950944 ifa_addr and friends should be "sockaddr", not "sockaddr_storage"
Diffstat (limited to 'usr/src/cmd/rcm_daemon')
-rw-r--r-- | usr/src/cmd/rcm_daemon/common/ip_rcm.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr/src/cmd/rcm_daemon/common/ip_rcm.c b/usr/src/cmd/rcm_daemon/common/ip_rcm.c index 2ab9959372..28bca35c24 100644 --- a/usr/src/cmd/rcm_daemon/common/ip_rcm.c +++ b/usr/src/cmd/rcm_daemon/common/ip_rcm.c @@ -19,8 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2010 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. */ /* @@ -1117,7 +1116,7 @@ update_pif(rcm_handle_t *hd, int af, int sock, struct ifaddrs *ifa) sizeof (pif.pi_grname)); /* Get the interface address for this interface */ - ifaddr = *(ifa->ifa_addr); + (void) memcpy(&ifaddr, ifa->ifa_addr, sizeof (ifaddr)); rsrc = get_link_resource(pif.pi_ifname); if (rsrc == NULL) { @@ -1261,7 +1260,7 @@ update_ipifs(rcm_handle_t *hd, int af) for (ptr = ainfo; ptr; ptr = IA_NEXT(ptr)) { ifa = &ptr->ia_ifa; if (ptr->ia_state != IFA_DISABLED && - af == ifa->ifa_addr->ss_family) + af == ifa->ifa_addr->sa_family) (void) update_pif(hd, af, sock, ifa); } (void) close(sock); |