/*
 *------------------------------------------------------------------
 *
 * $Source: /mit/cgw/src/gw/in/RCS/inudp.h,v $
 * $Revision: 1.3 $
 * $Date: 89/03/18 22:11:35 $
 * $State: Exp $
 * $Author: jon $
 * $Locker:  $
 *
 * $Log:	inudp.h,v $
 * Revision 1.3  89/03/18  22:11:35  jon
 * add several new ports.
 * 
 * Revision 1.2  88/08/27  16:55:08  jon
 * Add SNMP ports.
 * 
 * Revision 1.1  88/03/28  17:03:30  jon
 * Initial revision
 * 
 * 
 *------------------------------------------------------------------
 */

/* Copyright 1984 by the Massachusetts Institute of Technology */


/* A UDP packet */
struct	udppktst {	unss	u_src;
			unss	u_dst;
			unss	u_len;
			unss	u_chk;
/*			byte	u_data[];	*/
		};

/* The UDP Pseudo Header (the UDP checksum algorithm is a crock of shit) */
struct udp_ph {	unsl	uph_src;
		unsl	uph_dst;
		unsb	uph_zero;
		unsb	uph_prot;
		unss	uph_len;
	    };

#define	udppkt	struct udppktst
#define	mkudp(x)	((udppkt *) (x))

/* Socket numbers */
#define TIME_PORT        37
#define BOOTP_SERVER	67
#define BOOTP_CLIENT	68
#define GW_CONTROL	88
#define NTP_PORT        123
#define SNMP_PORT       161     /* Simple Network Monitoring Protocol */
#define SNMP_TRAP_PORT  162     /*   see RFCs 1065, 1066, 1067        */
#define SYSLOG_PORT     514
#define RIPUDPSOCK	520	/* Routing Information Protocol */
#define RIPUDPSOCK2     522     /* Secondary RIP port to get out of the way
                                   of other RIP speakers */
#define KERBEROS_PORT   750
#define GWSTATSOCK	25321	/* Status request/response */

