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

📄 ipfrdr.h

📁 很小的linux下的upnp服务器端代码适合嵌入式系统
💻 H
字号:
/* $Id: ipfrdr.h,v 1.3 2007/11/02 22:54:01 nanard Exp $ *//* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * (c) 2006-2007 Thomas Bernard  * This software is subject to the conditions detailed * in the LICENCE file provided within the distribution */#ifndef __IPFRDR_H__#define __IPFRDR_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); /* get_redirect_rule() gets internal IP and port from * interface, external port and protocl */#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);#endif/* delete_redirect_rule() */intdelete_redirect_rule(const char * ifname, unsigned short eport, int proto);/* delete_filter_rule() */intdelete_filter_rule(const char * ifname, unsigned short eport, int proto);intclear_redirect_rules(void);#endif

⌨️ 快捷键说明

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