Commit | Line | Data |
---|---|---|
af457dd6 | 1 | /*********************************************************** |
7b25382f | 2 | Copyright IBM Corporation 1987 |
af457dd6 KS |
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 | */ | |
7b25382f KS |
27 | /* @(#)tp_meas.h 7.4 (Berkeley) %G% */ |
28 | #ifdef TP_PERF_MEAS | |
a50e2bc0 KS |
29 | #define tpmeas(a, b, t, c, d, e) \ |
30 | Tpmeas((u_int)(a), (u_int)(b), t, (u_int)(c), (u_int)(d), (u_int)(e)) | |
af457dd6 KS |
31 | |
32 | struct tp_Meas { | |
33 | int tpm_tseq; | |
34 | u_char tpm_kind; | |
35 | u_short tpm_ref; | |
36 | u_short tpm_size; | |
37 | u_short tpm_window; | |
38 | u_int tpm_seq; | |
39 | struct timeval tpm_time; | |
40 | }; | |
41 | ||
42 | #define TPMEASN 4000 | |
43 | extern int tp_Measn; | |
44 | extern struct tp_Meas tp_Meas[]; | |
45 | ||
46 | /* | |
47 | * the kinds of events for packet tracing are: | |
48 | */ | |
49 | #define TPtime_from_session 0x01 | |
50 | #define TPtime_to_session 0x02 | |
51 | #define TPtime_ack_rcvd 0x03 | |
52 | #define TPtime_ack_sent 0x04 | |
53 | #define TPtime_from_ll 0x05 | |
54 | #define TPtime_to_ll 0x06 | |
55 | #define TPsbsend 0x07 | |
56 | #define TPtime_open 0x08 | |
57 | #define TPtime_open_X 0x28 /* xtd format */ | |
58 | #define TPtime_close 0x09 | |
59 | ||
60 | #endif TP_PERF_MEAS |