1 /* 2 * Copyright (c) 1984, 1985, 1986, 1987 Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms are permitted 6 * provided that this notice is preserved and that due credit is given 7 * to the University of California at Berkeley. The name of the University 8 * may not be used to endorse or promote products derived from this 9 * software without specific prior written permission. This software 10 * is provided ``as is'' without express or implied warranty. 11 * 12 * @(#)sp.h 7.2 (Berkeley) 01/20/88 13 */ 14 15 /* 16 * Definitions for Xerox NS style sequenced packet protocol 17 */ 18 19 struct sphdr { 20 u_char sp_cc; /* connection control */ 21 u_char sp_dt; /* datastream type */ 22 #define SP_SP 0x80 /* system packet */ 23 #define SP_SA 0x40 /* send acknowledgement */ 24 #define SP_OB 0x20 /* attention (out of band data) */ 25 #define SP_EM 0x10 /* end of message */ 26 u_short sp_sid; /* source connection identifier */ 27 u_short sp_did; /* destination connection identifier */ 28 u_short sp_seq; /* sequence number */ 29 u_short sp_ack; /* acknowledge number */ 30 u_short sp_alo; /* allocation number */ 31 }; 32