xref: /original-bsd/sys/netinet/udp.h (revision 3705696b)
1 /*
2  * Copyright (c) 1982, 1986, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.redist.c%
6  *
7  *	@(#)udp.h	8.1 (Berkeley) 06/10/93
8  */
9 
10 /*
11  * Udp protocol header.
12  * Per RFC 768, September, 1981.
13  */
14 struct udphdr {
15 	u_short	uh_sport;		/* source port */
16 	u_short	uh_dport;		/* destination port */
17 	short	uh_ulen;		/* udp length */
18 	u_short	uh_sum;			/* udp checksum */
19 };
20