libxtc.h
来自「实现路由功能,nat地址转换,端口映射,网络放火墙功能.」· C头文件 代码 · 共 36 行
H
36 行
#ifndef _LIBXTC_H#define _LIBXTC_H/* Library which manipulates filtering rules. */#include <libiptc/ipt_kernel_headers.h>#include <linux/netfilter/x_tables.h>#ifdef __cplusplusextern "C" {#endif#ifndef XT_MIN_ALIGN/* xt_entry has pointers and u_int64_t's in it, so if you align to it, you'll also align to any crazy matches and targets someone might write */#define XT_MIN_ALIGN (__alignof__(struct xt_entry))#endif#ifndef XT_ALIGN#define XT_ALIGN(s) (((s) + ((XT_MIN_ALIGN)-1)) & ~((XT_MIN_ALIGN)-1))#endiftypedef char xt_chainlabel[32];#define XTC_LABEL_ACCEPT "ACCEPT"#define XTC_LABEL_DROP "DROP"#define XTC_LABEL_QUEUE "QUEUE"#define XTC_LABEL_RETURN "RETURN"#ifdef __cplusplus}#endif#endif /* _LIBXTC_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?