udp.h revision 2169
1279377Simp/*
2279377Simp * Copyright (c) 1982, 1986, 1993
3279377Simp *	The Regents of the University of California.  All rights reserved.
4279377Simp *
5279377Simp * Redistribution and use in source and binary forms, with or without
6279377Simp * modification, are permitted provided that the following conditions
7279377Simp * are met:
8279377Simp * 1. Redistributions of source code must retain the above copyright
9279377Simp *    notice, this list of conditions and the following disclaimer.
10279377Simp * 2. Redistributions in binary form must reproduce the above copyright
11279377Simp *    notice, this list of conditions and the following disclaimer in the
12279377Simp *    documentation and/or other materials provided with the distribution.
13279377Simp * 3. All advertising materials mentioning features or use of this software
14279377Simp *    must display the following acknowledgement:
15279377Simp *	This product includes software developed by the University of
16279377Simp *	California, Berkeley and its contributors.
17279377Simp * 4. Neither the name of the University nor the names of its contributors
18279377Simp *    may be used to endorse or promote products derived from this software
19279377Simp *    without specific prior written permission.
20279377Simp *
21279377Simp * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
22279377Simp * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23279377Simp * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24279377Simp * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
25279377Simp * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26279377Simp * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27279377Simp * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28279377Simp * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29279377Simp * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30279377Simp * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31279377Simp * SUCH DAMAGE.
32279377Simp *
33279377Simp *	@(#)udp.h	8.1 (Berkeley) 6/10/93
34279377Simp * $Id: udp.h,v 1.2 1994/08/02 07:49:22 davidg Exp $
35279377Simp */
36279377Simp
37279377Simp#ifndef _NETINET_UDP_H_
38279377Simp#define _NETINET_UDP_H_
39279377Simp
40279377Simp/*
41279377Simp * Udp protocol header.
42279377Simp * Per RFC 768, September, 1981.
43279377Simp */
44279377Simpstruct udphdr {
45279377Simp	u_short	uh_sport;		/* source port */
46279377Simp	u_short	uh_dport;		/* destination port */
47279377Simp	short	uh_ulen;		/* udp length */
48279377Simp	u_short	uh_sum;			/* udp checksum */
49279377Simp};
50279377Simp
51279377Simp#endif
52279377Simp