2
* Transparent proxy support for Linux/iptables
4
* Copyright (c) 2002-2004 BalaBit IT Ltd.
5
* Author: Bal�zs Scheidler
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License version 2 as
9
* published by the Free Software Foundation.
17
#include <linux/types.h>
20
#include <netinet/in.h>
21
#ifndef IP_RECVORIGADDRS
22
#define IP_RECVORIGADDRS 11273
23
#define IP_ORIGADDRS IP_RECVORIGADDRS
25
struct in_addr ioa_srcaddr;
26
struct in_addr ioa_dstaddr;
27
unsigned short int ioa_srcport;
28
unsigned short int ioa_dstport;
34
* used in setsockopt(SOL_IP, IP_TPROXY) should not collide
35
* with values in <linux/in.h>
38
#define IP_TPROXY 11274
40
/* tproxy operations */
51
/* bitfields in IP_TPROXY_FLAGS */
52
#define ITP_CONNECT 0x00000001
53
#define ITP_LISTEN 0x00000002
54
#define ITP_ESTABLISHED 0x00000004
56
#define ITP_ONCE 0x00010000
57
#define ITP_MARK 0x00020000
58
#define ITP_APPLIED 0x00040000
59
#define ITP_UNIDIR 0x00080000
61
struct in_tproxy_addr{
67
/* fixed part, should not change between versions */
72
struct in_tproxy_addr addr;