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