Define SIOC[SG]IFGENERIC in <sys/sockio.h>, as FreeBSD and OpenBSD do.
This commit is contained in:
parent
c3bd6c3636
commit
19fd9da968
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_rayreg.h,v 1.2 2000/02/27 20:40:43 augustss Exp $ */
|
||||
/* $NetBSD: if_rayreg.h,v 1.3 2000/08/10 11:48:46 ad Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2000 Christian E. Hopps
|
||||
* All rights reserved.
|
||||
|
@ -560,14 +560,6 @@ struct ray_param_req {
|
|||
#define RAY_FAILCAUSE_WAITING 257
|
||||
#endif
|
||||
|
||||
#ifndef SIOCGIFGENERIC
|
||||
#define SIOCGIFGENERIC _IOWR('i', 57, struct ifreq) /* generic IF get op */
|
||||
#endif
|
||||
|
||||
#ifndef SIOCSIFGENERIC
|
||||
#define SIOCSIFGENERIC _IOWR('i', 58, struct ifreq) /* generic IF get op */
|
||||
#endif
|
||||
|
||||
/* get a param the data is a ray_param_request structure */
|
||||
#define SIOCSRAYPARAM SIOCSIFGENERIC
|
||||
#define SIOCGRAYPARAM SIOCGIFGENERIC
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_wi_ieee.h,v 1.5 2000/07/18 15:01:55 onoe Exp $ */
|
||||
/* $NetBSD: if_wi_ieee.h,v 1.6 2000/08/10 11:48:46 ad Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997, 1998, 1999
|
||||
|
@ -54,14 +54,6 @@
|
|||
* interface, didn't I.
|
||||
*/
|
||||
|
||||
#ifndef SIOCSIFGENERIC
|
||||
#define SIOCSIFGENERIC _IOW('i', 57, struct ifreq) /* generic IF set op */
|
||||
#endif
|
||||
|
||||
#ifndef SIOCGIFGENERIC
|
||||
#define SIOCGIFGENERIC _IOWR('i', 58, struct ifreq) /* generic IF get op */
|
||||
#endif
|
||||
|
||||
#ifndef SIOCSWAVELAN
|
||||
#define SIOCSWAVELAN SIOCSIFGENERIC
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_sppp.h,v 1.6 2000/05/02 12:43:16 itojun Exp $ */
|
||||
/* $NetBSD: if_sppp.h,v 1.7 2000/08/10 11:48:46 ad Exp $ */
|
||||
|
||||
/*
|
||||
* Defines for synchronous PPP/Cisco link level subroutines.
|
||||
|
@ -177,8 +177,7 @@ struct spppreq {
|
|||
};
|
||||
|
||||
#if (defined(__FreeBSD_version) && __FreeBSD_version < 300000) || \
|
||||
(defined(__FreeBSD__) && __FreeBSD__ < 3) || \
|
||||
defined(__NetBSD__) || defined (__OpenBSD__)
|
||||
(defined(__FreeBSD__) && __FreeBSD__ < 3)
|
||||
#define SIOCSIFGENERIC _IOW('i', 57, struct ifreq) /* generic IF set op */
|
||||
#define SIOCGIFGENERIC _IOWR('i', 58, struct ifreq) /* generic IF get op */
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sockio.h,v 1.13 2000/07/20 18:40:26 thorpej Exp $ */
|
||||
/* $NetBSD: sockio.h,v 1.14 2000/08/10 11:48:41 ad Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1990, 1993, 1994
|
||||
|
@ -86,6 +86,9 @@
|
|||
#define SIOCSIFMEDIA _IOWR('i', 53, struct ifreq) /* set net media */
|
||||
#define SIOCGIFMEDIA _IOWR('i', 54, struct ifmediareq) /* get net media */
|
||||
|
||||
#define SIOCSIFGENERIC _IOW('i', 57, struct ifreq) /* generic IF set op */
|
||||
#define SIOCGIFGENERIC _IOWR('i', 58, struct ifreq) /* generic IF get op */
|
||||
|
||||
#define SIOCSIFPHYADDR _IOW('i', 70, struct ifaliasreq) /* set gif addres */
|
||||
#define SIOCGIFPSRCADDR _IOWR('i', 71, struct ifreq) /* get gif psrc addr */
|
||||
#define SIOCGIFPDSTADDR _IOWR('i', 72, struct ifreq) /* get gif pdst addr */
|
||||
|
|
Loading…
Reference in New Issue