xref: /original-bsd/sys/netiso/tp_meas.h (revision a76afa45)
1 /***********************************************************
2 		Copyright IBM Corporation 1987
3 
4                       All Rights Reserved
5 
6 Permission to use, copy, modify, and distribute this software and its
7 documentation for any purpose and without fee is hereby granted,
8 provided that the above copyright notice appear in all copies and that
9 both that copyright notice and this permission notice appear in
10 supporting documentation, and that the name of IBM not be
11 used in advertising or publicity pertaining to distribution of the
12 software without specific, written prior permission.
13 
14 IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
15 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
16 IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
17 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
18 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
19 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20 SOFTWARE.
21 
22 ******************************************************************/
23 
24 /*
25  * ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
26  */
27 #ifdef TPPT
28 #define TP_PERF_MEAS
29 #endif TPPT
30 #define tpmeas(a, b, t, c, d, e) \
31 	Tpmeas((u_int)(a), (u_int)(b), t, (u_int)(c), (u_int)(d), (u_int)(e))
32 #ifdef TP_PERF_MEAS
33 
34 struct tp_Meas {
35 	int			tpm_tseq;
36 	u_char		tpm_kind;
37 	u_short 	tpm_ref;
38 	u_short		tpm_size;
39 	u_short		tpm_window;
40 	u_int		tpm_seq;
41 	struct timeval	tpm_time;
42 };
43 
44 #define TPMEASN 4000
45 extern int tp_Measn;
46 extern struct tp_Meas tp_Meas[];
47 
48 /*
49  * the kinds of events for packet tracing are:
50  */
51 #define TPtime_from_session	0x01
52 #define TPtime_to_session	0x02
53 #define TPtime_ack_rcvd		0x03
54 #define TPtime_ack_sent		0x04
55 #define TPtime_from_ll		0x05
56 #define TPtime_to_ll		0x06
57 #define TPsbsend			0x07
58 #define TPtime_open			0x08
59 #define TPtime_open_X		0x28 /* xtd format */
60 #define TPtime_close		0x09
61 
62 #endif TP_PERF_MEAS
63