../h => (implicitly) ../sys
[unix-history] / usr / src / sys / netiso / tp_meas.h
CommitLineData
af457dd6
KS
1/***********************************************************
2 Copyright IBM Corporation 1987
3
4 All Rights Reserved
5
6Permission to use, copy, modify, and distribute this software and its
7documentation for any purpose and without fee is hereby granted,
8provided that the above copyright notice appear in all copies and that
9both that copyright notice and this permission notice appear in
10supporting documentation, and that the name of IBM not be
11used in advertising or publicity pertaining to distribution of the
12software without specific, written prior permission.
13
14IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
15ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
16IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
17ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
18WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
19ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20SOFTWARE.
21
22******************************************************************/
23
24/*
25 * ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
26 */
a50e2bc0
KS
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))
af457dd6
KS
32#ifdef TP_PERF_MEAS
33
34struct 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
45extern int tp_Measn;
46extern 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