Deleted Added
full compact
alias_proxy.c (74768) alias_proxy.c (77701)
1/*-
2 * Copyright (c) 2001 Charles Mott <cmott@scientech.com>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/netinet/libalias/alias_proxy.c 77701 2001-06-04 15:09:51Z brian $
27 */
28
1/* file: alias_proxy.c
2
3 This file encapsulates special operations related to transparent
4 proxy redirection. This is where packets with a particular destination,
5 usually tcp port 80, are redirected to a proxy server.
6
7 When packets are proxied, the destination address and port are
8 modified. In certain cases, it is necessary to somehow encode

--- 7 unchanged lines hidden (view full) ---

16 PacketAliasProxyRule() -- Adds and deletes proxy
17 rules.
18
19 Rules are stored in a linear linked list, so lookup efficiency
20 won't be too good for large lists.
21
22
23 Initial development: April, 1998 (cjm)
29/* file: alias_proxy.c
30
31 This file encapsulates special operations related to transparent
32 proxy redirection. This is where packets with a particular destination,
33 usually tcp port 80, are redirected to a proxy server.
34
35 When packets are proxied, the destination address and port are
36 modified. In certain cases, it is necessary to somehow encode

--- 7 unchanged lines hidden (view full) ---

44 PacketAliasProxyRule() -- Adds and deletes proxy
45 rules.
46
47 Rules are stored in a linear linked list, so lookup efficiency
48 won't be too good for large lists.
49
50
51 Initial development: April, 1998 (cjm)
24
25 $FreeBSD: head/sys/netinet/libalias/alias_proxy.c 74768 2001-03-25 03:34:29Z brian $
26*/
27
28
29/* System includes */
30#include <ctype.h>
31#include <stdio.h>
32#include <stdlib.h>
33#include <string.h>

--- 777 unchanged lines hidden ---
52*/
53
54
55/* System includes */
56#include <ctype.h>
57#include <stdio.h>
58#include <stdlib.h>
59#include <string.h>

--- 777 unchanged lines hidden ---