udp.h revision 1542
1240116Smarcel/*
2240116Smarcel * Copyright (c) 1982, 1986, 1993
3240116Smarcel *	The Regents of the University of California.  All rights reserved.
4240116Smarcel *
5240116Smarcel * Redistribution and use in source and binary forms, with or without
6240116Smarcel * modification, are permitted provided that the following conditions
7240116Smarcel * are met:
8240116Smarcel * 1. Redistributions of source code must retain the above copyright
9240116Smarcel *    notice, this list of conditions and the following disclaimer.
10240116Smarcel * 2. Redistributions in binary form must reproduce the above copyright
11240116Smarcel *    notice, this list of conditions and the following disclaimer in the
12240116Smarcel *    documentation and/or other materials provided with the distribution.
13240116Smarcel * 3. All advertising materials mentioning features or use of this software
14240116Smarcel *    must display the following acknowledgement:
15240116Smarcel *	This product includes software developed by the University of
16240116Smarcel *	California, Berkeley and its contributors.
17240116Smarcel * 4. Neither the name of the University nor the names of its contributors
18240116Smarcel *    may be used to endorse or promote products derived from this software
19240116Smarcel *    without specific prior written permission.
20240116Smarcel *
21240116Smarcel * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22240116Smarcel * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23240116Smarcel * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24240116Smarcel * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25240116Smarcel * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26275988Sngie * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27275988Sngie * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28240116Smarcel * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29240116Smarcel * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30240116Smarcel * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31240116Smarcel * SUCH DAMAGE.
32240116Smarcel *
33240116Smarcel *	@(#)udp.h	8.1 (Berkeley) 6/10/93
34240116Smarcel */
35240116Smarcel
36240116Smarcel/*
37240116Smarcel * Udp protocol header.
38240116Smarcel * Per RFC 768, September, 1981.
39240116Smarcel */
40240116Smarcelstruct udphdr {
41240116Smarcel	u_short	uh_sport;		/* source port */
42240116Smarcel	u_short	uh_dport;		/* destination port */
43240116Smarcel	short	uh_ulen;		/* udp length */
44240116Smarcel	u_short	uh_sum;			/* udp checksum */
45240116Smarcel};
46240116Smarcel