Add xt_PROTO extension

Signed-off-by: Aron Xu <happyaron.xu@gmail.com>
This commit is contained in:
Miao Wang
2019-03-02 19:45:54 +08:00
committed by Aron Xu
parent ebcd176822
commit 266638e41e
3 changed files with 305 additions and 0 deletions

20
extensions/xt_PROTO.h Normal file
View File

@@ -0,0 +1,20 @@
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/* Protocol modification module for IP tables */
#ifndef _XT_PROTO_H
#define _XT_PROTO_H
#include <linux/types.h>
enum {
XT_PROTO_SET = 0,
XT_PROTO_STOP_AT_FRAG = 1,
XT_PROTO_STOP_AT_AUTH = 2
};
struct xt_PROTO_info {
__u8 mode;
__u8 proto;
};
#endif