1139743Simp/*- 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 * 2850477Speter * $FreeBSD$ 2943412Snewton */ 3043412Snewton 3143412Snewton#ifndef _SVR4_TIMOD_H_ 3243412Snewton#define _SVR4_TIMOD_H_ 3343412Snewton 3443412Snewton#define SVR4_TIMOD ('T' << 8) 3543412Snewton#define SVR4_TI_GETINFO (SVR4_TIMOD|140) 3643412Snewton#define SVR4_TI_OPTMGMT (SVR4_TIMOD|141) 3743412Snewton#define SVR4_TI_BIND (SVR4_TIMOD|142) 3843412Snewton#define SVR4_TI_UNBIND (SVR4_TIMOD|143) 3943412Snewton#define SVR4_TI_GETMYNAME (SVR4_TIMOD|144) 4043412Snewton#define SVR4_TI_GETPEERNAME (SVR4_TIMOD|145) 4143412Snewton#define SVR4_TI_SETMYNAME (SVR4_TIMOD|146) 4243412Snewton#define SVR4_TI_SETPEERNAME (SVR4_TIMOD|147) 4343412Snewton#define SVR4_TI_SYNC (SVR4_TIMOD|148) 4443412Snewton#define SVR4_TI_GETADDRS (SVR4_TIMOD|149) 4543412Snewton 4643412Snewton#define SVR4_TI_CONNECT_REQUEST 0x00 4743412Snewton#define SVR4_TI_CONNECT_RESPONSE 0x01 4843412Snewton#define SVR4_TI_DISCONNECT_REQUEST 0x02 4943412Snewton#define SVR4_TI_DATA_REQUEST 0x03 5043412Snewton#define SVR4_TI_EXPDATA_REQUEST 0x04 5143412Snewton#define SVR4_TI_INFO_REQUEST 0x05 5243412Snewton#define SVR4_TI_OLD_BIND_REQUEST 0x06 5343412Snewton#define SVR4_TI_UNBIND_REQUEST 0x07 5443412Snewton#define SVR4_TI_SENDTO_REQUEST 0x08 5543412Snewton#define SVR4_TI_OLD_OPTMGMT_REQUEST 0x09 5643412Snewton#define SVR4_TI_ORDREL_REQUEST 0x0a 5743412Snewton 5843412Snewton#define SVR4_TI_ACCEPT_REPLY 0x0b 5943412Snewton#define SVR4_TI_CONNECT_REPLY 0x0c 6043412Snewton#define SVR4_TI_DISCONNECT_IND 0x0d 6143412Snewton#define SVR4_TI_DATA_IND 0x0e 6243412Snewton#define SVR4_TI_EXPDATA_IND 0x0f 6343412Snewton#define SVR4_TI_INFO_REPLY 0x10 6443412Snewton#define SVR4_TI_BIND_REPLY 0x11 6543412Snewton#define SVR4_TI_ERROR_REPLY 0x12 6643412Snewton#define SVR4_TI_OK_REPLY 0x13 6743412Snewton#define SVR4_TI_RECVFROM_IND 0x14 6843412Snewton#define SVR4_TI_RECVFROM_ERROR_IND 0x15 6943412Snewton#define SVR4_TI_OPTMGMT_REPLY 0x16 7043412Snewton#define SVR4_TI_ORDREL_IND 0x17 7143412Snewton 7243412Snewton#define SVR4_TI_ADDRESS_REQUEST 0x18 7343412Snewton#define SVR4_TI_ADDRESS_REPLY 0x19 7443412Snewton 7543412Snewton#define SVR4_TI_BIND_REQUEST 0x20 7643412Snewton#define SVR4_TI_OPTMGMT_REQUEST 0x21 7743412Snewton 7843412Snewton#define SVR4_TI__ACCEPT_WAIT 0x10000001 7943412Snewton#define SVR4_TI__ACCEPT_OK 0x10000002 8043412Snewton 8143412Snewtonstruct svr4_netbuf { 8243412Snewton u_int maxlen; 8343412Snewton u_int len; 8443412Snewton char *buf; 8543412Snewton}; 8643412Snewton 8743412Snewton#endif /* !_SVR4_TIMOD_H_ */ 88