port-tun.h revision 157016
1317017Sdim/* 2317017Sdim * Copyright (c) 2005 Reyk Floeter <reyk@openbsd.org> 3353358Sdim * 4353358Sdim * Permission to use, copy, modify, and distribute this software for any 5353358Sdim * purpose with or without fee is hereby granted, provided that the above 6317017Sdim * copyright notice and this permission notice appear in all copies. 7317017Sdim * 8317017Sdim * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9317017Sdim * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10317017Sdim * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11317017Sdim * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12317017Sdim * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13317017Sdim * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14321238Sdim * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15320041Sdim */ 16317017Sdim 17320041Sdim#ifndef _PORT_TUN_H 18320572Sdim#define _PORT_TUN_H 19320572Sdim 20317017Sdim#include "channels.h" 21317017Sdim 22320572Sdim#if defined(SSH_TUN_LINUX) || defined(SSH_TUN_FREEBSD) 23317017Sdim# define CUSTOM_SYS_TUN_OPEN 24320572Sdimint sys_tun_open(int, int); 25317017Sdim#endif 26320572Sdim 27320572Sdim#if defined(SSH_TUN_COMPAT_AF) || defined(SSH_TUN_PREPEND_AF) 28317017Sdim# define SSH_TUN_FILTER 29317017Sdimint sys_tun_infilter(struct Channel *, char *, int); 30317017Sdimu_char *sys_tun_outfilter(struct Channel *, u_char **, u_int *); 31317017Sdim#endif 32317017Sdim 33320572Sdim#endif 34321238Sdim