1e06e816fSKevin Lo /*- 2e06e816fSKevin Lo * Copyright (c) 2014, Kevin Lo 3e06e816fSKevin Lo * All rights reserved. 4e06e816fSKevin Lo * 5e06e816fSKevin Lo * Redistribution and use in source and binary forms, with or without 6e06e816fSKevin Lo * modification, are permitted provided that the following conditions 7e06e816fSKevin Lo * are met: 8e06e816fSKevin Lo * 1. Redistributions of source code must retain the above copyright 9e06e816fSKevin Lo * notice, this list of conditions and the following disclaimer. 10e06e816fSKevin Lo * 2. Redistributions in binary form must reproduce the above copyright 11e06e816fSKevin Lo * notice, this list of conditions and the following disclaimer in the 12e06e816fSKevin Lo * documentation and/or other materials provided with the distribution. 13e06e816fSKevin Lo * 14e06e816fSKevin Lo * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 15e06e816fSKevin Lo * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16e06e816fSKevin Lo * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17e06e816fSKevin Lo * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 18e06e816fSKevin Lo * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19e06e816fSKevin Lo * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20e06e816fSKevin Lo * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21e06e816fSKevin Lo * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22e06e816fSKevin Lo * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23e06e816fSKevin Lo * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24e06e816fSKevin Lo * SUCH DAMAGE. 25e06e816fSKevin Lo */ 26e06e816fSKevin Lo 27e06e816fSKevin Lo #ifndef _NETINET_UDPLITE_H_ 28e06e816fSKevin Lo #define _NETINET_UDPLITE_H_ 29e06e816fSKevin Lo 30e06e816fSKevin Lo /* 31*7bda9663SMichael Tuexen * UDP-Lite protocol header. 32*7bda9663SMichael Tuexen * Per RFC 3828, July, 2004. 33*7bda9663SMichael Tuexen */ 34*7bda9663SMichael Tuexen struct udplitehdr { 35*7bda9663SMichael Tuexen u_short udplite_sport; /* UDO-Lite source port */ 36*7bda9663SMichael Tuexen u_short udplite_dport; /* UDP-Lite destination port */ 37*7bda9663SMichael Tuexen u_short udplite_coverage; /* UDP-Lite checksum coverage */ 38*7bda9663SMichael Tuexen u_short udplite_checksum; /* UDP-Lite checksum */ 39*7bda9663SMichael Tuexen }; 40*7bda9663SMichael Tuexen 41*7bda9663SMichael Tuexen /* 42e06e816fSKevin Lo * User-settable options (used with setsockopt). 43e06e816fSKevin Lo */ 44e06e816fSKevin Lo #define UDPLITE_SEND_CSCOV 2 /* Sender checksum coverage. */ 45e06e816fSKevin Lo #define UDPLITE_RECV_CSCOV 4 /* Receiver checksum coverage. */ 46e06e816fSKevin Lo 47e06e816fSKevin Lo #endif /* !_NETINET_UDPLITE_H_ */ 48