152a38012Sejakowatz /* 252a38012Sejakowatz * Copyright (c) 1982, 1986, 1993 352a38012Sejakowatz *The Regents of the University of California. All rights reserved. 452a38012Sejakowatz * 552a38012Sejakowatz * Redistribution and use in source and binary forms, with or without 652a38012Sejakowatz * modification, are permitted provided that the following conditions 752a38012Sejakowatz * are met: 852a38012Sejakowatz * 1. Redistributions of source code must retain the above copyright 952a38012Sejakowatz * notice, this list of conditions and the following disclaimer. 1052a38012Sejakowatz * 2. Redistributions in binary form must reproduce the above copyright 1152a38012Sejakowatz * notice, this list of conditions and the following disclaimer in the 1252a38012Sejakowatz * documentation and/or other materials provided with the distribution. 1352a38012Sejakowatz * 3. All advertising materials mentioning features or use of this software 1452a38012Sejakowatz * must display the following acknowledgement: 1552a38012Sejakowatz * 1652a38012Sejakowatz * This product includes software developed by the University of 1752a38012Sejakowatz * California, Berkeley and its contributors. 1852a38012Sejakowatz * 1952a38012Sejakowatz * 4. Neither the name of the University nor the names of its contributors 2052a38012Sejakowatz * may be used to endorse or promote products derived from this software 2152a38012Sejakowatz * without specific prior written permission. 2252a38012Sejakowatz * 2352a38012Sejakowatz * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2452a38012Sejakowatz * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2552a38012Sejakowatz * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2652a38012Sejakowatz * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2752a38012Sejakowatz * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2852a38012Sejakowatz * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2952a38012Sejakowatz * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3052a38012Sejakowatz * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3152a38012Sejakowatz * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3252a38012Sejakowatz * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3352a38012Sejakowatz * SUCH DAMAGE. 3452a38012Sejakowatz * 3552a38012Sejakowatz *@(#)udp.h8.1 (Berkeley) 6/10/93 3652a38012Sejakowatz */ 3752a38012Sejakowatz 3852a38012Sejakowatz #ifndef NETINET_UDP_H 3952a38012Sejakowatz #define NETINET_UDP_H 4052a38012Sejakowatz 41*62b4effaSIthamar R. Adema #include <stdint.h> 42*62b4effaSIthamar R. Adema 4352a38012Sejakowatz struct udphdr { 44*62b4effaSIthamar R. Adema uint16_t uh_sport; 45*62b4effaSIthamar R. Adema uint16_t uh_dport; 46*62b4effaSIthamar R. Adema uint16_t uh_ulen; 47*62b4effaSIthamar R. Adema uint16_t uh_sum; 4852a38012Sejakowatz }; 4952a38012Sejakowatz 5052a38012Sejakowatz #endif /* NETINET_UDP_H */ 51