xref: /original-bsd/sys/netns/sp.h (revision 53787e02)
1 /*
2  * Copyright (c) 1982 Regents of the University of California.
3  * All rights reserved.  The Berkeley software License Agreement
4  * specifies the terms and conditions for redistribution.
5  *
6  *	@(#)sp.h	6.2 (Berkeley) 06/08/85
7  */
8 
9 /*
10  * Definitions for Xerox NS style sequenced packet protocol
11  */
12 
13 struct sphdr {
14 	u_char	sp_cc;		/* connection control */
15 	u_char	sp_dt;		/* datastream type */
16 #define	SP_SP	0x80		/* system packet */
17 #define	SP_SA	0x40		/* send acknowledgement */
18 #define	SP_OB	0x20		/* attention (out of band data) */
19 #define	SP_EM	0x10		/* end of message */
20 	u_short	sp_sid;		/* source connection identifier */
21 	u_short	sp_did;		/* destination connection identifier */
22 	u_short	sp_seq;		/* sequence number */
23 	u_short	sp_ack;		/* acknowledge number */
24 	u_short	sp_alo;		/* allocation number */
25 };
26