/*	@(#)spidp.h	13.1 (RC International) 91/02/02	*/
/*
 * Copyright (c) 1984, 1985, 1986, 1987 Regents of the University of California.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms are permitted
 * provided that this notice is preserved and that due credit is given
 * to the University of California at Berkeley. The name of the University
 * may not be used to endorse or promote products derived from this
 * software without specific prior written permission. This software
 * is provided ``as is'' without express or implied warranty.
 *
 *      @(-)spidp.h	7.2 (Berkeley) 1/20/88
 */

/*
 * Definitions for NS(tm) Internet Datagram Protocol
 * containing a Sequenced Packet Protocol packet.
 */
struct spidp {
	struct idp	spi_i;
	struct sphdr 	spi_s;
};
struct spidp_q {
	struct spidp_q	*spi_next;
	struct spidp_q	*spi_prev;
};
#define SPI(x)	((struct spidp *)x)
#define spi_sum		spi_i.idp_sum
#define spi_len		spi_i.idp_len
#define spi_tc		spi_i.idp_tc
#define spi_pt		spi_i.idp_pt
#define spi_dna		spi_i.idp_dna
#define spi_sna		spi_i.idp_sna
#define spi_sport	spi_i.idp_sna.x_port
#define spi_cc		spi_s.sp_cc
#define spi_dt		spi_s.sp_dt
#define spi_sid		spi_s.sp_sid
#define spi_did		spi_s.sp_did
#define spi_seq		spi_s.sp_seq
#define spi_ack		spi_s.sp_ack
#define spi_alo		spi_s.sp_alo
