svr4_sockmod.h revision 49267
143412Snewton/* 243412Snewton * Copyright (c) 1998 Mark Newton 343412Snewton * Copyright (c) 1994 Christos Zoulas 443412Snewton * All rights reserved. 543412Snewton * 643412Snewton * Redistribution and use in source and binary forms, with or without 743412Snewton * modification, are permitted provided that the following conditions 843412Snewton * are met: 943412Snewton * 1. Redistributions of source code must retain the above copyright 1043412Snewton * notice, this list of conditions and the following disclaimer. 1143412Snewton * 2. Redistributions in binary form must reproduce the above copyright 1243412Snewton * notice, this list of conditions and the following disclaimer in the 1343412Snewton * documentation and/or other materials provided with the distribution. 1443412Snewton * 3. The name of the author may not be used to endorse or promote products 1543412Snewton * derived from this software without specific prior written permission 1643412Snewton * 1743412Snewton * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1843412Snewton * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1943412Snewton * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2043412Snewton * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2143412Snewton * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2243412Snewton * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2343412Snewton * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2443412Snewton * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2543412Snewton * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2643412Snewton * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2749267Snewton * 2849267Snewton * $Id$ 2943412Snewton */ 3043412Snewton 3143412Snewton#ifndef _SVR4_SOCKMOD_H_ 3243412Snewton#define _SVR4_SOCKMOD_H_ 3343412Snewton 3443412Snewton#define SVR4_SIMOD ('I' << 8) 3543412Snewton 3643412Snewton#define SVR4_SI_OGETUDATA (SVR4_SIMOD|101) 3743412Snewton#define SVR4_SI_SHUTDOWN (SVR4_SIMOD|102) 3843412Snewton#define SVR4_SI_LISTEN (SVR4_SIMOD|103) 3943412Snewton#define SVR4_SI_SETMYNAME (SVR4_SIMOD|104) 4043412Snewton#define SVR4_SI_SETPEERNAME (SVR4_SIMOD|105) 4143412Snewton#define SVR4_SI_GETINTRANSIT (SVR4_SIMOD|106) 4243412Snewton#define SVR4_SI_TCL_LINK (SVR4_SIMOD|107) 4343412Snewton#define SVR4_SI_TCL_UNLINK (SVR4_SIMOD|108) 4443412Snewton#define SVR4_SI_SOCKPARAMS (SVR4_SIMOD|109) 4543412Snewton#define SVR4_SI_GETUDATA (SVR4_SIMOD|110) 4643412Snewton 4743412Snewton 4843412Snewton#define SVR4_SOCK_DGRAM 1 4943412Snewton#define SVR4_SOCK_STREAM 2 5043412Snewton#define SVR4_SOCK_STREAM_ORD 3 5143412Snewton#define SVR4_SOCK_RAW 4 5243412Snewton#define SVR4_SOCK_RDM 5 5343412Snewton#define SVR4_SOCK_SEQPACKET 6 5443412Snewton 5543412Snewtonstruct svr4_si_sockparms { 5643412Snewton int family; 5743412Snewton int type; 5843412Snewton int protocol; 5943412Snewton}; 6043412Snewton 6143412Snewtonstruct svr4_si_oudata { 6243412Snewton int tidusize; 6343412Snewton int addrsize; 6443412Snewton int optsize; 6543412Snewton int etsdusize; 6643412Snewton int servtype; 6743412Snewton int so_state; 6843412Snewton int so_options; 6943412Snewton int tsdusize; 7043412Snewton}; 7143412Snewton 7243412Snewtonstruct svr4_si_udata { 7343412Snewton int tidusize; 7443412Snewton int addrsize; 7543412Snewton int optsize; 7643412Snewton int etsdusize; 7743412Snewton int servtype; 7843412Snewton int so_state; 7943412Snewton int so_options; 8043412Snewton int tsdusize; 8143412Snewton struct svr4_si_sockparms sockparms; 8243412Snewton}; 8343412Snewton#endif /* !_SVR4_SOCKMOD_H_ */ 84