GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / include / linux / netfilter_ipv4 / ipt_webmon.h
blob1a1bd247d45b83ba300e4c63d75f31718560c3b1
1 /* webmon -- A netfilter module to match URLs in HTTP requests
2 * This module can match using string match or regular expressions
3 * Originally designed for use with Gargoyle router firmware (gargoyle-router.com)
6 * Copyright © 2008-2010 by Eric Bishop <eric@gargoyle-router.com>
7 *
8 * This file is free software: you may copy, redistribute and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation, either version 2 of the License, or (at your
11 * option) any later version.
13 * This file is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
25 #ifndef _IPT_WEBMON_H
26 #define _IPT_WEBMON_H
29 #define WEBMON_MAX_IPS 256
30 #define WEBMON_MAX_IP_RANGES 16
32 #define WEBMON_EXCLUDE 1
33 #define WEBMON_INCLUDE 2
35 #define WEBMON_MAXDOMAIN 4
36 #define WEBMON_MAXSEARCH 8
38 #define WEBMON_DOMAIN 16
39 #define WEBMON_SEARCH 32
42 #define WEBMON_SET 3064
44 struct ipt_webmon_ip_range
46 uint32_t start;
47 uint32_t end;
50 struct ipt_webmon_info
52 uint32_t max_domains;
53 uint32_t max_searches;
54 uint32_t exclude_ips[WEBMON_MAX_IPS];
55 struct ipt_webmon_ip_range exclude_ranges[WEBMON_MAX_IP_RANGES];
56 uint32_t num_exclude_ips;
57 uint32_t num_exclude_ranges;
58 unsigned char exclude_type;
59 uint32_t* ref_count;
63 #endif /*_IPT_WEBMON_H*/