blob: b9a4c932a46c1adcf882dafb1512a8f9efb0d150 [file] [log] [blame]
Willy Tarreau39713102016-11-25 15:49:32 +01001/*
2 * include/proto/tcp_rules.h
3 * This file contains "tcp" rules definitions
4 *
5 * Copyright (C) 2000-2016 Willy Tarreau - w@1wt.eu
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation, version 2.1
10 * exclusively.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22#ifndef _PROTO_TCP_RULES_H
23#define _PROTO_TCP_RULES_H
24
Willy Tarreau4c7e4b72020-05-27 12:58:42 +020025#include <haproxy/api.h>
Willy Tarreau39713102016-11-25 15:49:32 +010026#include <types/action.h>
27#include <types/task.h>
28#include <proto/stick_table.h>
29
30int tcp_inspect_request(struct stream *s, struct channel *req, int an_bit);
31int tcp_inspect_response(struct stream *s, struct channel *rep, int an_bit);
32int tcp_exec_l4_rules(struct session *sess);
33int tcp_exec_l5_rules(struct session *sess);
34
35void tcp_req_conn_keywords_register(struct action_kw_list *kw_list);
36void tcp_req_sess_keywords_register(struct action_kw_list *kw_list);
37void tcp_req_cont_keywords_register(struct action_kw_list *kw_list);
38void tcp_res_cont_keywords_register(struct action_kw_list *kw_list);
39
Willy Tarreau39713102016-11-25 15:49:32 +010040#endif /* _PROTO_TCP_RULES_H */
41
42/*
43 * Local variables:
44 * c-indent-level: 8
45 * c-basic-offset: 8
46 * End:
47 */