1 /* 2 * Copyright (c) 1984, 1985, 1986, 1987 Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms are permitted 6 * provided that this notice is preserved and that due credit is given 7 * to the University of California at Berkeley. The name of the University 8 * may not be used to endorse or promote products derived from this 9 * software without specific prior written permission. This software 10 * is provided ``as is'' without express or implied warranty. 11 * 12 * @(#)idp.h 7.2 (Berkeley) 01/20/88 13 */ 14 15 /* 16 * Definitions for NS(tm) Internet Datagram Protocol 17 */ 18 struct idp { 19 u_short idp_sum; /* Checksum */ 20 u_short idp_len; /* Length, in bytes, including header */ 21 u_char idp_tc; /* Transport Crontrol (i.e. hop count) */ 22 u_char idp_pt; /* Packet Type (i.e. level 2 protocol) */ 23 struct ns_addr idp_dna; /* Destination Network Address */ 24 struct ns_addr idp_sna; /* Source Network Address */ 25 }; 26