1157016Sdes/* 2157016Sdes * Copyright (c) 2005 Reyk Floeter <reyk@openbsd.org> 3157016Sdes * 4157016Sdes * Permission to use, copy, modify, and distribute this software for any 5157016Sdes * purpose with or without fee is hereby granted, provided that the above 6157016Sdes * copyright notice and this permission notice appear in all copies. 7157016Sdes * 8157016Sdes * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9157016Sdes * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10157016Sdes * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11157016Sdes * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12157016Sdes * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13157016Sdes * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14157016Sdes * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15157016Sdes */ 16157016Sdes 17157016Sdes#ifndef _PORT_TUN_H 18157016Sdes#define _PORT_TUN_H 19157016Sdes 20162852Sdesstruct Channel; 21157016Sdes 22157016Sdes#if defined(SSH_TUN_LINUX) || defined(SSH_TUN_FREEBSD) 23157016Sdes# define CUSTOM_SYS_TUN_OPEN 24157016Sdesint sys_tun_open(int, int); 25157016Sdes#endif 26157016Sdes 27157016Sdes#if defined(SSH_TUN_COMPAT_AF) || defined(SSH_TUN_PREPEND_AF) 28157016Sdes# define SSH_TUN_FILTER 29157016Sdesint sys_tun_infilter(struct Channel *, char *, int); 30157016Sdesu_char *sys_tun_outfilter(struct Channel *, u_char **, u_int *); 31157016Sdes#endif 32157016Sdes 33157016Sdes#endif 34