Blame include/uapi/linux/netfilter_ipv4.h

Packit Service 3880ab
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
Packit Service 3880ab
/* IPv4-specific defines for netfilter. 
Packit Service 3880ab
 * (C)1998 Rusty Russell -- This code is GPL.
Packit Service 3880ab
 */
Packit Service 3880ab
#ifndef __LINUX_IP_NETFILTER_H
Packit Service 3880ab
#define __LINUX_IP_NETFILTER_H
Packit Service 3880ab
Packit Service 3880ab
Packit Service 3880ab
#include <linux/netfilter.h>
Packit Service 3880ab
Packit Service 3880ab
/* only for userspace compatibility */
Packit Service 3880ab
Packit Service 3880ab
#include <limits.h> /* for INT_MIN, INT_MAX */
Packit Service 3880ab
Packit Service 3880ab
/* IP Hooks */
Packit Service 3880ab
/* After promisc drops, checksum checks. */
Packit Service 3880ab
#define NF_IP_PRE_ROUTING	0
Packit Service 3880ab
/* If the packet is destined for this box. */
Packit Service 3880ab
#define NF_IP_LOCAL_IN		1
Packit Service 3880ab
/* If the packet is destined for another interface. */
Packit Service 3880ab
#define NF_IP_FORWARD		2
Packit Service 3880ab
/* Packets coming from a local process. */
Packit Service 3880ab
#define NF_IP_LOCAL_OUT		3
Packit Service 3880ab
/* Packets about to hit the wire. */
Packit Service 3880ab
#define NF_IP_POST_ROUTING	4
Packit Service 3880ab
#define NF_IP_NUMHOOKS		5
Packit Service 3880ab
Packit Service 3880ab
enum nf_ip_hook_priorities {
Packit Service 3880ab
	NF_IP_PRI_FIRST = INT_MIN,
Packit Service 3880ab
	NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
Packit Service 3880ab
	NF_IP_PRI_CONNTRACK_DEFRAG = -400,
Packit Service 3880ab
	NF_IP_PRI_RAW = -300,
Packit Service 3880ab
	NF_IP_PRI_SELINUX_FIRST = -225,
Packit Service 3880ab
	NF_IP_PRI_CONNTRACK = -200,
Packit Service 3880ab
	NF_IP_PRI_MANGLE = -150,
Packit Service 3880ab
	NF_IP_PRI_NAT_DST = -100,
Packit Service 3880ab
	NF_IP_PRI_FILTER = 0,
Packit Service 3880ab
	NF_IP_PRI_SECURITY = 50,
Packit Service 3880ab
	NF_IP_PRI_NAT_SRC = 100,
Packit Service 3880ab
	NF_IP_PRI_SELINUX_LAST = 225,
Packit Service 3880ab
	NF_IP_PRI_CONNTRACK_HELPER = 300,
Packit Service 3880ab
	NF_IP_PRI_CONNTRACK_CONFIRM = INT_MAX,
Packit Service 3880ab
	NF_IP_PRI_LAST = INT_MAX,
Packit Service 3880ab
};
Packit Service 3880ab
Packit Service 3880ab
/* Arguments for setsockopt SOL_IP: */
Packit Service 3880ab
/* 2.0 firewalling went from 64 through 71 (and +256, +512, etc). */
Packit Service 3880ab
/* 2.2 firewalling (+ masq) went from 64 through 76 */
Packit Service 3880ab
/* 2.4 firewalling went 64 through 67. */
Packit Service 3880ab
#define SO_ORIGINAL_DST 80
Packit Service 3880ab
Packit Service 3880ab
Packit Service 3880ab
#endif /* __LINUX_IP_NETFILTER_H */