Annotation of embedaddon/pimdd/include/sunos-cc/sys/sockio.h, revision 1.1.1.1

1.1       misho       1: /*     @(#)sockio.h 1.7 88/12/06 SMI; from UCB ioctl.h 7.1 6/4/86      */
                      2: 
                      3: /*
                      4:  * Copyright (c) 1982, 1986 Regents of the University of California.
                      5:  * All rights reserved.  The Berkeley software License Agreement
                      6:  * specifies the terms and conditions for redistribution.
                      7:  */
                      8: 
                      9: /*
                     10:  * General socket ioctl definitions.
                     11:  */
                     12: 
                     13: #ifndef _sys_sockio_h
                     14: #define _sys_sockio_h
                     15: 
                     16: #include <sys/ioccom.h>
                     17: 
                     18: /* socket i/o controls */
                     19: #define        SIOCSHIWAT      _IOW(s,  0, int)                /* set high watermark */
                     20: #define        SIOCGHIWAT      _IOR(s,  1, int)                /* get high watermark */
                     21: #define        SIOCSLOWAT      _IOW(s,  2, int)                /* set low watermark */
                     22: #define        SIOCGLOWAT      _IOR(s,  3, int)                /* get low watermark */
                     23: #define        SIOCATMARK      _IOR(s,  7, int)                /* at oob mark? */
                     24: #define        SIOCSPGRP       _IOW(s,  8, int)                /* set process group */
                     25: #define        SIOCGPGRP       _IOR(s,  9, int)                /* get process group */
                     26: 
                     27: #define        SIOCADDRT       _IOW(r, 10, struct rtentry)     /* add route */
                     28: #define        SIOCDELRT       _IOW(r, 11, struct rtentry)     /* delete route */
                     29: #define        SIOCSETRTINFO   _IOWR(r, 12, struct fullrtentry) /* change aux info */
                     30: #define        SIOCGETRTINFO   _IOWR(r, 13, struct fullrtentry) /* read aux info */
                     31: #define SIOCGETVIFCNT  _IOWR(r, 20, struct sioc_vif_req)/* get vif pkt cnt */
                     32: #define SIOCGETSGCNT   _IOWR(r, 21, struct sioc_sg_req) /* get s,g pkt cnt */
                     33: /* AH 96/9/23 added GETRPF for PIM support */
                     34: #define SIOCGETRPF     _IOWR(r, 22, struct rpfctl)     /* get rpf info */
                     35: #ifdef  RSVP_ISI
                     36: #define        SIOCGETVIFINF   _IOWR(r, 15, struct vif_conf)   /* read m/c vifs  */
                     37: #endif  RSVP_ISI
                     38: 
                     39: #define        SIOCSIFADDR     _IOW(i, 12, struct ifreq)       /* set ifnet address */
                     40: #define        SIOCGIFADDR     _IOWR(i,13, struct ifreq)       /* get ifnet address */
                     41: #define        SIOCSIFDSTADDR  _IOW(i, 14, struct ifreq)       /* set p-p address */
                     42: #define        SIOCGIFDSTADDR  _IOWR(i,15, struct ifreq)       /* get p-p address */
                     43: #define        SIOCSIFFLAGS    _IOW(i, 16, struct ifreq)       /* set ifnet flags */
                     44: #define        SIOCGIFFLAGS    _IOWR(i,17, struct ifreq)       /* get ifnet flags */
                     45: #define        SIOCSIFMEM      _IOW(i, 18, struct ifreq)       /* set interface mem */
                     46: #define        SIOCGIFMEM      _IOWR(i,19, struct ifreq)       /* get interface mem */
                     47: #define        SIOCGIFCONF     _IOWR(i,20, struct ifconf)      /* get ifnet list */
                     48: #define        SIOCSIFMTU      _IOW(i, 21, struct ifreq)       /* set if_mtu */
                     49: #define        SIOCGIFMTU      _IOWR(i,22, struct ifreq)       /* get if_mtu */
                     50: 
                     51:        /* from 4.3BSD */
                     52: #define        SIOCGIFBRDADDR  _IOWR(i,23, struct ifreq)       /* get broadcast addr */
                     53: #define        SIOCSIFBRDADDR  _IOW(i,24, struct ifreq)        /* set broadcast addr */
                     54: #define        SIOCGIFNETMASK  _IOWR(i,25, struct ifreq)       /* get net addr mask */
                     55: #define        SIOCSIFNETMASK  _IOW(i,26, struct ifreq)        /* set net addr mask */
                     56: #define        SIOCGIFMETRIC   _IOWR(i,27, struct ifreq)       /* get IF metric */
                     57: #define        SIOCSIFMETRIC   _IOW(i,28, struct ifreq)        /* set IF metric */
                     58: 
                     59: #define        SIOCSARP        _IOW(i, 30, struct arpreq)      /* set arp entry */
                     60: #define        SIOCGARP        _IOWR(i,31, struct arpreq)      /* get arp entry */
                     61: #define        SIOCDARP        _IOW(i, 32, struct arpreq)      /* delete arp entry */
                     62: #define        SIOCUPPER       _IOW(i, 40, struct ifreq)       /* attach upper layer */
                     63: #define        SIOCLOWER       _IOW(i, 41, struct ifreq)       /* attach lower layer */
                     64: #define        SIOCSETSYNC     _IOW(i,  44, struct ifreq)      /* set syncmode */
                     65: #define        SIOCGETSYNC     _IOWR(i, 45, struct ifreq)      /* get syncmode */
                     66: #define        SIOCSSDSTATS    _IOWR(i, 46, struct ifreq)      /* sync data stats */
                     67: #define        SIOCSSESTATS    _IOWR(i, 47, struct ifreq)      /* sync error stats */
                     68: 
                     69: #define        SIOCSPROMISC    _IOW(i, 48, int)                /* request promisc mode
                     70:                                                           on/off */
                     71: #define        SIOCADDMULTI    _IOW(i, 49, struct ifreq)       /* set m/c address */
                     72: #define        SIOCDELMULTI    _IOW(i, 50, struct ifreq)       /* clr m/c address */
                     73: 
                     74: /* FDDI controls */
                     75: #define SIOCFDRESET    _IOW(i, 51, struct ifreq)       /* Reset FDDI */
                     76: #define SIOCFDSLEEP    _IOW(i, 52, struct ifreq)       /* Sleep until next dnld req */
                     77: #define SIOCSTRTFMWAR  _IOW(i, 53, struct ifreq)       /* Start FW at an addr */
                     78: #define SIOCLDNSTRTFW  _IOW(i, 54, struct ifreq)       /* Load the shared memory */
                     79: #define SIOCGETFDSTAT  _IOW(i, 55, struct ifreq)       /* Get FDDI stats */
                     80: #define SIOCFDNMIINT   _IOW(i, 56, struct ifreq)        /* NMI to fddi */
                     81: #define SIOCFDEXUSER   _IOW(i, 57, struct ifreq)        /* Exec in user mode */
                     82: #define SIOCFDGNETMAP  _IOW(i, 58, struct ifreq)        /* Get a netmap entry */
                     83: #define SIOCFDGIOCTL    _IOW(i, 59, struct ifreq)       /* Generic ioctl for fddi */
                     84: 
                     85: /* protocol i/o controls */
                     86: #define        SIOCSNIT        _IOW(p,  0, struct nit_ioc)     /* set nit modes */
                     87: #define        SIOCGNIT        _IOWR(p, 1, struct nit_ioc)     /* get nit modes */
                     88: 
                     89: #endif /*!_sys_sockio_h*/

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>