/usr/include/zorp/nfiptproxy-kernel.h is in libzorp-dev 3.9.2-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | /*
* Transparent proxy support for Linux/iptables
*
* Copyright (c) 2002 BalaBit IT Ltd.
* Author: Balázs Scheidler
*
* This code is under GPLv2.
*/
#ifndef _IP_TPROXY_OLD_H
#define _IP_TPROXY_OLD_H
#ifdef __KERNEL__
#include <linux/types.h>
#include <linux/in.h>
#else
#include <netinet/in.h>
#endif
/*
* used in setsockopt(SOL_IP, IP_TPROXY_*) should not collide
* with values in <linux/in.h>
*/
#define IP_TPROXY_ASSIGN 20
#define IP_TPROXY_UNASSIGN 21
#define IP_TPROXY_QUERY 22
#define IP_TPROXY_FLAGS 23
#define IP_TPROXY_ALLOC 24
#define IP_TPROXY_CONNECT 25
/* bitfields in IP_TPROXY_FLAGS */
#define ITP_CONNECT 0x00000001
#define ITP_LISTEN 0x00000002
#define ITP_ESTABLISHED 0x00000004
#define ITP_ONCE 0x00010000
#define ITP_MARK 0x00020000
#define ITP_APPLIED 0x00040000
#define ITP_UNIDIR 0x00080000
/* structure passed to setsockopt(SOL_IP, IP_TPROXY) */
struct in_tproxy {
struct in_addr itp_faddr;
u_int16_t itp_fport;
};
#endif
|