svr4_timod.h revision 267654
185909Simp/*- 285909Simp * Copyright (c) 1998 Mark Newton 3122116Sbde * Copyright (c) 1994 Christos Zoulas 4122116Sbde * All rights reserved. 5122116Sbde * 685909Simp * Redistribution and use in source and binary forms, with or without 785909Simp * modification, are permitted provided that the following conditions 885909Simp * are met: 985909Simp * 1. Redistributions of source code must retain the above copyright 1085909Simp * notice, this list of conditions and the following disclaimer. 1185909Simp * 2. Redistributions in binary form must reproduce the above copyright 1285909Simp * notice, this list of conditions and the following disclaimer in the 1391512Sobrien * documentation and/or other materials provided with the distribution. 14116341Smarkm * 3. The name of the author may not be used to endorse or promote products 1585909Simp * derived from this software without specific prior written permission 1685909Simp * 1785909Simp * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1885909Simp * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19126890Strhodes * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20126890Strhodes * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21126890Strhodes * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22127543Skensmith * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23127204Sobrien * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24127259Smarcel * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25127259Smarcel * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26127543Skensmith * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27127543Skensmith * 28127204Sobrien * $FreeBSD: releng/9.3/sys/compat/svr4/svr4_timod.h 139743 2005-01-05 22:34:37Z imp $ 2985909Simp */ 30127204Sobrien 31126890Strhodes#ifndef _SVR4_TIMOD_H_ 32124834Sru#define _SVR4_TIMOD_H_ 33126890Strhodes 34124834Sru#define SVR4_TIMOD ('T' << 8) 3585909Simp#define SVR4_TI_GETINFO (SVR4_TIMOD|140) 36126890Strhodes#define SVR4_TI_OPTMGMT (SVR4_TIMOD|141) 37126890Strhodes#define SVR4_TI_BIND (SVR4_TIMOD|142) 38126890Strhodes#define SVR4_TI_UNBIND (SVR4_TIMOD|143) 3985909Simp#define SVR4_TI_GETMYNAME (SVR4_TIMOD|144) 40126890Strhodes#define SVR4_TI_GETPEERNAME (SVR4_TIMOD|145) 4185909Simp#define SVR4_TI_SETMYNAME (SVR4_TIMOD|146) 42126890Strhodes#define SVR4_TI_SETPEERNAME (SVR4_TIMOD|147) 43126890Strhodes#define SVR4_TI_SYNC (SVR4_TIMOD|148) 44126890Strhodes#define SVR4_TI_GETADDRS (SVR4_TIMOD|149) 45126890Strhodes 46126890Strhodes#define SVR4_TI_CONNECT_REQUEST 0x00 4785909Simp#define SVR4_TI_CONNECT_RESPONSE 0x01 48126890Strhodes#define SVR4_TI_DISCONNECT_REQUEST 0x02 49126890Strhodes#define SVR4_TI_DATA_REQUEST 0x03 50126938Strhodes#define SVR4_TI_EXPDATA_REQUEST 0x04 5185909Simp#define SVR4_TI_INFO_REQUEST 0x05 5285909Simp#define SVR4_TI_OLD_BIND_REQUEST 0x06 5385909Simp#define SVR4_TI_UNBIND_REQUEST 0x07 54130416Smlaier#define SVR4_TI_SENDTO_REQUEST 0x08 55130416Smlaier#define SVR4_TI_OLD_OPTMGMT_REQUEST 0x09 56130416Smlaier#define SVR4_TI_ORDREL_REQUEST 0x0a 5785909Simp 5885909Simp#define SVR4_TI_ACCEPT_REPLY 0x0b 5985909Simp#define SVR4_TI_CONNECT_REPLY 0x0c 60126263Smlaier#define SVR4_TI_DISCONNECT_IND 0x0d 61126263Smlaier#define SVR4_TI_DATA_IND 0x0e 62126263Smlaier#define SVR4_TI_EXPDATA_IND 0x0f 63116817Ssam#define SVR4_TI_INFO_REPLY 0x10 64116817Ssam#define SVR4_TI_BIND_REPLY 0x11 65116817Ssam#define SVR4_TI_ERROR_REPLY 0x12 66121613Sharti#define SVR4_TI_OK_REPLY 0x13 67121613Sharti#define SVR4_TI_RECVFROM_IND 0x14 68121613Sharti#define SVR4_TI_RECVFROM_ERROR_IND 0x15 6999932Sbde#define SVR4_TI_OPTMGMT_REPLY 0x16 70122116Sbde#define SVR4_TI_ORDREL_IND 0x17 71126890Strhodes 72124834Sru#define SVR4_TI_ADDRESS_REQUEST 0x18 73122116Sbde#define SVR4_TI_ADDRESS_REPLY 0x19 74126890Strhodes 7585909Simp#define SVR4_TI_BIND_REQUEST 0x20 7685909Simp#define SVR4_TI_OPTMGMT_REQUEST 0x21 7785909Simp 7885909Simp#define SVR4_TI__ACCEPT_WAIT 0x10000001 7999923Sbde#define SVR4_TI__ACCEPT_OK 0x10000002 80126938Strhodes 81126938Strhodesstruct svr4_netbuf { 82126938Strhodes u_int maxlen; 8399932Sbde u_int len; 84126938Strhodes char *buf; 8599932Sbde}; 8699932Sbde 87126890Strhodes#endif /* !_SVR4_TIMOD_H_ */ 88126890Strhodes