/* * 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 si_i; struct sphdr si_s; }; struct spidp_q { struct spidp_q *si_next; struct spidp_q *si_prev; }; #define SI(x) ((struct spidp *)x) #define si_sum si_i.idp_sum #define si_len si_i.idp_len #define si_tc si_i.idp_tc #define si_pt si_i.idp_pt #define si_dna si_i.idp_dna #define si_sna si_i.idp_sna #define si_sport si_i.idp_sna.x_port #define si_cc si_s.sp_cc #define si_dt si_s.sp_dt #define si_sid si_s.sp_sid #define si_did si_s.sp_did #define si_seq si_s.sp_seq #define si_ack si_s.sp_ack #define si_alo si_s.sp_alo