Willy Tarreau | 3971310 | 2016-11-25 15:49:32 +0100 | [diff] [blame] | 1 | /* |
| 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 | |
| 30 | int tcp_inspect_request(struct stream *s, struct channel *req, int an_bit); |
| 31 | int tcp_inspect_response(struct stream *s, struct channel *rep, int an_bit); |
| 32 | int tcp_exec_l4_rules(struct session *sess); |
| 33 | int tcp_exec_l5_rules(struct session *sess); |
| 34 | |
| 35 | void tcp_req_conn_keywords_register(struct action_kw_list *kw_list); |
| 36 | void tcp_req_sess_keywords_register(struct action_kw_list *kw_list); |
| 37 | void tcp_req_cont_keywords_register(struct action_kw_list *kw_list); |
| 38 | void tcp_res_cont_keywords_register(struct action_kw_list *kw_list); |
| 39 | |
Thierry Fournier | 20ad136 | 2020-11-28 17:40:24 +0100 | [diff] [blame^] | 40 | struct action_kw *tcp_req_conn_action(const char *kw); |
| 41 | struct action_kw *tcp_req_sess_action(const char *kw); |
| 42 | struct action_kw *tcp_req_cont_action(const char *kw); |
| 43 | struct action_kw *tcp_res_cont_action(const char *kw); |
| 44 | |
Willy Tarreau | 3971310 | 2016-11-25 15:49:32 +0100 | [diff] [blame] | 45 | #endif /* _PROTO_TCP_RULES_H */ |
| 46 | |
| 47 | /* |
| 48 | * Local variables: |
| 49 | * c-indent-level: 8 |
| 50 | * c-basic-offset: 8 |
| 51 | * End: |
| 52 | */ |