blob: f343037af75479e3f5a4c697b70b0c179e714322 [file] [log] [blame]
Willy Tarreaub38651a2007-03-24 17:24:39 +01001/*
2 include/proto/cttproxy.h
3 This file contains prototypes for Linux's cttproxy interface.
4 This file should be included only if CTTPROXY is enabled.
5
6 Copyright (C) 2000-2007 Willy Tarreau - w@1wt.eu
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation, version 2.1
11 exclusively.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21*/
22
23#ifndef _PROTO_CTTPROXY_H
24#define _PROTO_CTTPROXY_H
25
26#include <stdlib.h>
27#include <sys/socket.h>
28#include <sys/types.h>
29
30#include <common/config.h>
31#include <import/ip_tproxy.h>
32
33/*
34 * Checks that CTTPROXY is available and in the right version.
35 * Returns 0 if OK, -1 if wrong version, -2 if not available or other error.
36 */
37int check_cttproxy_version();
38
39
40#endif /* _PROTO_CTTPROXY_H */
41
42/*
43 * Local variables:
44 * c-indent-level: 8
45 * c-basic-offset: 8
46 * End:
47 */