/*
 * pathchirp.h
 * Copyright (c) 2003 Rice University
 * All Rights Reserved.
 *
 * Permission to use, copy, modify, distribute, and sell this software
 * and its documentation is hereby granted without
 * fee, provided that the above copyright notice appear in all copies
 * and that both that copyright notice and this permission notice
 * appear in supporting documentation, and that the name of Rice
 * University not be used in advertising or publicity pertaining to
 * distribution of the software without specific, written prior
 * permission.  Rice University makes no representations about the
 * suitability of this software for any purpose.  It is provided "as
 * is" without express or implied warranty.  
 *
 * RICE UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
 * SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
 * FITNESS, IN NO EVENT SHALL RICE UNIVERSITY BE LIABLE FOR ANY
 * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
 * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 * SOFTWARE.
 *
 * Author: Vinay Ribeiro, vinay@rice.edu.  */


#define RECVPORT	8165		/* port on which receiver waits */
#define	READPORT	8167		/* Reader listens to this port */
#define MAXRCVBUF	32768		/* Maximum receive buffer */
#define	NO		0
#define	YES		1
#define	MAXFNAME	140		/* Maximum filename */
#define	MAXMESG		2048		/* Maximum packet size */


struct udprecord {
	u_long 	num;			/* sender's pkt number */
	  struct	timeval	snd;		/* sender's timestamp */
};

struct pkt_info {
	double snd_time;		/* sender's timestamp */
	double rcv_time;		/* receiver timestamp */
        u_long 	num;			/* sender's pkt number */
	int context_switch;             /* if context switch =1, else 0 */
};

struct tcprecord {
  long num_interarrival; // one less than the number of packets per chirp
  long inter_chirp_time;/* time between chirps*/
  long   low_rate;/*lowest rate (Mbps) to probe at*/
  long high_rate;/*highest rate (Mbps) to probe at */
  long spread_factor; /* decrease in spread of packets within the chirp*/
  long	pktsize;/*pkt size in bytes used for probing */
  char localhost[100];/*string with local host name*/
};
