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/head/ifaddrs.h | |
parent | f9e0b1dc6f25356fd35837dc9e1124b2d91ed6f3 (diff) | |
download | illumos-joyent-64639aaf7beb84086b88f186ea1fa9ccf0be8c57.tar.gz |
6950944 ifa_addr and friends should be "sockaddr", not "sockaddr_storage"
Diffstat (limited to 'usr/src/head/ifaddrs.h')
-rw-r--r-- | usr/src/head/ifaddrs.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/usr/src/head/ifaddrs.h b/usr/src/head/ifaddrs.h index f29aee16e9..4202b60998 100644 --- a/usr/src/head/ifaddrs.h +++ b/usr/src/head/ifaddrs.h @@ -19,8 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2010 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. */ #ifndef _IFADDRS_H #define _IFADDRS_H @@ -40,10 +39,8 @@ struct ifaddrs { struct ifaddrs *ifa_next; /* Pointer to the next structure. */ char *ifa_name; /* Name of this network interface. */ uint64_t ifa_flags; /* Flags as from SIOCGLIFFLAGS ioctl. */ - struct sockaddr_storage *ifa_addr; - /* Network address of this interface. */ - struct sockaddr_storage *ifa_netmask; - /* Netmask of this interface. */ + struct sockaddr *ifa_addr; /* Network address of this interface. */ + struct sockaddr *ifa_netmask; /* Netmask of this interface. */ union { /* * At most one of the following two is valid. If the @@ -52,8 +49,8 @@ struct ifaddrs { * set, then `ifa_dstaddr' is valid. It is never the case that * both these bits are set at once. */ - struct sockaddr_storage *ifu_broadaddr; - struct sockaddr_storage *ifu_dstaddr; + struct sockaddr *ifu_broadaddr; + struct sockaddr *ifu_dstaddr; } ifa_ifu; void *ifa_data; /* Address-specific data (may be unused). */ /* |