10Sstevel@tonic-gate /* 2*722Smuffin * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 30Sstevel@tonic-gate * Use is subject to license terms. 40Sstevel@tonic-gate */ 50Sstevel@tonic-gate 60Sstevel@tonic-gate /* 70Sstevel@tonic-gate * Copyright (c) 1982, 1986 Regents of the University of California. 80Sstevel@tonic-gate * All rights reserved. The Berkeley software License Agreement 90Sstevel@tonic-gate * specifies the terms and conditions for redistribution. 100Sstevel@tonic-gate */ 110Sstevel@tonic-gate 12*722Smuffin #ifndef _sys_sockio_h 13*722Smuffin #define _sys_sockio_h 14*722Smuffin 150Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 160Sstevel@tonic-gate 170Sstevel@tonic-gate /* 180Sstevel@tonic-gate * General socket ioctl definitions. 190Sstevel@tonic-gate */ 200Sstevel@tonic-gate 210Sstevel@tonic-gate #include <sys/ioccom.h> 220Sstevel@tonic-gate 230Sstevel@tonic-gate /* socket i/o controls */ 24*722Smuffin #define SIOCSHIWAT _IOW('s', 0, int) /* set high watermark */ 25*722Smuffin #define SIOCGHIWAT _IOR('s', 1, int) /* get high watermark */ 26*722Smuffin #define SIOCSLOWAT _IOW('s', 2, int) /* set low watermark */ 27*722Smuffin #define SIOCGLOWAT _IOR('s', 3, int) /* get low watermark */ 28*722Smuffin #define SIOCATMARK _IOR('s', 7, int) /* at oob mark? */ 29*722Smuffin #define SIOCSPGRP _IOW('s', 8, int) /* set process group */ 30*722Smuffin #define SIOCGPGRP _IOR('s', 9, int) /* get process group */ 310Sstevel@tonic-gate 32*722Smuffin #define SIOCADDRT _IOW('r', 10, struct rtentry) /* add route */ 33*722Smuffin #define SIOCDELRT _IOW('r', 11, struct rtentry) /* delete route */ 340Sstevel@tonic-gate 35*722Smuffin #define SIOCSIFADDR _IOW('i', 12, struct ifreq) /* set ifnet address */ 36*722Smuffin #define SIOCGIFADDR _IOWR('i',13, struct ifreq) /* get ifnet address */ 37*722Smuffin #define SIOCSIFDSTADDR _IOW('i', 14, struct ifreq) /* set p-p address */ 38*722Smuffin #define SIOCGIFDSTADDR _IOWR('i',15, struct ifreq) /* get p-p address */ 39*722Smuffin #define SIOCSIFFLAGS _IOW('i', 16, struct ifreq) /* set ifnet flags */ 40*722Smuffin #define SIOCGIFFLAGS _IOWR('i',17, struct ifreq) /* get ifnet flags */ 41*722Smuffin #define SIOCSIFMEM _IOW('i', 18, struct ifreq) /* set interface mem */ 42*722Smuffin #define SIOCGIFMEM _IOWR('i',19, struct ifreq) /* get interface mem */ 43*722Smuffin #define SIOCGIFCONF _IOWR('i',20, struct ifconf) /* get ifnet list */ 44*722Smuffin #define SIOCSIFMTU _IOW('i', 21, struct ifreq) /* set if_mtu */ 45*722Smuffin #define SIOCGIFMTU _IOWR('i',22, struct ifreq) /* get if_mtu */ 460Sstevel@tonic-gate 470Sstevel@tonic-gate /* from 4.3BSD */ 48*722Smuffin #define SIOCGIFBRDADDR _IOWR('i',23, struct ifreq) /* get broadcast addr */ 49*722Smuffin #define SIOCSIFBRDADDR _IOW('i',24, struct ifreq) /* set broadcast addr */ 50*722Smuffin #define SIOCGIFNETMASK _IOWR('i',25, struct ifreq) /* get net addr mask */ 51*722Smuffin #define SIOCSIFNETMASK _IOW('i',26, struct ifreq) /* set net addr mask */ 52*722Smuffin #define SIOCGIFMETRIC _IOWR('i',27, struct ifreq) /* get IF metric */ 53*722Smuffin #define SIOCSIFMETRIC _IOW('i',28, struct ifreq) /* set IF metric */ 540Sstevel@tonic-gate 55*722Smuffin #define SIOCSARP _IOW('i', 30, struct arpreq) /* set arp entry */ 56*722Smuffin #define SIOCGARP _IOWR('i',31, struct arpreq) /* get arp entry */ 57*722Smuffin #define SIOCDARP _IOW('i', 32, struct arpreq) /* delete arp entry */ 58*722Smuffin #define SIOCUPPER _IOW('i', 40, struct ifreq) /* attach upper layer */ 59*722Smuffin #define SIOCLOWER _IOW('i', 41, struct ifreq) /* attach lower layer */ 60*722Smuffin #define SIOCSETSYNC _IOW('i', 44, struct ifreq) /* set syncmode */ 61*722Smuffin #define SIOCGETSYNC _IOWR('i', 45, struct ifreq) /* get syncmode */ 62*722Smuffin #define SIOCSSDSTATS _IOWR('i', 46, struct ifreq) /* sync data stats */ 63*722Smuffin #define SIOCSSESTATS _IOWR('i', 47, struct ifreq) /* sync error stats */ 640Sstevel@tonic-gate 65*722Smuffin #define SIOCSPROMISC _IOW('i', 48, int) /* request promisc mode 660Sstevel@tonic-gate on/off */ 67*722Smuffin #define SIOCADDMULTI _IOW('i', 49, struct ifreq) /* set m/c address */ 68*722Smuffin #define SIOCDELMULTI _IOW('i', 50, struct ifreq) /* clr m/c address */ 690Sstevel@tonic-gate 700Sstevel@tonic-gate /* FDDI controls */ 71*722Smuffin #define SIOCFDRESET _IOW('i', 51, struct ifreq) /* Reset FDDI */ 72*722Smuffin #define SIOCFDSLEEP _IOW('i', 52, struct ifreq) /* Sleep until next dnld req */ 73*722Smuffin #define SIOCSTRTFMWAR _IOW('i', 53, struct ifreq) /* Start FW at an addr */ 74*722Smuffin #define SIOCLDNSTRTFW _IOW('i', 54, struct ifreq) /* Load the shared memory */ 75*722Smuffin #define SIOCGETFDSTAT _IOW('i', 55, struct ifreq) /* Get FDDI stats */ 76*722Smuffin #define SIOCFDNMIINT _IOW('i', 56, struct ifreq) /* NMI to fddi */ 77*722Smuffin #define SIOCFDEXUSER _IOW('i', 57, struct ifreq) /* Exec in user mode */ 78*722Smuffin #define SIOCFDGNETMAP _IOW('i', 58, struct ifreq) /* Get a netmap entry */ 79*722Smuffin #define SIOCFDGIOCTL _IOW('i', 59, struct ifreq) /* Generic ioctl for fddi */ 800Sstevel@tonic-gate 810Sstevel@tonic-gate /* protocol i/o controls */ 82*722Smuffin #define SIOCSNIT _IOW('p', 0, struct nit_ioc) /* set nit modes */ 83*722Smuffin #define SIOCGNIT _IOWR('p', 1, struct nit_ioc) /* get nit modes */ 840Sstevel@tonic-gate 85*722Smuffin #endif /* !_sys_sockio_h */ 86