obsdrdr.h
来自「miniupnpd可以在嵌入式linux中实现upnp功能」· C头文件 代码 · 共 64 行
H
64 行
/* $Id: obsdrdr.h,v 1.17 2007/11/02 22:54:02 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 __OBSDRDR_H__#define __OBSDRDR_H__#include "../commonrdr.h"/* add_redirect_rule2() uses DIOCCHANGERULE ioctl * proto can take the values IPPROTO_UDP or IPPROTO_TCP */intadd_redirect_rule2(const char * ifname, unsigned short eport, const char * iaddr, unsigned short iport, int proto, const char * desc);/* add_filter_rule2() uses DIOCCHANGERULE ioctl * proto can take the values IPPROTO_UDP or IPPROTO_TCP */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 + =
减小字号Ctrl + -
显示快捷键?