iptcrdr.h

来自「很小的linux下的upnp服务器端代码适合嵌入式系统」· C头文件 代码 · 共 54 行

H
54
字号
/* $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 + =
减小字号Ctrl + -
显示快捷键?