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

📄 iptcrdr.h

📁 很小的linux下的upnp服务器端代码适合嵌入式系统
💻 H
字号:
/* $Id: iptcrdr.h,v 1.13 2007/11/02 22:54:01 nanard Exp $ *//* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * (c) 2006 Thomas Bernard  * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution */#ifndef __IPTCRDR_H__#define __IPTCRDR_H__#include "../commonrdr.h"intadd_redirect_rule2(const char * ifname, unsigned short eport,                   const char * iaddr, unsigned short iport, int proto,				   const char * desc);intadd_filter_rule2(const char * ifname, const char * iaddr,                 unsigned short eport, unsigned short iport,                 int proto, const char * desc);#if 0intget_redirect_rule(const char * ifname, unsigned short eport, int proto,                  char * iaddr, int iaddrlen, unsigned short * iport,                  char * desc, int desclen,                  u_int64_t * packets, u_int64_t * bytes);intget_redirect_rule_by_index(int index,                           char * ifname, unsigned short * eport,                           char * iaddr, int iaddrlen, unsigned short * iport,                           int * proto, char * desc, int desclen,                           u_int64_t * packets, u_int64_t * bytes);#endifintdelete_redirect_and_filter_rules(unsigned short eport, int proto);/* for debug */intlist_redirect_rule(const char * ifname);intaddnatrule(int proto, unsigned short eport,               const char * iaddr, unsigned short iport);intadd_filter_rule(int proto, const char * iaddr, unsigned short iport);#endif

⌨️ 快捷键说明

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