diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2011-12-21 12:39:08 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2011-12-21 12:39:08 +0000 |
commit | 71212473120f655524672d5fa1d6b2eb63c7196c (patch) | |
tree | 96279cd42bceb4e7d71094c239ecf1b647e643e6 /sys/netinet6/in6_var.h | |
parent | b133becced43d2e4663874f75962e5138ac02bf5 (diff) | |
download | src-71212473120f655524672d5fa1d6b2eb63c7196c.tar.gz src-71212473120f655524672d5fa1d6b2eb63c7196c.zip |
Provide ABI compatibility shim to enable configuring of addresses
with ifconfig(8) prior to r228571.
Requested by: brooks
Notes
Notes:
svn path=/head/; revision=228768
Diffstat (limited to 'sys/netinet6/in6_var.h')
-rw-r--r-- | sys/netinet6/in6_var.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/netinet6/in6_var.h b/sys/netinet6/in6_var.h index 3e93e7182a8a..fde6e46a598d 100644 --- a/sys/netinet6/in6_var.h +++ b/sys/netinet6/in6_var.h @@ -290,6 +290,16 @@ struct in6_aliasreq { int ifra_vhid; }; +/* pre-10.x compat */ +struct oin6_aliasreq { + char ifra_name[IFNAMSIZ]; + struct sockaddr_in6 ifra_addr; + struct sockaddr_in6 ifra_dstaddr; + struct sockaddr_in6 ifra_prefixmask; + int ifra_flags; + struct in6_addrlifetime ifra_lifetime; +}; + /* prefix type macro */ #define IN6_PREFIX_ND 1 #define IN6_PREFIX_RR 2 @@ -410,7 +420,8 @@ struct in6_rrenumreq { #define SIOCGIFNETMASK_IN6 _IOWR('i', 37, struct in6_ifreq) #define SIOCDIFADDR_IN6 _IOW('i', 25, struct in6_ifreq) -#define SIOCAIFADDR_IN6 _IOW('i', 26, struct in6_aliasreq) +#define OSIOCAIFADDR_IN6 _IOW('i', 26, struct oin6_aliasreq) +#define SIOCAIFADDR_IN6 _IOW('i', 27, struct in6_aliasreq) #define SIOCSIFPHYADDR_IN6 _IOW('i', 70, struct in6_aliasreq) #define SIOCGIFPSRCADDR_IN6 _IOWR('i', 71, struct in6_ifreq) |