summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2011-12-21 12:39:08 +0000
committerglebius <glebius@FreeBSD.org>2011-12-21 12:39:08 +0000
commit653f8c5e7181f0fd06ea5451ebb67351c2dd5626 (patch)
tree96279cd42bceb4e7d71094c239ecf1b647e643e6 /sys/net
parent8451340f0023a2f549ad478e31b8cdeaeeac1096 (diff)
downloadFreeBSD-src-653f8c5e7181f0fd06ea5451ebb67351c2dd5626.zip
FreeBSD-src-653f8c5e7181f0fd06ea5451ebb67351c2dd5626.tar.gz
Provide ABI compatibility shim to enable configuring of addresses
with ifconfig(8) prior to r228571. Requested by: brooks
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index 08420f4..e17dac2 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -362,6 +362,14 @@ struct ifaliasreq {
int ifra_vhid;
};
+/* Compat with pre-10.x */
+struct oifaliasreq {
+ char ifra_name[IFNAMSIZ];
+ struct sockaddr ifra_addr;
+ struct sockaddr ifra_broadaddr;
+ struct sockaddr ifra_mask;
+};
+
struct ifmediareq {
char ifm_name[IFNAMSIZ]; /* if name, e.g. "en0" */
int ifm_current; /* current media options */
OpenPOWER on IntegriCloud