⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 forward.h

📁 OpenVPN is a robust and highly flexible tunneling application that uses all of the encryption, authe
💻 H
字号:
/* *  OpenVPN -- An application to securely tunnel IP networks *             over a single TCP/UDP port, with support for SSL/TLS-based *             session authentication and key exchange, *             packet encryption, packet authentication, and *             packet compression. * *  Copyright (C) 2002-2004 James Yonan <jim@yonan.net> * *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License as published by *  the Free Software Foundation; either version 2 of the License, or *  (at your option) any later version. * *  This program is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with this program (see the file COPYING included with this *  distribution); if not, write to the Free Software Foundation, Inc., *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */#ifndef FORWARD_H#define FORWARD_H#include "openvpn.h"#include "occ.h"#include "ping.h"#define TUN_OUT(c)      (BLEN(&(c)->c2.to_tun) > 0)#define LINK_OUT(c)     (BLEN(&(c)->c2.to_link) > 0)#define ANY_OUT(c)      (TUN_OUT(c) || LINK_OUT(c))#define TO_LINK_FRAG(c) ((c)->c2.fragment && fragment_outgoing_defined ((c)->c2.fragment))#define TO_LINK_DEF(c)  (LINK_OUT(c) || TO_LINK_FRAG(c))#define IOW_TO_LINK         (1<<0)#define IOW_TO_TUN          (1<<1)#define IOW_READ            (1<<2)#define IOW_SHAPER          (1<<3)#define IOW_CHECK_RESIDUAL  (1<<4)#define IOW_FRAG            (1<<5)#define IOW_MBUF            (1<<6)void io_wait (struct context *c, unsigned int flags);void pre_select (struct context *c);void process_io (struct context *c);void encrypt_sign (struct context *c, bool comp_frag);const char *wait_status_string (struct context *c, struct gc_arena *gc);void show_wait_status (struct context *c);void read_incoming_link (struct context *c);void process_incoming_link (struct context *c);void read_incoming_tun (struct context *c);void process_incoming_tun (struct context *c);void process_outgoing_link (struct context *c);void process_outgoing_tun (struct context *c);bool send_control_channel_string (struct context *c, char *str);#endif /* FORWARD_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -