1*a8bdd1cdShshoexer /* $OpenBSD: udp_encap.h,v 1.2 2005/03/04 16:57:34 hshoexer Exp $ */ 2cd6bf844Sho 3cd6bf844Sho /* 4cd6bf844Sho * Copyright (c) 1998 Niklas Hallqvist. All rights reserved. 5cd6bf844Sho * Copyright (c) 2004 H�kan Olsson. All rights reserved. 6cd6bf844Sho * 7cd6bf844Sho * Redistribution and use in source and binary forms, with or without 8cd6bf844Sho * modification, are permitted provided that the following conditions 9cd6bf844Sho * are met: 10cd6bf844Sho * 1. Redistributions of source code must retain the above copyright 11cd6bf844Sho * notice, this list of conditions and the following disclaimer. 12cd6bf844Sho * 2. Redistributions in binary form must reproduce the above copyright 13cd6bf844Sho * notice, this list of conditions and the following disclaimer in the 14cd6bf844Sho * documentation and/or other materials provided with the distribution. 15cd6bf844Sho * 16cd6bf844Sho * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17cd6bf844Sho * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18cd6bf844Sho * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19cd6bf844Sho * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20cd6bf844Sho * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21cd6bf844Sho * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22cd6bf844Sho * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23cd6bf844Sho * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24cd6bf844Sho * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25cd6bf844Sho * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26cd6bf844Sho */ 27cd6bf844Sho 28cd6bf844Sho #ifndef _UDP_ENCAP_H_ 29cd6bf844Sho #define _UDP_ENCAP_H_ 30cd6bf844Sho 31cd6bf844Sho struct transport *udp_encap_bind (const struct sockaddr *); 32cd6bf844Sho void udp_encap_init (void); 33cd6bf844Sho 34cd6bf844Sho extern char *udp_encap_default_port; 35cd6bf844Sho 36cd6bf844Sho #endif /* _UDP_H_ */ 37