haproxy/src
Maik Broemme 2850cb42b6 [MINOR] add X-Original-To: header
I have attached a patch which will add on every http request a new
header 'X-Original-To'. If you have HAProxy running in transparent mode
with a big number of SQUID servers behind it, it is very nice to have
the original destination ip as a common header to make decisions based
on it.

The whole thing is configurable with a new option 'originalto'. I have
updated the sourcecode as well as the documentation. The 'haproxy-en.txt'
and 'haproxy-fr.txt' files are untouched, due to lack of my french
language knowledge. ;)

Also the patch adds this header for IPv4 only. I haven't any IPv6 test
environment running here and don't know if getsockopt() with SO_ORIGINAL_DST
will work on IPv6. If someone knows it and wants to test it I can modify
the diff. Feel free to ask me questions or things which should be changed. :)

--Maik
2009-05-01 16:22:33 +02:00
..
acl.c [MEDIUM] acl: when possible, report the name and requirements of ACLs in warnings 2008-08-03 09:41:05 +02:00
appsession.c [MINOR] task: keep a task count and clean up task creators 2009-03-21 18:13:21 +01:00
backend.c [BUG] connect timeout is in the stream interface, not the buffer 2009-03-15 21:49:00 +01:00
base64.c [BUILD] change declaration of base64tab to fix build with Intel C++ 2008-06-29 17:17:38 +02:00
buffers.c [OPTIM] buffer: replace rlim by max_len 2009-01-09 11:14:39 +01:00
cfgparse.c [MINOR] add X-Original-To: header 2009-05-01 16:22:33 +02:00
checks.c [MINOR] fix several printf formats and missing arguments 2009-04-03 14:49:12 +02:00
client.c [CRITICAL] uninitialized response field can sometimes cause crashes 2009-04-27 08:11:33 +02:00
cttproxy.c [CLEANUP] remove many #include <types/xxx> from C files 2008-07-16 10:30:42 +02:00
dumpstats.c [MINOR] switch all stat counters to 64-bit 2009-04-11 20:44:08 +02:00
eb32tree.c [MINOR] update ebtree to version 4.1 2009-03-21 10:23:36 +01:00
eb64tree.c [MINOR] merge ebtree version 3.0 2007-11-28 14:20:44 +01:00
ebpttree.c [MINOR] merge ebtree version 3.0 2007-11-28 14:20:44 +01:00
ebtree.c [MINOR] merge ebtree version 3.0 2007-11-28 14:20:44 +01:00
ev_epoll.c [CLEANUP] remove 65 useless NULL checks before free 2008-08-03 20:48:50 +02:00
ev_kqueue.c [CLEANUP] remove 65 useless NULL checks before free 2008-08-03 20:48:50 +02:00
ev_poll.c [CLEANUP] remove 65 useless NULL checks before free 2008-08-03 20:48:50 +02:00
ev_select.c [CLEANUP] remove 65 useless NULL checks before free 2008-08-03 20:48:50 +02:00
ev_sepoll.c [MINOR] sepoll: don't count two events on the same FD. 2009-03-28 23:42:55 +01:00
fd.c [MEDIUM] move global tuning options to the global structure 2009-01-25 15:42:27 +01:00
freq_ctr.c [OPTIM] freq_ctr: do not rotate the counters when reading 2009-03-06 14:29:25 +01:00
haproxy.c [MINOR] switch all stat counters to 64-bit 2009-04-11 20:44:08 +02:00
hdr_idx.c [CLEANUP] remove many #include <types/xxx> from C files 2008-07-16 10:30:42 +02:00
log.c [MINOR] fix several printf formats and missing arguments 2009-04-03 14:49:12 +02:00
memory.c [MEDIUM] ensure we don't recursively call pool_gc2() 2009-04-21 02:17:45 +02:00
pipe.c [MEDIUM] introduce pipe pools 2009-01-25 13:49:53 +01:00
proto_http.c [MINOR] add X-Original-To: header 2009-05-01 16:22:33 +02:00
proto_tcp.c [MINOR] improve reporting of misplaced acl/reqxxx rules 2009-03-31 10:49:21 +02:00
proto_uxst.c [BUG] reject unix accepts when connection limit is reached 2009-03-28 11:02:18 +01:00
protocols.c [CLEANUP] remove many #include <types/xxx> from C files 2008-07-16 10:30:42 +02:00
proxy.c [MINOR] cfgparse: some cleanups in the consistency checks 2009-03-15 13:46:16 +01:00
queue.c [BUG] do not dequeue the backend's pending connections on a dead server 2008-12-07 23:51:12 +01:00
rbtree.c [MINOR] imported the rbtree function from Linux kernel 2007-01-07 02:12:57 +01:00
regex.c [CLEANUP] shut warnings 'is*' macros from ctype.h on solaris 2007-06-17 21:51:38 +02:00
server.c [CLEANUP] remove many #include <types/xxx> from C files 2008-07-16 10:30:42 +02:00
session.c [BUG] reset the stream_interface connect timeout upon connect or error 2009-03-28 11:01:20 +01:00
sessionhash.c [PATCH] appsessions: cleanup DEBUG_HASH and initialize request_counter 2008-08-13 23:43:26 +02:00
standard.c [MINOR] fix a few remaining printf-like formats on 64-bit platforms 2009-04-11 19:42:49 +02:00
stream_interface.c [CLEANUP] buffer_flush() was misleading, rename it as buffer_erase 2009-03-08 20:33:29 +01:00
stream_sock.c [BUG] stream_sock: check for shut{r,w} before refreshing some timeouts 2009-03-29 10:18:41 +02:00
task.c [MINOR] show sess: report number of calls to each task 2009-03-28 17:54:35 +01:00
time.c [MINOR] add curr_sec_ms and curr_sec_ms_scaled for current second. 2009-03-05 16:56:16 +01:00
uri_auth.c [CLEANUP] remove 65 useless NULL checks before free 2008-08-03 20:48:50 +02:00