xref: /csrg-svn/sys/netiso/tp_meas.h (revision 63222)
149268Sbostic /*-
2*63222Sbostic  * Copyright (c) 1991, 1993
3*63222Sbostic  *	The Regents of the University of California.  All rights reserved.
449268Sbostic  *
549268Sbostic  * %sccs.include.redist.c%
649268Sbostic  *
7*63222Sbostic  *	@(#)tp_meas.h	8.1 (Berkeley) 06/10/93
849268Sbostic  */
949268Sbostic 
1036405Ssklower /***********************************************************
1139196Ssklower 				Copyright IBM Corporation 1987
1236405Ssklower 
1336405Ssklower                       All Rights Reserved
1436405Ssklower 
1536405Ssklower Permission to use, copy, modify, and distribute this software and its
1636405Ssklower documentation for any purpose and without fee is hereby granted,
1736405Ssklower provided that the above copyright notice appear in all copies and that
1836405Ssklower both that copyright notice and this permission notice appear in
1936405Ssklower supporting documentation, and that the name of IBM not be
2036405Ssklower used in advertising or publicity pertaining to distribution of the
2136405Ssklower software without specific, written prior permission.
2236405Ssklower 
2336405Ssklower IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
2436405Ssklower ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
2536405Ssklower IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
2636405Ssklower ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
2736405Ssklower WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
2836405Ssklower ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
2936405Ssklower SOFTWARE.
3036405Ssklower 
3136405Ssklower ******************************************************************/
3236405Ssklower 
3336405Ssklower /*
3436405Ssklower  * ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
3536405Ssklower  */
3639196Ssklower #ifdef TP_PERF_MEAS
3737469Ssklower #define tpmeas(a, b, t, c, d, e) \
3837469Ssklower 	Tpmeas((u_int)(a), (u_int)(b), t, (u_int)(c), (u_int)(d), (u_int)(e))
3936405Ssklower 
4036405Ssklower struct tp_Meas {
4136405Ssklower 	int			tpm_tseq;
4236405Ssklower 	u_char		tpm_kind;
4336405Ssklower 	u_short 	tpm_ref;
4436405Ssklower 	u_short		tpm_size;
4536405Ssklower 	u_short		tpm_window;
4636405Ssklower 	u_int		tpm_seq;
4736405Ssklower 	struct timeval	tpm_time;
4836405Ssklower };
4936405Ssklower 
5036405Ssklower #define TPMEASN 4000
5136405Ssklower extern int tp_Measn;
5236405Ssklower extern struct tp_Meas tp_Meas[];
5336405Ssklower 
5436405Ssklower /*
5536405Ssklower  * the kinds of events for packet tracing are:
5636405Ssklower  */
5736405Ssklower #define TPtime_from_session	0x01
5836405Ssklower #define TPtime_to_session	0x02
5936405Ssklower #define TPtime_ack_rcvd		0x03
6036405Ssklower #define TPtime_ack_sent		0x04
6136405Ssklower #define TPtime_from_ll		0x05
6236405Ssklower #define TPtime_to_ll		0x06
6336405Ssklower #define TPsbsend			0x07
6436405Ssklower #define TPtime_open			0x08
6536405Ssklower #define TPtime_open_X		0x28 /* xtd format */
6636405Ssklower #define TPtime_close		0x09
6736405Ssklower 
6860359Sbostic #endif /* TP_PERF_MEAS */
69