Blame include/uapi/linux/ipsec.h

Packit Service 3880ab
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
Packit Service 3880ab
#ifndef _LINUX_IPSEC_H
Packit Service 3880ab
#define _LINUX_IPSEC_H
Packit Service 3880ab
Packit Service 3880ab
/* The definitions, required to talk to KAME racoon IKE. */
Packit Service 3880ab
Packit Service 3880ab
#include <linux/pfkeyv2.h>
Packit Service 3880ab
Packit Service 3880ab
#define IPSEC_PORT_ANY		0
Packit Service 3880ab
#define IPSEC_ULPROTO_ANY	255
Packit Service 3880ab
#define IPSEC_PROTO_ANY		255
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	IPSEC_MODE_ANY		= 0,	/* We do not support this for SA */
Packit Service 3880ab
	IPSEC_MODE_TRANSPORT	= 1,
Packit Service 3880ab
	IPSEC_MODE_TUNNEL	= 2,
Packit Service 3880ab
	IPSEC_MODE_BEET         = 3
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	IPSEC_DIR_ANY		= 0,
Packit Service 3880ab
	IPSEC_DIR_INBOUND	= 1,
Packit Service 3880ab
	IPSEC_DIR_OUTBOUND	= 2,
Packit Service 3880ab
	IPSEC_DIR_FWD		= 3,	/* It is our own */
Packit Service 3880ab
	IPSEC_DIR_MAX		= 4,
Packit Service 3880ab
	IPSEC_DIR_INVALID	= 5
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	IPSEC_POLICY_DISCARD	= 0,
Packit Service 3880ab
	IPSEC_POLICY_NONE	= 1,
Packit Service 3880ab
	IPSEC_POLICY_IPSEC	= 2,
Packit Service 3880ab
	IPSEC_POLICY_ENTRUST	= 3,
Packit Service 3880ab
	IPSEC_POLICY_BYPASS	= 4
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
enum {
Packit Service 3880ab
	IPSEC_LEVEL_DEFAULT	= 0,
Packit Service 3880ab
	IPSEC_LEVEL_USE		= 1,
Packit Service 3880ab
	IPSEC_LEVEL_REQUIRE	= 2,
Packit Service 3880ab
	IPSEC_LEVEL_UNIQUE	= 3
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
#define IPSEC_MANUAL_REQID_MAX	0x3fff
Packit Service 3880ab
Packit Service 3880ab
#define IPSEC_REPLAYWSIZE  32
Packit Service 3880ab
Packit Service 3880ab
#endif	/* _LINUX_IPSEC_H */