blob: 132d253e189c35a297ebf4ac75c833f52d7cda66 [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
25#include <common/config.h>
26#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
Thierry Fournier20ad1362020-11-28 17:40:24 +010040struct action_kw *tcp_req_conn_action(const char *kw);
41struct action_kw *tcp_req_sess_action(const char *kw);
42struct action_kw *tcp_req_cont_action(const char *kw);
43struct action_kw *tcp_res_cont_action(const char *kw);
44
Willy Tarreau39713102016-11-25 15:49:32 +010045#endif /* _PROTO_TCP_RULES_H */
46
47/*
48 * Local variables:
49 * c-indent-level: 8
50 * c-basic-offset: 8
51 * End:
52 */