136405Ssklower /*********************************************************** 2*39196Ssklower Copyright IBM Corporation 1987 336405Ssklower 436405Ssklower All Rights Reserved 536405Ssklower 636405Ssklower Permission to use, copy, modify, and distribute this software and its 736405Ssklower documentation for any purpose and without fee is hereby granted, 836405Ssklower provided that the above copyright notice appear in all copies and that 936405Ssklower both that copyright notice and this permission notice appear in 1036405Ssklower supporting documentation, and that the name of IBM not be 1136405Ssklower used in advertising or publicity pertaining to distribution of the 1236405Ssklower software without specific, written prior permission. 1336405Ssklower 1436405Ssklower IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 1536405Ssklower ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 1636405Ssklower IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 1736405Ssklower ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 1836405Ssklower WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 1936405Ssklower ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 2036405Ssklower SOFTWARE. 2136405Ssklower 2236405Ssklower ******************************************************************/ 2336405Ssklower 2436405Ssklower /* 2536405Ssklower * ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison 2636405Ssklower */ 27*39196Ssklower /* @(#)tp_meas.h 7.4 (Berkeley) 09/22/89 */ 28*39196Ssklower #ifdef TP_PERF_MEAS 2937469Ssklower #define tpmeas(a, b, t, c, d, e) \ 3037469Ssklower Tpmeas((u_int)(a), (u_int)(b), t, (u_int)(c), (u_int)(d), (u_int)(e)) 3136405Ssklower 3236405Ssklower struct tp_Meas { 3336405Ssklower int tpm_tseq; 3436405Ssklower u_char tpm_kind; 3536405Ssklower u_short tpm_ref; 3636405Ssklower u_short tpm_size; 3736405Ssklower u_short tpm_window; 3836405Ssklower u_int tpm_seq; 3936405Ssklower struct timeval tpm_time; 4036405Ssklower }; 4136405Ssklower 4236405Ssklower #define TPMEASN 4000 4336405Ssklower extern int tp_Measn; 4436405Ssklower extern struct tp_Meas tp_Meas[]; 4536405Ssklower 4636405Ssklower /* 4736405Ssklower * the kinds of events for packet tracing are: 4836405Ssklower */ 4936405Ssklower #define TPtime_from_session 0x01 5036405Ssklower #define TPtime_to_session 0x02 5136405Ssklower #define TPtime_ack_rcvd 0x03 5236405Ssklower #define TPtime_ack_sent 0x04 5336405Ssklower #define TPtime_from_ll 0x05 5436405Ssklower #define TPtime_to_ll 0x06 5536405Ssklower #define TPsbsend 0x07 5636405Ssklower #define TPtime_open 0x08 5736405Ssklower #define TPtime_open_X 0x28 /* xtd format */ 5836405Ssklower #define TPtime_close 0x09 5936405Ssklower 6036405Ssklower #endif TP_PERF_MEAS 61