oifreq
struct oifreq *oifr = NULL;
if (IOCPARM_LEN(cmd) != sizeof(struct oifreq))
ifrp = (struct oifreq *)
struct oifreq ifr, *ifrp = NULL;
#define FREEBSD_SIOCGIFMTU _IOWR('i', 51, struct oifreq)
#define FREEBSD_SIOCSIFMTU _IOW('i', 52, struct oifreq)
struct oifreq *ifcu_req;
netbsd32_to_oifreq(struct netbsd32_oifreq *s32p, struct oifreq *p, u_long cmd)
IOCTL_STRUCT_CONV_TO(OSIOCGIFFLAGS, oifreq);
IOCTL_STRUCT_CONV_TO(OSIOCSIFFLAGS, oifreq);
netbsd32_from_oifreq(struct oifreq *p,
struct oifreq ifreq; \
struct oifreq ifreq; \
case _IOW('i', 12, struct oifreq): /* SIOCSIFADDR */
case _IOW('i', 14, struct oifreq): /* SIOCSIFDSTADDR */
case _IOW('i', 16, struct oifreq): /* SIOCSIFFLAGS */
case _IOWR('i', 17, struct oifreq): /* SIOCGIFFLAGS */
case _IOWR('i', 13, struct oifreq):
case _IOWR('i', 15, struct oifreq):
case _IOW('i', 21, struct oifreq):
case _IOWR('i', 22, struct oifreq):
case _IOWR('i', 23, struct oifreq):
case _IOW('i', 24, struct oifreq):
case _IOWR('i', 25, struct oifreq):
case _IOW('i', 26, struct oifreq):
case _IOWR('i', 27, struct oifreq):
case _IOWR('i', 28, struct oifreq):
case _IOW('i', 18, struct oifreq): /* SIOCSIFMEM */
case _IOWR('i', 19, struct oifreq): /* SIOCGIFMEM */
case _IOW('i', 40, struct oifreq): /* SIOCUPPER */
case _IOW('i', 41, struct oifreq): /* SIOCLOWER */
case _IOW('i', 44, struct oifreq): /* SIOCSETSYNC */
case _IOWR('i', 45, struct oifreq): /* SIOCGETSYNC */
case _IOWR('i', 46, struct oifreq): /* SIOCSDSTATS */
case _IOWR('i', 47, struct oifreq): /* SIOCSESTATS */
case _IOW('i', 49, struct oifreq): /* SIOCADDMULTI */
case _IOW('i', 50, struct oifreq): /* SIOCDELMULTI */
struct oifreq ifreq; \
struct oifreq ifreq; \
case _IOW('i', 12, struct oifreq):
case _IOWR('i', 13, struct oifreq):
case _IOW('i', 14, struct oifreq):
case _IOWR('i', 15, struct oifreq):
case _IOW('i', 16, struct oifreq):
case _IOWR('i', 17, struct oifreq):
case _IOW('i', 21, struct oifreq):
case _IOWR('i', 22, struct oifreq):
case _IOWR('i', 23, struct oifreq):
case _IOW('i', 24, struct oifreq):
case _IOWR('i', 25, struct oifreq):
case _IOW('i', 26, struct oifreq):
case _IOWR('i', 27, struct oifreq):
case _IOWR('i', 28, struct oifreq):
case _IOW('i', 18, struct oifreq): /* SIOCSIFMEM */
case _IOWR('i', 19, struct oifreq): /* SIOCGIFMEM */
case _IOW('i', 40, struct oifreq): /* SIOCUPPER */
case _IOW('i', 41, struct oifreq): /* SIOCLOWER */
case _IOW('i', 44, struct oifreq): /* SIOCSETSYNC */
case _IOWR('i', 45, struct oifreq): /* SIOCGETSYNC */
case _IOWR('i', 46, struct oifreq): /* SIOCSDSTATS */
case _IOWR('i', 47, struct oifreq): /* SIOCSESTATS */
case _IOW('i', 49, struct oifreq): /* SIOCADDMULTI */
case _IOW('i', 50, struct oifreq): /* SIOCDELMULTI */
#define OSIOCSIFADDR _IOW('i', 12, struct oifreq) /* set ifnet address */
#define OOSIOCGIFADDR _IOWR('i', 13, struct oifreq) /* get ifnet address */
#define OSIOCSIFDSTADDR _IOW('i', 14, struct oifreq) /* set p-p address */
#define OOSIOCGIFDSTADDR _IOWR('i', 15, struct oifreq) /* get p-p address */
#define OSIOCSIFFLAGS _IOW('i', 16, struct oifreq) /* set ifnet flags */
#define OSIOCGIFFLAGS _IOWR('i', 17, struct oifreq) /* get ifnet flags */
#define OOSIOCGIFBRDADDR _IOWR('i', 18, struct oifreq) /* get bcast addr */
#define OSIOCSIFBRDADDR _IOW('i', 19, struct oifreq) /* set bcast addr */
#define OOSIOCGIFNETMASK _IOWR('i', 21, struct oifreq) /* get net addr mask */
#define OSIOCSIFNETMASK _IOW('i', 22, struct oifreq) /* set net addr mask */
#define OSIOCADDMULTI _IOW('i', 49, struct oifreq) /* add m'cast addr */
#define OSIOCDELMULTI _IOW('i', 50, struct oifreq) /* del m'cast addr */
#define SIOCSIFMEDIA_43 _IOWR('i', 53, struct oifreq) /* set net media */
#define OSIOCGIFMTU _IOWR('i', 126, struct oifreq) /* get ifnet mtu */
#define OBIOCGETIF _IOR('B', 107, struct oifreq)
#define OBIOCSETIF _IOW('B', 108, struct oifreq)
#define OTAPGIFNAME _IOR('e', 0, struct oifreq)
struct oifreq ifreq; \
struct oifreq ifreq; \
case _IOW('i', 12, struct oifreq):
case _IOWR('i', 13, struct oifreq):
case _IOW('i', 14, struct oifreq):
case _IOWR('i', 15, struct oifreq):
case _IOW('i', 16, struct oifreq):
case _IOWR('i', 17, struct oifreq):
case _IOWR('i', 18, struct oifreq):
case _IOWR('i', 19, struct oifreq):
case _IOWR('i', 21, struct oifreq):
case _IOW('i', 22, struct oifreq):
case _IOW('i', 26, struct oifreq): /* SIOCSIFRDCTRS? */
case _IOWR('i', 27, struct oifreq): /* SIOCGIFZCTRS? */
case _IOWR('i', 28, struct oifreq): /* read physaddr ? */
case _IOW('i', 40, struct oifreq): /* SIOCARPREQ */
case _IOWR('i', 41, struct oifreq):
case _IOWR('i', 42, struct oifreq):
case _IOW('i', 44, struct oifreq): /* SIOCSETSYNC */
case _IOWR('i', 45, struct oifreq): /* SIOCGETSYNC */
case _IOWR('i', 46, struct oifreq): /* SIOCSDSTATS */
case _IOWR('i', 47, struct oifreq): /* SIOCSESTATS */
case _IOW('i', 49, struct oifreq): /* SIOCADDMULTI */
case _IOW('i', 50, struct oifreq): /* SIOCDELMULTI */
struct oifreq *oifr = NULL;
struct oifreq *oifr = NULL;
oifr = (struct oifreq *)(void *)ifr;
#define OOSIOCGIFBRDADDR _IOWR('i', 18, struct oifreq)
struct oifreq ifreq;