udp.h (194062) | udp.h (217126) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1993 3 * The Regents of the University of California. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 * @(#)udp.h 8.1 (Berkeley) 6/10/93 | 1/*- 2 * Copyright (c) 1982, 1986, 1993 3 * The Regents of the University of California. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * 30 * @(#)udp.h 8.1 (Berkeley) 6/10/93 |
31 * $FreeBSD: head/sys/netinet/udp.h 194062 2009-06-12 15:44:35Z vanhu $ | 31 * $FreeBSD: head/sys/netinet/udp.h 217126 2011-01-07 21:40:34Z jhb $ |
32 */ 33 34#ifndef _NETINET_UDP_H_ 35#define _NETINET_UDP_H_ 36 37/* 38 * UDP protocol header. 39 * Per RFC 768, September, 1981. --- 10 unchanged lines hidden (view full) --- 50 */ 51#define UDP_ENCAP 0x01 52 53 54/* 55 * UDP Encapsulation of IPsec Packets options. 56 */ 57/* Encapsulation types. */ | 32 */ 33 34#ifndef _NETINET_UDP_H_ 35#define _NETINET_UDP_H_ 36 37/* 38 * UDP protocol header. 39 * Per RFC 768, September, 1981. --- 10 unchanged lines hidden (view full) --- 50 */ 51#define UDP_ENCAP 0x01 52 53 54/* 55 * UDP Encapsulation of IPsec Packets options. 56 */ 57/* Encapsulation types. */ |
58#define UDP_ENCAP_ESPINUDP_NON_IKE 1 /* draft-ietf-ipsec-nat-t-ike-00/01 */ | 58#define UDP_ENCAP_ESPINUDP_NON_IKE 1 /* draft-ietf-ipsec-nat-t-ike-00/01 */ |
59#define UDP_ENCAP_ESPINUDP 2 /* draft-ietf-ipsec-udp-encaps-02+ */ 60 61/* Default ESP in UDP encapsulation port. */ 62#define UDP_ENCAP_ESPINUDP_PORT 500 63 64/* Maximum UDP fragment size for ESP over UDP. */ 65#define UDP_ENCAP_ESPINUDP_MAXFRAGLEN 552 66 67#endif | 59#define UDP_ENCAP_ESPINUDP 2 /* draft-ietf-ipsec-udp-encaps-02+ */ 60 61/* Default ESP in UDP encapsulation port. */ 62#define UDP_ENCAP_ESPINUDP_PORT 500 63 64/* Maximum UDP fragment size for ESP over UDP. */ 65#define UDP_ENCAP_ESPINUDP_MAXFRAGLEN 552 66 67#endif |