xref: /csrg-svn/sys/netns/spidp.h (revision 33371)
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  *      @(#)spidp.h	7.2 (Berkeley) 01/20/88
13  */
14 
15 /*
16  * Definitions for NS(tm) Internet Datagram Protocol
17  * containing a Sequenced Packet Protocol packet.
18  */
19 struct spidp {
20 	struct idp	si_i;
21 	struct sphdr 	si_s;
22 };
23 struct spidp_q {
24 	struct spidp_q	*si_next;
25 	struct spidp_q	*si_prev;
26 };
27 #define SI(x)	((struct spidp *)x)
28 #define si_sum	si_i.idp_sum
29 #define si_len	si_i.idp_len
30 #define si_tc	si_i.idp_tc
31 #define si_pt	si_i.idp_pt
32 #define si_dna	si_i.idp_dna
33 #define si_sna	si_i.idp_sna
34 #define si_sport	si_i.idp_sna.x_port
35 #define si_cc	si_s.sp_cc
36 #define si_dt	si_s.sp_dt
37 #define si_sid	si_s.sp_sid
38 #define si_did	si_s.sp_did
39 #define si_seq	si_s.sp_seq
40 #define si_ack	si_s.sp_ack
41 #define si_alo	si_s.sp_alo
42